[LLVMdev] insert nop instruction

Zahra Marj zahrafatehimarj at gmail.com
Thu Jul 9 01:25:17 PDT 2015


Hi.
I need to write a function pass that insert nop instruction in function.
Examples of these instructions are: %nop = add i1 0, 0 or %nop = alloca i1,
i1 0. This link couldn't help me:
http://llvm.org/docs/ProgrammersManual.html#creating-and-inserting-new-instructions
I need a clear example about inserting new instruction. Anyone can help me?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150709/5d246596/attachment.html>


More information about the llvm-dev mailing list