summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.html
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-10-13 21:56:55 +0000
committerDale Johannesen <dalej@apple.com>2009-10-13 21:56:55 +0000
commit63c94fe1e21e7918b9cec7c873cc69116b4cf060 (patch)
tree318610cc8dbc196721d6543563acf49bcc99a461 /llvm/docs/LangRef.html
parent1fdbe1152d329d946dd935a3936e8266b4a3fccd (diff)
downloadbcm5719-llvm-63c94fe1e21e7918b9cec7c873cc69116b4cf060.tar.gz
bcm5719-llvm-63c94fe1e21e7918b9cec7c873cc69116b4cf060.zip
Documentation for the new msasm flag, which is no
worse than the rest of the asm documentation. llvm-svn: 84037
Diffstat (limited to 'llvm/docs/LangRef.html')
-rw-r--r--llvm/docs/LangRef.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index c5905791815..236538d3e48 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -2338,8 +2338,10 @@ has undefined behavior.</p>
to <a href="#moduleasm"> Module-Level Inline Assembly</a>) through the use of
a special value. This value represents the inline assembler as a string
(containing the instructions to emit), a list of operand constraints (stored
- as a string), and a flag that indicates whether or not the inline asm
- expression has side effects. An example inline assembler expression is:</p>
+ as a string), a flag that indicates whether or not the inline asm
+ expression has side effects, and a flag indicating whether the asm came
+ originally from an asm block. An example inline assembler
+ expression is:</p>
<div class="doc_code">
<pre>
@@ -2367,6 +2369,18 @@ call void asm sideeffect "eieio", ""()
</pre>
</div>
+<p>Inline asms derived from asm blocks are similarly marked with the
+ '<tt>msasm</tt>' keyword:</p>
+
+<div class="doc_code">
+<pre>
+call void asm msasm "eieio", ""()
+</pre>
+</div>
+
+<p>If both keywords appear the '<tt>sideeffect</tt>' keyword must come
+ first.</p>
+
<p>TODO: The format of the asm and constraints string still need to be
documented here. Constraints on what can be done (e.g. duplication, moving,
etc need to be documented). This is probably best done by reference to
OpenPOWER on IntegriCloud