[Mlir-commits] [mlir] [MLIR] Determine contiguousness of memrefs with a dynamic dimension (PR #140872)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 21 02:55:22 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 HEAD~1 HEAD --extensions cpp -- mlir/lib/IR/BuiltinTypes.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/IR/BuiltinTypes.cpp b/mlir/lib/IR/BuiltinTypes.cpp
index facf17551..41cc68480 100644
--- a/mlir/lib/IR/BuiltinTypes.cpp
+++ b/mlir/lib/IR/BuiltinTypes.cpp
@@ -652,7 +652,7 @@ bool MemRefType::areTrailingDimsContiguous(int64_t n) {
   if (n == 1)
     return true;
 
-  auto memrefShape = getShape().take_back(n-1);
+  auto memrefShape = getShape().take_back(n - 1);
   if (ShapedType::isDynamicShape(memrefShape))
     return false;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/140872


More information about the Mlir-commits mailing list