[LLVMdev] build a machine instruction by itself

Reed Kotler rkotler at mips.com
Fri Feb 15 13:21:24 PST 2013


I want to have some functions that create machine instructions, not 
specifying which machine function or basic block or iterator they are 
part of. And then I want to use that result when adding that instruction 
to a basic block.

I'm pretty sure you can do this but we have not done this in the Mips 
port so far. We just use instruction builder.

Anyone know how to do this best, or can point me to some code where this 
is done?

Tia.

Reed




More information about the llvm-dev mailing list