summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARC
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/lib/Target/ARC
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/lib/Target/ARC')
-rw-r--r--llvm/lib/Target/ARC/ARCInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARC/ARCInstrInfo.cpp b/llvm/lib/Target/ARC/ARCInstrInfo.cpp
index be657da5d03..d71db50a57f 100644
--- a/llvm/lib/Target/ARC/ARCInstrInfo.cpp
+++ b/llvm/lib/Target/ARC/ARCInstrInfo.cpp
@@ -388,7 +388,7 @@ unsigned ARCInstrInfo::insertBranch(MachineBasicBlock &MBB,
}
unsigned ARCInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
- if (MI.getOpcode() == TargetOpcode::INLINEASM) {
+ if (MI.isInlineAsm()) {
const MachineFunction *MF = MI.getParent()->getParent();
const char *AsmStr = MI.getOperand(0).getSymbolName();
return getInlineAsmLength(AsmStr, *MF->getTarget().getMCAsmInfo());
OpenPOWER on IntegriCloud