From 581600bfc3060ee13afb278cd87e25da5b5f7db2 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 5 Sep 2012 19:00:49 +0000 Subject: [PATCH] [ms-inline asm] Enumerate the InlineAsm dialects and rename the nsdialect to inteldialect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163231 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 13 ++++++------- include/llvm/Bitcode/LLVMBitCodes.h | 2 +- include/llvm/InlineAsm.h | 17 ++++++++++++----- lib/AsmParser/LLLexer.cpp | 2 +- lib/AsmParser/LLParser.cpp | 8 ++++---- lib/AsmParser/LLToken.h | 2 +- lib/Bitcode/Reader/BitcodeReader.cpp | 7 ++++--- lib/VMCore/AsmWriter.cpp | 5 +++-- lib/VMCore/ConstantsContext.h | 4 ++-- lib/VMCore/Core.cpp | 2 +- lib/VMCore/InlineAsm.cpp | 6 +++--- 11 files changed, 38 insertions(+), 30 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 0699857bb1e..4daab592e9d 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2894,19 +2894,18 @@ call void asm sideeffect "eieio", ""() call void asm alignstack "eieio", ""() -

Inline asms also support using non-standard assembly dialects. The standard - dialect is ATT, which is assumed when the 'nsdialect' keyword is not - present. When the 'nsdialect' keyword is present, the dialect is - assumed to be Intel. Currently, ATT and Intel are the only supported - dialects. An example is:

+

Inline asms also support using non-standard assembly dialects. The assumed + dialect is ATT. When the 'inteldialect' keyword is present, the + inline asm is using the Intel dialect. Currently, ATT and Intel are the + only supported dialects. An example is:

-call void asm nsdialect "eieio", ""()
+call void asm inteldialect "eieio", ""()
 

If multiple keywords appear the 'sideeffect' keyword must come first, the 'alignstack' keyword second and the - 'nsdialect' keyword last.

+ 'inteldialect' keyword last.