aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-04 22:46:24 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-04 22:46:24 +0000
commit03fe8f6ab6977e0a07b17b84e9b33939d2f23025 (patch)
treebbb7795b90eceb86cc42ed7d0bf94998c8f583a5 /include
parent4e2132e7ae4b41ff6093bbaebcb852105277ac53 (diff)
[ms-inline asm] Add the inline assembly dialect, AsmDialect, to the InlineAsm
class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/InlineAsm.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h
index 37aa18bfff..178602aa2f 100644
--- a/include/llvm/InlineAsm.h
+++ b/include/llvm/InlineAsm.h
@@ -43,10 +43,12 @@ class InlineAsm : public Value {
std::string AsmString, Constraints;
bool HasSideEffects;
bool IsAlignStack;
-
+ /// AsmDialect - 0 is AT&T (default) and 1 is the Intel dialect.
+ unsigned AsmDialect;
+
InlineAsm(PointerType *Ty, const std::string &AsmString,
const std::string &Constraints, bool hasSideEffects,
- bool isAlignStack);
+ bool isAlignStack, unsigned asmDialect);
virtual ~InlineAsm();
/// When the ConstantUniqueMap merges two types and makes two InlineAsms
@@ -58,11 +60,12 @@ public:
///
static InlineAsm *get(FunctionType *Ty, StringRef AsmString,
StringRef Constraints, bool hasSideEffects,
- bool isAlignStack = false);
+ bool isAlignStack = false, unsigned asmDialect = 0);
bool hasSideEffects() const { return HasSideEffects; }
bool isAlignStack() const { return IsAlignStack; }
-
+ unsigned getDialect() const { return AsmDialect; }
+
/// getType - InlineAsm's are always pointers.
///
PointerType *getType() const {