[LLVMdev] Fwd: LLVM IR Branchs (original) (raw)

Nick Lewycky nicholas at mxc.ca
Mon Sep 5 16:57:14 PDT 2011


Rafael Baldiati Parizi wrote:

Hello, I would know how can I make a branch in llvm ir without a label of destination? For example: br i1 %1, label %bb, NO LABEL HERE

Unlike an assembly "jmp" instruction, there is no fall-through behaviour in LLVM IR. Your choices for a branch are an unconditional branch which specifies one target block, or a conditional branch which specifies a target for true and a target for false.

See http://llvm.org/docs/LangRef.html#i_br for details.

Nick



More information about the llvm-dev mailing list