[llvm] [RISCV] Add groupid/bitmask for RISC-V extension (PR #94440)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 01:36: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 79b1137666da80184ee2459301194d518b40605a 0d4af6e2f351b7e4e94d9fabbcee6ad49d6647a2 -- llvm/include/llvm/TargetParser/RISCVTargetParser.h llvm/lib/TargetParser/RISCVTargetParser.cpp llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp b/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
index 0c02ca626f..4b6677c6b3 100644
--- a/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
+++ b/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
@@ -240,9 +240,11 @@ static void emitRISCVExtensionBitmask(RecordKeeper &RK, raw_ostream &OS) {
     assert(GroupIDBits);
     assert(BitmaskBits);
 
-    OS << "    {" << "\"" << Rec->getValueAsString("Name") << "\"" << ", "
-       << getValueFromBitsInit(GroupIDBits, *Rec) << ", "
-       << getValueFromBitsInit(BitmaskBits, *Rec) << "ULL" << "},\n";
+    OS << "    {"
+       << "\"" << Rec->getValueAsString("Name") << "\""
+       << ", " << getValueFromBitsInit(GroupIDBits, *Rec) << ", "
+       << getValueFromBitsInit(BitmaskBits, *Rec) << "ULL"
+       << "},\n";
   }
   OS << "};\n";
   OS << "#endif\n";

``````````

</details>


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


More information about the llvm-commits mailing list