[PATCH] D97825: [RISCV] Use RISCVV_BUILTIN for vector intrinsic checking.
Hsiangkai Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 2 17:50:34 PST 2021
HsiangKai created this revision.
HsiangKai added a reviewer: craig.topper.
Herald added subscribers: StephenFan, vkmr, evandro, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, PkmX, rogfer01, shiva0217, kito-cheng, simoncook.
HsiangKai requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
There may be other BUILTINs for other extensions. Use RISCVV_BUILTIN for
vector builtin checking.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97825
Files:
clang/lib/Sema/SemaChecking.cpp
Index: clang/lib/Sema/SemaChecking.cpp
===================================================================
--- clang/lib/Sema/SemaChecking.cpp
+++ clang/lib/Sema/SemaChecking.cpp
@@ -3395,7 +3395,7 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97825.327639.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210303/4e304ce0/attachment.bin>
More information about the cfe-commits
mailing list