2021-03-08 01:31:53 +01:00
|
|
|
//===-- M68kTargetInfo.cpp - M68k Target Implementation -----*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
|
|
|
/// This file contains M68k target initializer.
|
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
2021-03-08 01:32:03 +01:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2021-03-08 01:31:53 +01:00
|
|
|
|
2021-03-08 01:32:03 +01:00
|
|
|
using namespace llvm;
|
|
|
|
|
2021-03-14 19:51:58 +01:00
|
|
|
namespace llvm {
|
|
|
|
Target &getTheM68kTarget() {
|
|
|
|
static Target TheM68kTarget;
|
|
|
|
return TheM68kTarget;
|
|
|
|
}
|
|
|
|
} // namespace llvm
|
2021-03-08 01:32:03 +01:00
|
|
|
|
2021-04-05 18:22:59 +02:00
|
|
|
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kTargetInfo() {
|
2021-03-08 01:32:03 +01:00
|
|
|
RegisterTarget<Triple::m68k, /*HasJIT=*/true> X(
|
2021-03-14 19:51:58 +01:00
|
|
|
getTheM68kTarget(), "m68k", "Motorola 68000 family", "M68k");
|
2021-03-08 01:32:03 +01:00
|
|
|
}
|