search for: riscotargetinfo

Displaying 1 result from an estimated 1 matches for "riscotargetinfo".

2010 Oct 13
4
[LLVMdev] How to register a new LLVM backend
...: 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"); } What I found suspicious was that in the last file (RiscoTargetInfo.cpp), the original RegisterTarget template parame...