mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
|
//===-- PTXMCTargetDesc.cpp - PTX 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 PTX specific target descriptions.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "PTXMCTargetDesc.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 "PTXGenInstrInfo.inc"
|
||
|
|
||
|
#define GET_SUBTARGETINFO_MC_DESC
|
||
|
#include "PTXGenSubtargetInfo.inc"
|
||
|
|
||
|
#define GET_REGINFO_MC_DESC
|
||
|
#include "PTXGenRegisterInfo.inc"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
MCInstrInfo *createPTXMCInstrInfo() {
|
||
|
MCInstrInfo *X = new MCInstrInfo();
|
||
|
InitPTXMCInstrInfo(X);
|
||
|
return X;
|
||
|
}
|
||
|
|
||
|
extern "C" void LLVMInitializePTXMCInstrInfo() {
|
||
|
TargetRegistry::RegisterMCInstrInfo(ThePTX32Target, createPTXMCInstrInfo);
|
||
|
TargetRegistry::RegisterMCInstrInfo(ThePTX64Target, createPTXMCInstrInfo);
|
||
|
}
|
||
|
|
||
|
MCSubtargetInfo *createPTXMCSubtargetInfo(StringRef TT, StringRef CPU,
|
||
|
StringRef FS) {
|
||
|
MCSubtargetInfo *X = new MCSubtargetInfo();
|
||
|
InitPTXMCSubtargetInfo(X, TT, CPU, FS);
|
||
|
return X;
|
||
|
}
|
||
|
|
||
|
extern "C" void LLVMInitializePTXMCSubtargetInfo() {
|
||
|
TargetRegistry::RegisterMCSubtargetInfo(ThePTX32Target,
|
||
|
createPTXMCSubtargetInfo);
|
||
|
TargetRegistry::RegisterMCSubtargetInfo(ThePTX64Target,
|
||
|
createPTXMCSubtargetInfo);
|
||
|
}
|