[llvm] Gate CSR defined by experimental and vendor extensions (PR #104424)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 04:13:25 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 5e95571a90b1ec193b735b7312c5c2559d7ee5ea 4f7c0c972748137793dd3b54e9236a9cf60fdc29 --extensions cpp -- llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index fda355358f..1874f9b917 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -1926,8 +1926,7 @@ ParseStatus RISCVAsmParser::parseCSRSystemRegister(OperandVector &Operands) {
       const auto &FeatureBits = getSTI().getFeatureBits();
       if (!SysReg->haveRequiredFeatures(FeatureBits)) {
         const auto *Feature = std::find_if(
-            RISCVFeatureKV, std::end(RISCVFeatureKV),
-            [&](auto Feature) {
+            RISCVFeatureKV, std::end(RISCVFeatureKV), [&](auto Feature) {
               return SysReg->FeaturesRequired[Feature.Value];
             });
         auto ErrorMsg = std::string("system register '") + SysReg->Name + "' ";

``````````

</details>


https://github.com/llvm/llvm-project/pull/104424


More information about the llvm-commits mailing list