mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-16 03:58:24 +00:00
c60f9b7523
registeration and creation code into XXXMCDesc libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135184 91177308-0d34-0410-b5e6-96231b3b80d8
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
//===-- MBlazeMCTargetDesc.cpp - MBlaze Target Descriptions -----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file provides MBlaze specific target descriptions.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "MBlazeMCTargetDesc.h"
|
|
#include "llvm/MC/MCInstrInfo.h"
|
|
#include "llvm/MC/MCRegisterInfo.h"
|
|
#include "llvm/MC/MCSubtargetInfo.h"
|
|
#include "llvm/Target/TargetRegistry.h"
|
|
|
|
#define GET_INSTRINFO_MC_DESC
|
|
#include "MBlazeGenInstrInfo.inc"
|
|
|
|
#define GET_SUBTARGETINFO_MC_DESC
|
|
#include "MBlazeGenSubtargetInfo.inc"
|
|
|
|
#define GET_REGINFO_MC_DESC
|
|
#include "MBlazeGenRegisterInfo.inc"
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
MCInstrInfo *createMBlazeMCInstrInfo() {
|
|
MCInstrInfo *X = new MCInstrInfo();
|
|
InitMBlazeMCInstrInfo(X);
|
|
return X;
|
|
}
|
|
|
|
extern "C" void LLVMInitializeMBlazeMCInstrInfo() {
|
|
TargetRegistry::RegisterMCInstrInfo(TheMBlazeTarget, createMBlazeMCInstrInfo);
|
|
}
|
|
|
|
MCSubtargetInfo *createMBlazeMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|
StringRef FS) {
|
|
MCSubtargetInfo *X = new MCSubtargetInfo();
|
|
InitMBlazeMCSubtargetInfo(X, TT, CPU, FS);
|
|
return X;
|
|
}
|
|
|
|
extern "C" void LLVMInitializeMBlazeMCSubtargetInfo() {
|
|
TargetRegistry::RegisterMCSubtargetInfo(TheMBlazeTarget,
|
|
createMBlazeMCSubtargetInfo);
|
|
}
|