[llvm] 7c265e9 - [RISCV] Replace std::optional::value() with operator*. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 09:28:07 PDT 2024
Author: Craig Topper
Date: 2024-05-24T09:27:57-07:00
New Revision: 7c265e9f576041c20422218571bc2dacf20d65d9
URL: https://github.com/llvm/llvm-project/commit/7c265e9f576041c20422218571bc2dacf20d65d9
DIFF: https://github.com/llvm/llvm-project/commit/7c265e9f576041c20422218571bc2dacf20d65d9.diff
LOG: [RISCV] Replace std::optional::value() with operator*. NFC
Added:
Modified:
llvm/lib/TargetParser/RISCVISAInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp
index 827bc5b443870..01d0c71c25a92 100644
--- a/llvm/lib/TargetParser/RISCVISAInfo.cpp
+++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -880,7 +880,7 @@ void RISCVISAInfo::updateImplication() {
// implied
if (!HasE && !HasI) {
auto Version = findDefaultVersion("i");
- addExtension("i", Version.value());
+ addExtension("i", *Version);
}
if (HasE && HasI)
@@ -906,7 +906,7 @@ void RISCVISAInfo::updateImplication() {
if (Exts.count(ImpliedExt))
return;
auto Version = findDefaultVersion(ImpliedExt);
- addExtension(ImpliedExt, Version.value());
+ addExtension(ImpliedExt, *Version);
WorkList.insert(ImpliedExt);
});
}
@@ -915,7 +915,7 @@ void RISCVISAInfo::updateImplication() {
if (XLen == 32 && Exts.count("zce") && Exts.count("f") &&
!Exts.count("zcf")) {
auto Version = findDefaultVersion("zcf");
- addExtension("zcf", Version.value());
+ addExtension("zcf", *Version);
}
}
@@ -942,7 +942,7 @@ void RISCVISAInfo::updateCombination() {
});
if (HasAllRequiredFeatures) {
auto Version = findDefaultVersion(CombineExt);
- addExtension(CombineExt, Version.value());
+ addExtension(CombineExt, *Version);
MadeChange = true;
}
}
More information about the llvm-commits
mailing list