[llvm] [TableGen] Support for optional chain in Selection DAG nodes (PR #163079)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 01:56:41 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 cpp,h -- llvm/include/llvm/CodeGen/SDNodeInfo.h llvm/include/llvm/CodeGen/SelectionDAGISel.h llvm/include/llvm/CodeGen/SelectionDAGNodes.h llvm/lib/CodeGen/SelectionDAG/SDNodeInfo.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp llvm/utils/TableGen/Basic/SDNodeProperties.cpp llvm/utils/TableGen/Basic/SDNodeProperties.h llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp llvm/utils/TableGen/Common/DAGISelMatcher.cpp llvm/utils/TableGen/Common/DAGISelMatcher.h llvm/utils/TableGen/DAGISelMatcherEmitter.cpp llvm/utils/TableGen/DAGISelMatcherGen.cpp llvm/utils/TableGen/DAGISelMatcherOpt.cpp llvm/utils/TableGen/SDNodeInfoEmitter.cpp --diff_from_common_commit
``````````
: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/Basic/SDNodeProperties.cpp b/llvm/utils/TableGen/Basic/SDNodeProperties.cpp
index ba130fc2b..b16fce74c 100644
--- a/llvm/utils/TableGen/Basic/SDNodeProperties.cpp
+++ b/llvm/utils/TableGen/Basic/SDNodeProperties.cpp
@@ -42,7 +42,8 @@ unsigned llvm::parseSDPatternOperatorProperties(const Record *R) {
if (Properties & (1 << SDNPHasChain) && Properties & (1 << SDNPOptChain))
PrintFatalError(R->getLoc(),
"Properties 'SDNPHasChain' and 'SDNPOptChain' cannot be "
- "both specified on node '" + R->getName() + "'!");
+ "both specified on node '" +
+ R->getName() + "'!");
return Properties;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/163079
More information about the llvm-commits
mailing list