summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-02-04 21:24:13 +0000
committerCraig Topper <craig.topper@intel.com>2019-02-04 21:24:13 +0000
commitc45e39b35f2d91012b70f35aa0addd2ec4afd496 (patch)
tree7c7b4ce062d6d338c9f42e767b740f7fd911fb90 /llvm/include
parent1469ff417bba5e14c99edb8c9858a7a80458df4e (diff)
downloadbcm5719-llvm-c45e39b35f2d91012b70f35aa0addd2ec4afd496.tar.gz
bcm5719-llvm-c45e39b35f2d91012b70f35aa0addd2ec4afd496.zip
[CodeGen][ARC][SystemZ][WebAssembly] Use MachineInstr::isInlineAsm in more places instead of just comparing opcode. NFCI
I'm looking at adding a second INLINEASM opcode for better modeling asm-goto as a terminator. Using the existing predicate will reduce teh number of places that will need to use the new opcode. llvm-svn: 353095
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 352334d2524..faeb66ea227 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -1014,7 +1014,7 @@ public:
bool isInlineAsm() const { return getOpcode() == TargetOpcode::INLINEASM; }
bool isMSInlineAsm() const {
- return getOpcode() == TargetOpcode::INLINEASM && getInlineAsmDialect();
+ return isInlineAsm() && getInlineAsmDialect() == InlineAsm::AD_Intel;
}
bool isStackAligningInlineAsm() const;
OpenPOWER on IntegriCloud