Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/llvm/lib/Target/M68k/TargetInfo/M68kTargetInfo.cpp
35294 views
1
//===-- M68kTargetInfo.cpp - M68k Target Implementation ---------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// This file contains M68k target initializer.
11
///
12
//===----------------------------------------------------------------------===//
13
#include "llvm/MC/TargetRegistry.h"
14
15
using namespace llvm;
16
17
namespace llvm {
18
Target &getTheM68kTarget() {
19
static Target TheM68kTarget;
20
return TheM68kTarget;
21
}
22
} // namespace llvm
23
24
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kTargetInfo() {
25
RegisterTarget<Triple::m68k, /*HasJIT=*/true> X(
26
getTheM68kTarget(), "m68k", "Motorola 68000 family", "M68k");
27
}
28
29