[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:29:18 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: LL (wallfIower)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/85946.diff
1 Files Affected:
- (modified) llvm/include/llvm/IR/PatternMatch.h (+4-2)
``````````diff
diff --git a/llvm/include/llvm/IR/PatternMatch.h b/llvm/include/llvm/IR/PatternMatch.h
index 382009d9df785d..c856f69fff9c13 100644
--- a/llvm/include/llvm/IR/PatternMatch.h
+++ b/llvm/include/llvm/IR/PatternMatch.h
@@ -68,12 +68,14 @@ 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