[llvm] [NFC] Format AllowReassoc_match to conform to LLVM style (PR #85946)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 08:30:03 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 927308a52bc51ae786db1bd645ad5ef5889fdb2a f894d7d72a4bca081ee21e6a62c89f6b7815a235 -- llvm/include/llvm/IR/PatternMatch.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/PatternMatch.h b/llvm/include/llvm/IR/PatternMatch.h
index c856f69fff..382009d9df 100644
--- a/llvm/include/llvm/IR/PatternMatch.h
+++ b/llvm/include/llvm/IR/PatternMatch.h
@@ -68,14 +68,12 @@ template <typename T> inline OneUse_match<T> m_OneUse(const T &SubPattern) {
return SubPattern;
}
-template <typename SubPattern_t>
-struct AllowReassoc_match {
+template <typename SubPattern_t> struct AllowReassoc_match {
SubPattern_t SubPattern;
AllowReassoc_match(const SubPattern_t &SP) : SubPattern(SP) {}
- template <typename OpTy>
- bool match(OpTy *V) {
+ template <typename OpTy> bool match(OpTy *V) {
auto *I = dyn_cast<FPMathOperator>(V);
return I && I->hasAllowReassoc() && SubPattern.match(I);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/85946
More information about the llvm-commits
mailing list