summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
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
commit61864ec3fede4499fe3108a532f3d889f0846874 (patch)
tree15c0fc6f05489440e8e90ded0608a47b8df076c8 /llvm/utils/TableGen
parent14417ed99c549e1a868950c23091b96ba88e0937 (diff)
downloadbcm5719-llvm-61864ec3fede4499fe3108a532f3d889f0846874.tar.gz
bcm5719-llvm-61864ec3fede4499fe3108a532f3d889f0846874.zip
Emit a type matching check for ComplexPatterns.
llvm-svn: 25392
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 2fbc0966f3e..daf63a8dddc 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud