From: Dale Johannesen Date: Tue, 13 Oct 2009 21:56:55 +0000 (+0000) Subject: Documentation for the new msasm flag, which is no X-Git-Tag: android-x86-6.0-r1~1003^2~14263 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=09fed25a07287d12ba74ec5f00b479fe1a9b56b7;p=android-x86%2Fexternal-llvm.git Documentation for the new msasm flag, which is no worse than the rest of the asm documentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84037 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index c5905791815..236538d3e48 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2338,8 +2338,10 @@ has undefined behavior.

to Module-Level Inline Assembly) 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:

+ 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:

@@ -2367,6 +2369,18 @@ call void asm sideeffect "eieio", ""()
 
+

Inline asms derived from asm blocks are similarly marked with the + 'msasm' keyword:

+ +
+
+call void asm msasm "eieio", ""()
+
+
+ +

If both keywords appear the 'sideeffect' keyword must come + first.

+

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