[LLVMdev] Generating a no-op with IRBuilder

Colin LeMahieu clemahieu at gmail.com
Tue Nov 2 09:00:11 PDT 2010

I think most people use a bitcast instruction which is really a no-op.

On Tue, Nov 2, 2010 at 10:52 AM, Chris <chris at k1w1.org> wrote:
> Hi,
> Is there a way to generate a no-op with IRBuilder? I can't see any API
> for it, or any instruction in the intermediate representation. When I
> am compiling an empty statement I want to insert a no-op. How do
> people normally handle this?
> Thanks, Chris.
> _______________________________________________
> 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