[ms-inline asm] Emit the (new) inline asm Non-Standard Dialect attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier
2012-09-05 00:08:17 +00:00
parent 230768bd13
commit 36547343ab
4 changed files with 22 additions and 5 deletions

View File

@@ -2894,8 +2894,19 @@ call void asm sideeffect "eieio", ""()
call void asm alignstack "eieio", ""()
</pre>
<p>If both keywords appear the '<tt>sideeffect</tt>' keyword must come
first.</p>
<p>Inline asms also support using non-standard assembly dialects. The standard
dialect is ATT, which is assumed when the '<tt>nsdialect</tt>' keyword is not
present. When the '<tt>nsdialect</tt>' keyword is present, the dialect is
assumed to be Intel. Currently, ATT and Intel are the only supported
dialects. An example is:</p>
<pre class="doc_code">
call void asm nsdialect "eieio", ""()
</pre>
<p>If multiple keywords appear the '<tt>sideeffect</tt>' keyword must come
first, the '<tt>alignstack</tt>' keyword second and the
'<tt>nsdialect</tt>' keyword last.</p>
<!--
<p>TODO: The format of the asm and constraints string still need to be