diff options
author | Tim Northover <tnorthover@apple.com> | 2013-08-22 09:57:11 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-08-22 09:57:11 +0000 |
commit | 421804420d4ffe2cd89e762106d2de01a8efe805 (patch) | |
tree | 1a4e524696db37d4061a53fb4a80f740ddec59fd /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | cafda82855fda8e64dbf8b72b931d6c19fbe63c9 (diff) | |
download | bcm5719-llvm-421804420d4ffe2cd89e762106d2de01a8efe805.tar.gz bcm5719-llvm-421804420d4ffe2cd89e762106d2de01a8efe805.zip |
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.
llvm-svn: 188995
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index 8ec7682985f..bf59d3afb51 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -90,7 +90,7 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) { if (unsigned NumArgs = MIOpInfo->getNumArgs()) NumOps = NumArgs; - if (Rec->isSubClassOf("PredicateOperand")) + if (Rec->isSubClassOf("PredicateOp")) isPredicable = true; else if (Rec->isSubClassOf("OptionalDefOperand")) hasOptionalDef = true; |