[LLVMdev] Indirect branch instruction

Chris Lattner sabre at nondot.org
Wed Jan 10 22:14:05 PST 2007


On Wed, 10 Jan 2007, Nicolas Geoffray wrote:
> I was looking for an indirect branch instruction in llvm, which would 
> not take a BasicBlock as argument, but a value. Reid told me on IRC that 
> there is no such instruction in llvm.
>
> Is this deliberate? Or did you never face the need of this instruction 
> yet?

The switch instruction serves the same functional role.  In llvm-gcc, the 
GCC "Address of label" and "indirect goto" extensions are compiled into a 
switch instruction.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list