[clang] f7e675b - [RISCV] Use RISCVV_BUILTIN for vector intrinsic checking.
Hsiangkai Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 2 21:44:30 PST 2021
Author: Hsiangkai Wang
Date: 2021-03-03T13:42:54+08:00
New Revision: f7e675b3da1d7afd43af51c5a5e9140c87ef945d
URL: https://github.com/llvm/llvm-project/commit/f7e675b3da1d7afd43af51c5a5e9140c87ef945d
DIFF: https://github.com/llvm/llvm-project/commit/f7e675b3da1d7afd43af51c5a5e9140c87ef945d.diff
LOG: [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
Added:
Modified:
clang/lib/Sema/SemaChecking.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index ccde2f3164a1..779bc23a6fcd 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -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)
More information about the cfe-commits
mailing list