[clang] 382550b - [Clang][RISCV] Adjust naming from `DeclareRISCVVectorBuiltins` to `DeclareRISCVSiFiveVectorBuiltins`. NFC
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 8 10:55:15 PDT 2023
Author: eopXD
Date: 2023-06-08T10:55:01-07:00
New Revision: 382550bf334b178f078c694b5e7331f6c7881f5e
URL: https://github.com/llvm/llvm-project/commit/382550bf334b178f078c694b5e7331f6c7881f5e
DIFF: https://github.com/llvm/llvm-project/commit/382550bf334b178f078c694b5e7331f6c7881f5e.diff
LOG: [Clang][RISCV] Adjust naming from `DeclareRISCVVectorBuiltins` to `DeclareRISCVSiFiveVectorBuiltins`. NFC
The variable indicates if RISC-V Sifive vector builtin functions
are enabled or not. The adjusted naming help clarifies this.
cc: @4vtomat
Added:
Modified:
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParsePragma.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaRISCVVectorLookup.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 7855921b4c0a1..b335a04dc473a 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1631,7 +1631,7 @@ class Sema final {
bool DeclareRISCVVBuiltins = false;
/// Indicate RISC-V SiFive vector builtin functions enabled or not.
- bool DeclareRISCVVectorBuiltins = false;
+ bool DeclareRISCVSiFiveVectorBuiltins = false;
private:
std::unique_ptr<sema::RISCVIntrinsicManager> RVIntrinsicManager;
diff --git a/clang/lib/Parse/ParsePragma.cpp b/clang/lib/Parse/ParsePragma.cpp
index 79707bc297f43..b3178aef64d72 100644
--- a/clang/lib/Parse/ParsePragma.cpp
+++ b/clang/lib/Parse/ParsePragma.cpp
@@ -4059,5 +4059,5 @@ void PragmaRISCVHandler::HandlePragma(Preprocessor &PP,
if (II->isStr("vector"))
Actions.DeclareRISCVVBuiltins = true;
else if (II->isStr("sifive_vector"))
- Actions.DeclareRISCVVectorBuiltins = true;
+ Actions.DeclareRISCVSiFiveVectorBuiltins = true;
}
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 5a2a3616d1136..fad8405b12743 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -933,7 +933,7 @@ bool Sema::LookupBuiltin(LookupResult &R) {
}
}
- if (DeclareRISCVVBuiltins || DeclareRISCVVectorBuiltins) {
+ if (DeclareRISCVVBuiltins || DeclareRISCVSiFiveVectorBuiltins) {
if (!RVIntrinsicManager)
RVIntrinsicManager = CreateRISCVIntrinsicManager(*this);
diff --git a/clang/lib/Sema/SemaRISCVVectorLookup.cpp b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
index 5599b9277cd79..5f172d7275c08 100644
--- a/clang/lib/Sema/SemaRISCVVectorLookup.cpp
+++ b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
@@ -321,7 +321,7 @@ void RISCVIntrinsicManagerImpl::InitIntrinsicList() {
if (S.DeclareRISCVVBuiltins)
ConstructRVVIntrinsics(RVVIntrinsicRecords,
IntrinsicKind::RVV);
- if (S.DeclareRISCVVectorBuiltins)
+ if (S.DeclareRISCVSiFiveVectorBuiltins)
ConstructRVVIntrinsics(RVSiFiveVectorIntrinsicRecords,
IntrinsicKind::SIFIVE_VECTOR);
}
More information about the cfe-commits
mailing list