summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-08-11 05:03:38 +0000
committerBob Wilson <bob.wilson@apple.com>2009-08-11 05:03:38 +0000
commit9b6a53a0cee762ca3e454eadceaa128f000e6474 (patch)
treed231f800df3fcf95f8776355a78aa2fa463aa260 /utils
parent0db68f4e3a8be1641dbba72a41baa6ff1b5dd6af (diff)
downloadllvm-9b6a53a0cee762ca3e454eadceaa128f000e6474.tar.gz
llvm-9b6a53a0cee762ca3e454eadceaa128f000e6474.tar.bz2
llvm-9b6a53a0cee762ca3e454eadceaa128f000e6474.tar.xz
Fix a few more places in TableGen that need to handle EVT::vAny types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 28ee33c1a3..9b639ecd8d 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/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()) {