diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-08-11 05:03:38 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-08-11 05:03:38 +0000 |
commit | 781797f58652b2306ea72287a5f5ced5cda71a50 (patch) | |
tree | 7401f37fe05644727bb84571ed44b98e95fca2ed /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | 71527c14930f4244b8c1d8df73c7d285ce53640b (diff) | |
download | bcm5719-llvm-781797f58652b2306ea72287a5f5ced5cda71a50.tar.gz bcm5719-llvm-781797f58652b2306ea72287a5f5ced5cda71a50.zip |
Fix a few more places in TableGen that need to handle EVT::vAny types.
llvm-svn: 78643
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 28ee33c1a35..9b639ecd8d7 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -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()) { |