[LLVMdev] difficulty in replicating a sequence of instructions + inserting at a different location -- "instruction doesn't dominate all uses"

ether zhhb etherzhhb at gmail.com
Mon May 2 10:10:16 PDT 2011


hi,

Do you have a example for the code generated by your pass?

best regards
ether

On Tue, May 3, 2011 at 12:59 AM, Chuck Zhao <czhao at eecg.toronto.edu> wrote:
> I am having difficulty in replicating a sequence of instructions (2+, with
> def-use dependencies within) and inserting them at a different location.
>
> I have tried a few different approaches (IRBuilder, new Instruction(),
> I->clone(), insertBefore/insertAfter,etc.), all leading to the same error
> msg:
> "Instruction doesn't dominate all uses"
>
> The DevList has a few previous discussions on this, but not much of hints I
> can get from there.
>
> Could somebody point me a code template or an existing LLVM source file that
> does similar things?
>
>
> Thank you very much
>
> Chuck
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list