Displaying 2 results from an estimated 2 matches for "addiuspimm".
2013 Feb 16
0
[LLVMdev] build a machine instruction by itself
I ended up settling on a scheme which I'm not completely happy with but
it's the best I can see to do.
const MCInstrDesc& AddiuSpImm(int64_t Imm) const;
and then
if (isInt<16>(-Remainder))
BuildMI(MBB, I, DL, AddiuSpImm(-Remainder)).addImm(-Remainder);
So the AddiuSpImm choses which instruction description to use depending
on the immediate value and then I'm adding rest of the instruction.
I think...
2013 Feb 15
2
[LLVMdev] build a machine instruction by itself
...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?
For example, what I did already was create the folllowing:
void BuildAddiuSpImm(MachineBasicBlock &MBB,
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 t...