[Mlir-commits] [mlir] [mlir][bufferization] Convert tensor enconding -> memref layout (PR #161166)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Sep 29 03:17:57 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 origin/main HEAD --extensions h,cpp -- mlir/unittests/Transforms/OneShotBufferization.cpp mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp b/mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
index 74864bfd5..db06edcbe 100644
--- a/mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
+++ b/mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
@@ -67,7 +67,7 @@ struct BuiltinTensorExternalModel
return emitError() << "could not infer memory space";
MemRefLayoutAttrInterface layout = {};
if (options.constructMemRefLayoutFn)
- layout = options.constructMemRefLayoutFn(tensorType);
+ layout = options.constructMemRefLayoutFn(tensorType);
return cast<BufferLikeType>(
getMemRefType(tensorType, options, layout, *memSpace));
``````````
</details>
https://github.com/llvm/llvm-project/pull/161166
More information about the Mlir-commits
mailing list