projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72d4a41
)
[RISCV] Use RISCVV_BUILTIN for vector intrinsic checking.
author
Hsiangkai Wang
<kai.wang@sifive.com>
Wed, 3 Mar 2021 01:41:31 +0000
(09:41 +0800)
committer
Hsiangkai Wang
<kai.wang@sifive.com>
Wed, 3 Mar 2021 05:42:54 +0000
(13:42 +0800)
There may be other BUILTINs for other extensions. Use RISCVV_BUILTIN for
vector builtin checking.
Differential Revision: https://reviews.llvm.org/D97825
clang/lib/Sema/SemaChecking.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaChecking.cpp
b/clang/lib/Sema/SemaChecking.cpp
index
ccde2f3
..
779bc23
100644
(file)
--- 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)