aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-08-22 09:57:11 +0000
committerTim Northover <tnorthover@apple.com>2013-08-22 09:57:11 +0000
commitf7ab3a84b3e1b5a647ae9456a5edb99d86b35329 (patch)
treedef91cf5a4a3ba94fb757beb78a53ae046dfe738 /utils/TableGen/InstrInfoEmitter.cpp
parentbccc6f89b7a15abda5593a30c101ae85d1dc3b77 (diff)
downloadexternal_llvm-f7ab3a84b3e1b5a647ae9456a5edb99d86b35329.zip
external_llvm-f7ab3a84b3e1b5a647ae9456a5edb99d86b35329.tar.gz
external_llvm-f7ab3a84b3e1b5a647ae9456a5edb99d86b35329.tar.bz2
ARM: use TableGen patterns to select CMOV operations.
Back in the mists of time (2008), it seems TableGen couldn't handle the patterns necessary to match ARM's CMOV node that we convert select operations to, so we wrote a lot of fairly hairy C++ to do it for us. TableGen can deal with it now: there were a few minor differences to CodeGen (see tests), but nothing obviously worse that I could see, so we should probably address anything that *does* come up in a localised manner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index c8304de..cfbf915 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -132,8 +132,8 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
Res += "|(1<<MCOI::LookupPtrRegClass)";
// Predicate operands. Check to see if the original unexpanded operand
- // was of type PredicateOperand.
- if (Inst.Operands[i].Rec->isSubClassOf("PredicateOperand"))
+ // was of type PredicateOp.
+ if (Inst.Operands[i].Rec->isSubClassOf("PredicateOp"))
Res += "|(1<<MCOI::Predicate)";
// Optional def operands. Check to see if the original unexpanded operand