[Mlir-commits] [mlir] [mlir] add a fluent API to GreedyRewriterConfig (PR #132253)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Mar 20 10:06:34 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 72c3c30452d340d1a90cd3e7efe685ee188003c7 f00e6f4e012f89c1b5dc24b7612a040b18c06aab --extensions cpp,h -- mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h mlir/lib/Dialect/Affine/TransformOps/AffineTransformOps.cpp mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp mlir/lib/Dialect/Affine/Transforms/SimplifyAffineStructures.cpp mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp
index a60fd50b6c..6d66da6dfe 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp
@@ -463,7 +463,7 @@ struct BufferDeallocationSimplificationPass
SplitDeallocWhenNotAliasingAnyOther,
RetainedMemrefAliasingAlwaysDeallocatedMemref>(&getContext(),
analysis);
-
+
populateDeallocOpCanonicalizationPatterns(patterns, &getContext());
// We don't want that the block structure changes invalidating the
// `BufferOriginAnalysis` so we apply the rewrites with `Normal` level of
``````````
</details>
https://github.com/llvm/llvm-project/pull/132253
More information about the Mlir-commits
mailing list