search for: riscotargetmachin

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

Did you mean: riscotargetmachine
2010 Oct 13
4
[LLVMdev] How to register a new LLVM backend
...to generate a shared library for the backend (libLLVMRiscoCodeGen.so). I've tried running: llc -load ./libLLVMRiscoCodeGen.so -march=risco, but the target isn't recognized (it doesn't 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; }...