Displaying 1 result from an estimated 1 matches for "riscomcasminfo".
2010 Oct 13
4
[LLVMdev] How to register a new LLVM backend
...even appear in the llc -version output).
The main steps I did for registering the backend were:
- At RiscoTargetMachine.cpp:
extern "C" void LLVMInitializeRiscoTarget() {
// Register the target.
RegisterTargetMachine<RiscoTargetMachine> X(TheRiscoTarget);
RegisterAsmInfo<RiscoMCAsmInfo> A(TheRiscoTarget);
}
- At Risco.td:
def Risco : Target {
let InstructionSet = RiscoInstrInfo;
}
- At RiscoTargetInfo.cpp:
Target llvm::TheRiscoTarget;
extern "C" void LLVMInitializeRiscoTargetInfo() {
RegisterTarget<> X(TheRiscoTarget, "risco", "Risco&quo...