aboutsummaryrefslogtreecommitdiffstats
path: root/docs/LangRef.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-23 23:23:47 +0000
committerChris Lattner <sabre@nondot.org>2006-01-23 23:23:47 +0000
commit4e9aba7c121bddc51ecbe2fa29582731a474c30f (patch)
tree7474bcc6713fc6adbfb7641eb1783fcd6a74b483 /docs/LangRef.html
parente1b2e14f92e8e9da1eb4854511a881cf9c22af3c (diff)
downloadexternal_llvm-4e9aba7c121bddc51ecbe2fa29582731a474c30f.zip
external_llvm-4e9aba7c121bddc51ecbe2fa29582731a474c30f.tar.gz
external_llvm-4e9aba7c121bddc51ecbe2fa29582731a474c30f.tar.bz2
document module-level inline asm support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r--docs/LangRef.html31
1 files changed, 30 insertions, 1 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 7d308c4..b7c59a5 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -23,7 +23,8 @@
<li><a href="#linkage">Linkage Types</a></li>
<li><a href="#callingconv">Calling Conventions</a></li>
<li><a href="#globalvars">Global Variables</a></li>
- <li><a href="#functionstructure">Function Structure</a></li>
+ <li><a href="#functionstructure">Functions</a></li>
+ <li><a href="#moduleasm">Module-Level Inline Assembly</a></li>
</ol>
</li>
<li><a href="#typesystem">Type System</a>
@@ -580,6 +581,34 @@ a power of 2.</p>
</div>
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+ <a name="moduleasm">Module-Level Inline Assembly</a></li>
+</div>
+
+<div class="doc_text">
+<p>
+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:
+</p>
+
+<div class="doc_code"><pre>
+ asm "inline asm code goes here"
+ asm "more can go here"
+</pre></div>
+
+<p>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.
+</p>
+
+<p>
+ The inline asm code is simply printed to the machine code .s file when
+ assembly code is generated.
+</p>
+</div>
<!-- *********************************************************************** -->