summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-03 02:08:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-03 02:08:34 +0000
commit108714c14fbd40fef641581a5bd85441ee06c621 (patch)
tree8690fbbb9740deed7ef3c6f6ae53b5e84d4ade99 /utils/TableGen/InstrInfoEmitter.cpp
parenta69571c7991813c93cba64e88eced6899ce93d81 (diff)
downloadllvm-108714c14fbd40fef641581a5bd85441ee06c621.tar.gz
llvm-108714c14fbd40fef641581a5bd85441ee06c621.tar.bz2
llvm-108714c14fbd40fef641581a5bd85441ee06c621.tar.xz
Set isStore of instructions with ISD::TRUNCSTORE root node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index d39a51f5e9..611c0e3217 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -201,9 +201,11 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
DefInit *OpDef = dynamic_cast<DefInit*>(Dag->getOperator());
if (OpDef) {
Record *Operator = OpDef->getDef();
- if (Operator->isSubClassOf("SDNode") &&
- Operator->getValueAsString("Opcode") == "ISD::STORE")
- isStore = true;
+ if (Operator->isSubClassOf("SDNode")) {
+ const std::string Opcode = Operator->getValueAsString("Opcode");
+ if (Opcode == "ISD::STORE" || Opcode == "ISD::TRUNCSTORE")
+ isStore = true;
+ }
}
}
}