summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-19 20:30:54 +0000
committerDan Gohman <gohman@apple.com>2008-08-19 20:30:54 +0000
commita6c14d0ddb146773f0d4adcf41ec963bd8f4b9cb (patch)
tree8fc5a06e0cd4c550bd9634f29af3658dc1e0032e /llvm/utils/TableGen/FastISelEmitter.cpp
parent7f55d8ff4483ff7fc76553451759d1af28213548 (diff)
downloadbcm5719-llvm-a6c14d0ddb146773f0d4adcf41ec963bd8f4b9cb.tar.gz
bcm5719-llvm-a6c14d0ddb146773f0d4adcf41ec963bd8f4b9cb.zip
Add more checking to filter out more kinds of things that
FastISel doesn't support yet. llvm-svn: 55002
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FastISelEmitter.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp
index 67dde85a377..437383ba8b2 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/utils/TableGen/FastISelEmitter.cpp
@@ -180,9 +180,16 @@ void FastISelEmitter::run(std::ostream &OS) {
MVT::SimpleValueType VT = InstPatNode->getTypeNum(0);
// For now, filter out instructions which just set a register to
- // an Operand, like MOV32ri.
+ // an Operand or an immediate, like MOV32ri.
if (InstPatOp->isSubClassOf("Operand"))
continue;
+ if (InstPatOp->getName() == "imm" ||
+ InstPatOp->getName() == "fpimm")
+ continue;
+
+ // For now, filter out any instructions with predicates.
+ if (!InstPatNode->getPredicateFn().empty())
+ continue;
// Check all the operands. For now only accept register operands.
OperandsSignature Operands;
@@ -190,6 +197,9 @@ void FastISelEmitter::run(std::ostream &OS) {
TreePatternNode *Op = InstPatNode->getChild(i);
if (!Op->isLeaf())
goto continue_label;
+ // For now, filter out any operand with a predicate.
+ if (!Op->getPredicateFn().empty())
+ goto continue_label;
DefInit *OpDI = dynamic_cast<DefInit*>(Op->getLeafValue());
if (!OpDI)
goto continue_label;
OpenPOWER on IntegriCloud