[llvm] [TableGen][GlobalISel] Specialize more MatchTable Opcodes (PR #89736)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 04:06:36 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 8a631d789859d09ba3a11a1206c30e595f4b6428 c063e482a69a955c6580dfee1d69a3bad5d1b766 -- llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
``````````

</details>

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

``````````diff
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
index 663c04c521..8af219f34e 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
@@ -730,7 +730,7 @@ void RuleMatcher::optimize() {
   auto EraseRootIt = Actions.end();
   auto It = Actions.begin();
   while (It != Actions.end()) {
-    if(const auto* EI = dyn_cast<EraseInstAction>(It->get())) {
+    if (const auto *EI = dyn_cast<EraseInstAction>(It->get())) {
       unsigned InstID = EI->getInsnID();
       if (!AlreadySeenEraseInsts.insert(InstID).second) {
         It = Actions.erase(It);

``````````

</details>


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


More information about the llvm-commits mailing list