[LLVMdev] build a machine instruction by itself
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Feb 15 15:07:46 PST 2013
On Feb 15, 2013, at 1:21 PM, Reed Kotler <rkotler at mips.com> wrote:
> I want to have some functions that create machine instructions, not specifying which machine function or basic block or iterator they are part of.
All machine instructions must be created by a machine function. It provides the context for memory allocation etc.
> 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?
Did you look at BuildMI?
/jakob
More information about the llvm-dev
mailing list