mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
|
//===-- MipsMCTargetDesc.cpp - Mips 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 Mips specific target descriptions.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "MipsMCTargetDesc.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 "MipsGenInstrInfo.inc"
|
||
|
|
||
|
#define GET_SUBTARGETINFO_MC_DESC
|
||
|
#include "MipsGenSubtargetInfo.inc"
|
||
|
|
||
|
#define GET_REGINFO_MC_DESC
|
||
|
#include "MipsGenRegisterInfo.inc"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
MCInstrInfo *createMipsMCInstrInfo() {
|
||
|
MCInstrInfo *X = new MCInstrInfo();
|
||
|
InitMipsMCInstrInfo(X);
|
||
|
return X;
|
||
|
}
|
||
|
|
||
|
extern "C" void LLVMInitializeMipsMCInstrInfo() {
|
||
|
TargetRegistry::RegisterMCInstrInfo(TheMipsTarget, createMipsMCInstrInfo);
|
||
|
}
|
||
|
|
||
|
|
||
|
MCSubtargetInfo *createMipsMCSubtargetInfo(StringRef TT, StringRef CPU,
|
||
|
StringRef FS) {
|
||
|
MCSubtargetInfo *X = new MCSubtargetInfo();
|
||
|
InitMipsMCSubtargetInfo(X, TT, CPU, FS);
|
||
|
return X;
|
||
|
}
|
||
|
|
||
|
extern "C" void LLVMInitializeMipsMCSubtargetInfo() {
|
||
|
TargetRegistry::RegisterMCSubtargetInfo(TheMipsTarget,
|
||
|
createMipsMCSubtargetInfo);
|
||
|
}
|