forked from OSchip/llvm-project
[RISCV] Use RISCVV_BUILTIN for vector intrinsic checking.
There may be other BUILTINs for other extensions. Use RISCVV_BUILTIN for vector builtin checking. Differential Revision: https://reviews.llvm.org/D97825
This commit is contained in:
parent
72d4a41ba6
commit
f7e675b3da
|
@ -3395,7 +3395,7 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
|
|||
switch (BuiltinID) {
|
||||
default:
|
||||
break;
|
||||
#define BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID:
|
||||
#define RISCVV_BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID:
|
||||
#include "clang/Basic/BuiltinsRISCV.def"
|
||||
if (!TI.hasFeature("experimental-v"))
|
||||
return Diag(TheCall->getBeginLoc(), diag::err_riscvv_builtin_requires_v)
|
||||
|
|
Loading…
Reference in New Issue