[llvm] [DAG] Added m_AnyBinOp and m_c_AnyBinOp in SDPatternMatch.h (PR #86435)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 06:09:35 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 f1ca0b6ce85ba43faf5064e333080092b31eb4c9 eff10633c8fcf9c185c47106ca9b35bc478c3165 -- llvm/include/llvm/CodeGen/SDPatternMatch.h llvm/unittests/CodeGen/SelectionDAGPatternMatchTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/SDPatternMatch.h b/llvm/include/llvm/CodeGen/SDPatternMatch.h
index 22d5275b0d..56cf4f3e74 100644
--- a/llvm/include/llvm/CodeGen/SDPatternMatch.h
+++ b/llvm/include/llvm/CodeGen/SDPatternMatch.h
@@ -509,7 +509,7 @@ inline BinaryOpc_match<LHS, RHS, false> m_BinOp(unsigned Opc, const LHS &L,
   return BinaryOpc_match<LHS, RHS, false>(Opc, L, R);
 }
 template <typename LHS, typename RHS>
-inline BinaryOpc_match<LHS,RHS,false> m_BinOp(const LHS &L, const RHS &R) {
+inline BinaryOpc_match<LHS, RHS, false> m_BinOp(const LHS &L, const RHS &R) {
   return BinaryOpc_match<LHS, RHS, false>(TLI.isBinOp(), L, R);
 }
 template <typename LHS, typename RHS>
@@ -518,7 +518,7 @@ inline BinaryOpc_match<LHS, RHS, true> m_c_BinOp(unsigned Opc, const LHS &L,
   return BinaryOpc_match<LHS, RHS, true>(Opc, L, R);
 }
 template <typename LHS, typename RHS>
-inline BinaryOpc_match<LHS,RHS,true> m_c_BinOp(const LHS &L, const RHS &R) {
+inline BinaryOpc_match<LHS, RHS, true> m_c_BinOp(const LHS &L, const RHS &R) {
   return BinaryOpc_match<LHS, RHS, false>(TLI.isCommutativeBinOp(), L, R);
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list