mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Add a new overloaded EVT::vAny type for use in TableGen to allow intrinsic
arguments that are vectors of any size and element type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1597,6 +1597,12 @@ bool Verifier::PerformTypeCheck(Intrinsic::ID ID, Function *F, const Type *Ty,
|
||||
Suffix += "v" + utostr(NumElts);
|
||||
|
||||
Suffix += EVT::getEVT(EltTy).getEVTString();
|
||||
} else if (VT == EVT::vAny) {
|
||||
if (!VTy) {
|
||||
CheckFailed(IntrinsicParam(ArgNo, NumRets) + " is not a vector type.", F);
|
||||
return false;
|
||||
}
|
||||
Suffix += ".v" + utostr(NumElts) + EVT::getEVT(EltTy).getEVTString();
|
||||
} else if (VT == EVT::iPTR) {
|
||||
if (!isa<PointerType>(Ty)) {
|
||||
CheckFailed(IntrinsicParam(ArgNo, NumRets) + " is not a "
|
||||
|
Reference in New Issue
Block a user