Displaying 2 results from an estimated 2 matches for "new_move_instruction".
2007 Feb 22
2
[LLVMdev] Reference to recently created move
...do I get a pointer to the instruction
that I just created? Is there a way to do something like:
// mbb is MachineBasicBlock, reg_info is MRegisterInfo
MachineBasicBlock::iterator iter = mbb.getFirstTerminator();
reg_info->copyRegToReg(mbb, iter, dst, src, rc);
iter--; (???)
MachineInstr * new_move_instruction = iter; (???)
This does not work though.
Thank you,
Fernando
2007 Feb 22
0
[LLVMdev] Reference to recently created move
...I just created? Is there a way to do something like:
>
> // mbb is MachineBasicBlock, reg_info is MRegisterInfo
>
> MachineBasicBlock::iterator iter = mbb.getFirstTerminator();
>
> reg_info->copyRegToReg(mbb, iter, dst, src, rc);
>
> iter--; (???)
>
> MachineInstr * new_move_instruction = iter; (???)
>
> This does not work though.
>
> Thank you,
>
> Fernando
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev