[LLVMdev] Indirect branch instruction
Chris Lattner
sabre at nondot.org
Mon Jan 15 12:04:55 PST 2007
On Mon, 15 Jan 2007, Nicolas Geoffray wrote:
>> statements, but I'm sure there are cases we miss. If so, please let us
>> know, so we can add them to lib/Target/README.txt
>>
>>
> Two jumps are executed when using a switch statement for indirect branch:
> the first jump goes to the right switch case, the second jumps to the
> corresponding
> label. However, indirect branches need only one jump: jumping to the
> value contained
> in a register for example (which contains the address of a label).
Can you give a compilable C function as an example?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list