Emit a type matching check for ComplexPatterns.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 17 Jan 2006 07:36:41 +0000 (07:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 17 Jan 2006 07:36:41 +0000 (07:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25392 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 2fbc0966f3ed36011ca34f8590e0014bd9c287a6..daf63a8dddc1ad6ad59cc2c141f8fa3af98e633b 100644 (file)
@@ -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;