[LLVMdev] Moving a MachineInstr to another position of its MachineBasicBlock

Krzysztof Parzyszek kparzysz at codeaurora.org
Wed May 21 07:00:01 PDT 2014


On 5/21/2014 8:48 AM, Ronaldo Ferreira wrote:
>
> I would like to know how I can move a MachineInstr to another position
> of the MachineBasicBlock that contains that instruction.
>
> Looking at the MachineInstr docs I could not see how to do it.

Check out MachineBasicBlock::splice.

-K

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list