[LLVMdev] NO-OP

Nick Lewycky nicholas at mxc.ca
Fri Jul 13 04:02:11 PDT 2007


Fernando Magno Quintao Pereira wrote:
>      I am in need of a no-op instruction: an instruction that does not do 
> anything, and has no operands. Does LLVM predefine such an instruction? I 
> want to transform the program so that there is  no empty basic block.

You can never have an empty basic block. All BBs must have a TerminatorInst.

Nick



More information about the llvm-dev mailing list