aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-01-17 07:36:41 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-01-17 07:36:41 +0000
commit57c517d30c18295f67287bc8e8577833737da828 (patch)
tree08dd51a60af5ec0f5e23ecfdefa0c7f80738e27e
parente5d934337723176e8a4943d780b1b5ad3db46df4 (diff)
Emit a type matching check for ComplexPatterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25392 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 2fbc0966f3..daf63a8ddd 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -556,6 +556,8 @@ static std::vector<unsigned char> getIntrinsicType(Record *R, bool NotRegisters,
// Using a VTSDNode or CondCodeSDNode.
return Other;
} else if (R->isSubClassOf("ComplexPattern")) {
+ if (NotRegisters)
+ return Unknown;
std::vector<unsigned char>
ComplexPat(1, TP.getDAGISelEmitter().getComplexPattern(R).getValueType());
return ComplexPat;