From 4e9aba7c121bddc51ecbe2fa29582731a474c30f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Jan 2006 23:23:47 +0000 Subject: [PATCH] document module-level inline asm support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25561 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 7d308c46490..b7c59a54146 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -23,7 +23,8 @@
  • Linkage Types
  • Calling Conventions
  • Global Variables
  • -
  • Function Structure
  • +
  • Functions
  • +
  • Module-Level Inline Assembly
  • Type System @@ -580,6 +581,34 @@ a power of 2.

    + +
  • + + +
    +

    +Modules may contain "module-level inline asm" blocks, which corresponds to the +GCC "file scope inline asm" blocks. These blocks are internally concatenated by +LLVM and treated as a single unit, but may be separated in the .ll file if +desired. The syntax is very simple: +

    + +
    +  asm "inline asm code goes here"
    +  asm "more can go here"
    +
    + +

    The strings can contain any character by escaping non-printable characters. + The escape sequence used is simply "\xx" where "xx" is the two digit hex code + for the number. +

    + +

    + The inline asm code is simply printed to the machine code .s file when + assembly code is generated. +

    +