[llvm] [TableGen][GlobalISel] Emit Comment with MatchTable Size (PR #74701)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 00:08:37 PST 2023


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 04ce9a34ea82647a61b4e2a2a3cc5c93cc2f0d7d b774a87cff933f443d55e5dc7eb61ae221896cad -- llvm/utils/TableGen/GlobalISelMatchTable.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/utils/TableGen/GlobalISelMatchTable.cpp b/llvm/utils/TableGen/GlobalISelMatchTable.cpp
index eb72c84e57..bdd985c880 100644
--- a/llvm/utils/TableGen/GlobalISelMatchTable.cpp
+++ b/llvm/utils/TableGen/GlobalISelMatchTable.cpp
@@ -243,7 +243,8 @@ void MatchTable::emitDeclaration(raw_ostream &OS) const {
     if (I->Flags & MatchTableRecord::MTRF_Outdent)
       Indentation -= 2;
   }
-  OS << "}; // Size: " << (CurrentSize * 8) << " bytes\n";;
+  OS << "}; // Size: " << (CurrentSize * 8) << " bytes\n";
+  ;
 }
 
 MatchTable MatchTable::buildTable(ArrayRef<Matcher *> Rules, bool WithCoverage,

``````````

</details>


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


More information about the llvm-commits mailing list