[LLVMdev] Fwd: LLVM IR Branchs

Nick Lewycky
Mon, 05 Sep 2011 23:57:14 -0000

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