[llvm] [TableGen][DecoderEmitter] Rework table construction/emission (PR #155889)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 13 03:44:54 PDT 2025
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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/MC/MCDecoderOps.h llvm/utils/TableGen/DecoderEmitter.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index 9c98fa390..78c80009f 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -2643,7 +2643,7 @@ template <typename T> constexpr uint32_t InsnBitWidth = 0;
std::unique_ptr<DecoderTreeNode> Root =
TreeBuilder.buildTree(EncodingIDs);
// Skip emitting table entries if a conflict has been detected.
- HasConflict= TreeBuilder.hasConflict();
+ HasConflict = TreeBuilder.hasConflict();
if (HasConflict)
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/155889
More information about the llvm-commits
mailing list