search for: fioperandnum

Displaying 1 result from an estimated 1 matches for "fioperandnum".

Did you mean: bigoperandnum
2014 Oct 10
2
[LLVMdev] eliminateFrameIndex
...ateVirtualRegister(&mytarget::ARegsRegClass); const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo(); BuildMI(*MI.getParent(), II, dl, TII.get(mytarget::ADD_AReg), ScratchReg).addReg(FramePtr).addImm(Offset); // Update the original instruction to use the scratch register. MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false); But for the test case int foo(void) { int a = 43; return(41); } I get the error message "Remaining virtual register operands". Is something wrong with my method? Did I miss to implement some more methods? Thanks in advance, Boris