OSDN Git Service

Fix a few more places in TableGen that need to handle EVT::vAny types.
authorBob Wilson <bob.wilson@apple.com>
Tue, 11 Aug 2009 05:03:38 +0000 (05:03 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 11 Aug 2009 05:03:38 +0000 (05:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78643 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp

index 28ee33c..9b639ec 100644 (file)
@@ -493,7 +493,8 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) {
       // overloaded, all the types can be specified directly.
       assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") &&
                !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) ||
-              VT == EVT::iAny) && "Expected iAny type");
+              VT == EVT::iAny || VT == EVT::vAny) &&
+             "Expected iAny or vAny type");
     } else {
       VT = getValueType(TyEl->getValueAsDef("VT"));
     }
@@ -524,7 +525,8 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) {
       // overloaded, all the types can be specified directly.
       assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") &&
                !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) ||
-              VT == EVT::iAny) && "Expected iAny type");
+              VT == EVT::iAny || VT == EVT::vAny) &&
+             "Expected iAny or vAny type");
     } else
       VT = getValueType(TyEl->getValueAsDef("VT"));
     if (EVT(VT).isOverloaded()) {