Displaying 2 results from an estimated 2 matches for "swapregs".
Did you mean:
swapgs
2007 Jul 03
2
[LLVMdev] Swaps of FP registers
Dear guys,
what is the best way to implement a swap of floating point registers
in X86? For the integer registers, I am using xchg. Is there a similar
instruction for floating point?
My function to insert swaps is like:
void X86RegisterInfo::swapRegs(
MachineBasicBlock & mbb,
MachineBasicBlock::iterator mi,
unsigned r1,
unsigned r2,
const TargetRegisterClass *rc
) const {
unsigned Opc;
if (rc == &X86::GR32RegClass) {
Opc = X86::XCHG32rr;
} else if (rc == &X86::GR16RegClass) {...
2007 Aug 09
4
[LLVMdev] Changing basic blocks
Hi Tanya and everybody,
Ty for your support.
I too believe it should not be complicated.
But I was not being able to do it.
For instance, I tried to run this code below:
BB->push_back(&(BB->front()));
BB->pop_front();
But it did not work (kinda obvious why).
Nor this:
BB->push_back(BB->begin());
BB->pop_front();
But also did not work. It seams the same