[Mlir-commits] [mlir] [mlir][linalg] Enable CollapseLinalgDimensions to collapse linalg::CopyOp (PR #68526)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 11 01:50:33 PDT 2023
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 d5444ab26743115e42e4abb3782bbefb0e8912d0 8a3290ac2978fa964e3254c916848fe80d958c25 -- mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
index eb6c68f5b1cb..329c51f61c0d 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
@@ -1441,7 +1441,8 @@ void generateCollapsedIndexingRegion(Location loc, Block *block,
}
template <typename LinalgType>
-Operation *createCollapsedOp(LinalgType op, const CollapsingInfo &collapsingInfo,
+Operation *createCollapsedOp(LinalgType op,
+ const CollapsingInfo &collapsingInfo,
RewriterBase &rewriter) {
static_assert(llvm::is_one_of<LinalgType, GenericOp, CopyOp>::value,
"unsupported linalg op type to create");
``````````
</details>
https://github.com/llvm/llvm-project/pull/68526
More information about the Mlir-commits
mailing list