[LLVMdev] Branch Instruction layout

Ryan Taylor ryta1203 at gmail.com
Fri Dec 9 10:34:30 PST 2011


Given an instruction like this: br i1 %tmp12, label %bb5, label %bb6

I'm confused as to why Operand(1) = bb6 and not bb5 and why Operand(2) is
bb5 and not bb6.

Why in the instruction does the true path always list first but when
accessing the operands of the instruction, it is backwards? Is there a
particular reason for this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111209/363659d0/attachment.html>


More information about the llvm-dev mailing list