[Mlir-commits] [mlir] [mlir][bufferization] `MaterializeInDestinationOp`: Support memref destinations (PR #68074)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Oct 3 23:53:54 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 8823e961f6a41854668d2dc1a1fc787cfa85ca43 4b7d28999000e0cf38f3f9ec1e7061698805f099 -- mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp mlir/lib/Dialect/Bufferization/Transforms/EmptyTensorElimination.cpp mlir/lib/Dialect/Linalg/Transforms/Padding.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
index a891127fb..5e2a5cc3f 100644
--- a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
+++ b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
@@ -549,8 +549,7 @@ bool MaterializeInDestinationOp::bufferizesToMemoryWrite(
AliasingValueList
MaterializeInDestinationOp::getAliasingValues(OpOperand &opOperand,
const AnalysisState &state) {
- if (isa<TensorType>(getDest().getType()) &&
- &opOperand == &getDestMutable())
+ if (isa<TensorType>(getDest().getType()) && &opOperand == &getDestMutable())
return {{getOperation()->getResult(0), BufferRelation::Equivalent}};
return {};
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/68074
More information about the Mlir-commits
mailing list