[ms-inline asm] Add a new Inline Asm Non-Standard Dialect attribute.
authorChad Rosier <mcrosier@apple.com>
Fri, 10 Aug 2012 00:00:22 +0000 (00:00 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 10 Aug 2012 00:00:22 +0000 (00:00 +0000)
commit249d670dd0f6f151858195701df64fbd005615e7
treefc82480068c3610496f608edcd8d265af9ae5655
parent1134aae4e743290da2ad29a7ac76d3a1f9dcfce8
[ms-inline asm] Add a new Inline Asm Non-Standard Dialect attribute.

This new attribute is intended to be used by the backend to determine how
the inline asm string should be parsed/printed. This patch adds the
ia_nsdialect attribute and also adds a test case to ensure the IR is
correctly parsed, but there is no functional change at this time.

The standard dialect is assumed to be AT&T.  Therefore, this attribute
should only be added to MS-style inline assembly statements, which use
the Intel dialect.  If we ever support more dialects we'll need to
add additional state to the attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161641 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.html
include/llvm/Attributes.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/VMCore/Attributes.cpp
utils/llvm.grm