search for: machineinstructionbuilder

Displaying 4 results from an estimated 4 matches for "machineinstructionbuilder".

2013 Feb 15
2
[LLVMdev] build a machine instruction by itself
...MachineBasicBlock::iterator II, DebugLoc DL, int64_t Imm) const; this will insert one of two Addiu SP, Immediate instruction forms at the point of the iterator, based on the value of the Immediate field. It does this by using BuildMI. Probably I should have returned a MachineInstructionBuilder. I would like to use the function I create in various contexts but just have one base function, that is used to build a proper Addiu Sp, Immediate field. There are various BuildMi forms. To me, creating a MachineInstr is not related this context of how you are placing it. So I guess I could u...
2013 Feb 16
0
[LLVMdev] build a machine instruction by itself
...DebugLoc DL, > int64_t Imm) const; > > this will insert one of two Addiu SP, Immediate instruction forms at the > point of the iterator, > based on the value of the Immediate field. It does this by using BuildMI. > > Probably I should have returned a MachineInstructionBuilder. > > I would like to use the function I create in various contexts but just > have one base function, that is used to build a proper Addiu Sp, > Immediate field. There are various BuildMi forms. > > To me, creating a MachineInstr is not related this context of how you > are pla...
2013 Feb 15
0
[LLVMdev] build a machine instruction by itself
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
2013 Feb 15
2
[LLVMdev] build a machine instruction by itself
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