1 //===-- SystemZMCTargetDesc.cpp - SystemZ Target Descriptions ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides SystemZ specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #include "SystemZMCTargetDesc.h"
15 #include "SystemZMCAsmInfo.h"
16 #include "llvm/MC/MCInstrInfo.h"
17 #include "llvm/MC/MCRegisterInfo.h"
18 #include "llvm/MC/MCSubtargetInfo.h"
19 #include "llvm/Target/TargetRegistry.h"
21 #define GET_INSTRINFO_MC_DESC
22 #include "SystemZGenInstrInfo.inc"
24 #define GET_SUBTARGETINFO_MC_DESC
25 #include "SystemZGenSubtargetInfo.inc"
27 #define GET_REGINFO_MC_DESC
28 #include "SystemZGenRegisterInfo.inc"
32 static MCInstrInfo *createSystemZMCInstrInfo() {
33 MCInstrInfo *X = new MCInstrInfo();
34 InitSystemZMCInstrInfo(X);
38 extern "C" void LLVMInitializeSystemZMCInstrInfo() {
39 TargetRegistry::RegisterMCInstrInfo(TheSystemZTarget,
40 createSystemZMCInstrInfo);
43 static MCSubtargetInfo *createSystemZMCSubtargetInfo(StringRef TT,
46 MCSubtargetInfo *X = new MCSubtargetInfo();
47 InitSystemZMCSubtargetInfo(X, TT, CPU, FS);
51 extern "C" void LLVMInitializeSystemZMCSubtargetInfo() {
52 TargetRegistry::RegisterMCSubtargetInfo(TheSystemZTarget,
53 createSystemZMCSubtargetInfo);
56 extern "C" void LLVMInitializeSystemZMCAsmInfo() {
57 RegisterMCAsmInfo<SystemZMCAsmInfo> X(TheSystemZTarget);