[LLVMdev] llc -load

s88 dave.tw at gmail.com
Thu Jan 27 18:53:35 PST 2005


Howdy everybody.
        I'm trying hard to load my backend. But I got problems.
I took the target SparcV8 for lab. 

1. mark all of the code in the bool
SparcV8TargetMachine::addPassesToEmitAssembly(PassManager
&PM,std::ostream &Out)
 and make it return false.( Of course I mark the   // Output assembly language.
  PM.add(createSparcV8CodePrinterPass(Out, *this));)
2. generate the LLVMSparcV8.so in the /usr/local/lib
3. run llc -load=/usr/local/lib/LLVMSparcV8.so -march=sparcv8 test.bc -o test.s

Guess what? I got the assembly code of the test.bc....
why....why....why?????
What's wrong with my steps????

Please help me!!!Thanx!

Dave.




More information about the llvm-dev mailing list