[LLVMdev] How to .. jump from inline asm to a BasicBlock?

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Mar 5 10:24:04 PST 2010


On Mar 5, 2010, at 9:10 AM, Xinfinity wrote:
> 
> I have a problem trying to create an inline asm that checks one condition
> and based on the result of the condition it should jump to one BasicBlock or
> to another. My question is: is this possible in LLVM, from the inline asm to
> jump out, to the LLVM code, and if it is, how can I pass the label to which
> the code should jump.

That is not possible in LLVM. Inline asm is expected to 'fall through' to the following code.

/jakob





More information about the llvm-dev mailing list