[LLVMdev] llvm inline ASM howto?

John Criswell jtcriswel at gmail.com
Wed Aug 13 06:11:37 PDT 2014


On 8/13/14, 9:03 AM, jiangshan wrote:
> I'm new to llvm.
> I figured out that the llvm front-end translate the high level 
> language to IR. the back-end translate the IR to machine ASM or 
> machine code.
> then, if their is inline ASM ?in the high level language, what will 
> the frond-end do? will the ASM ?be translated to llvm IR?

The LLVM IR encodes inline assembly as a special type of value which can 
then be used in a call instruction.  The LLVM IR also has a way of 
encoding module-level assembly code.

Please see 
http://llvm.org/docs/LangRef.html#inline-assembler-expressions and 
http://llvm.org/docs/LangRef.html#module-level-inline-assembly for more 
details.

Regards,

John Criswell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140813/44f18137/attachment.html>


More information about the llvm-dev mailing list