[llvm-commits] [llvm] r78643 - /llvm/trunk/utils/TableGen/CodeGenTarget.cpp

Bob Wilson bob.wilson at apple.com
Mon Aug 10 22:03:39 PDT 2009


Author: bwilson
Date: Tue Aug 11 00:03:38 2009
New Revision: 78643

URL: http://llvm.org/viewvc/llvm-project?rev=78643&view=rev
Log:
Fix a few more places in TableGen that need to handle EVT::vAny types.

Modified:
    llvm/trunk/utils/TableGen/CodeGenTarget.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.cpp?rev=78643&r1=78642&r2=78643&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenTarget.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenTarget.cpp Tue Aug 11 00:03:38 2009
@@ -493,7 +493,8 @@
       // 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 @@
       // 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()) {





More information about the llvm-commits mailing list