[Mlir-commits] [mlir] [mlir][memref] Rename `MemRef` directories and files. NFC. (PR #102337)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 7 10:28:31 PDT 2024


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 f9f0ae1bc47fbe76141cce63a6e92e3f3546ec9b a9acdcfb61d83eb22dee2d8370c57a6855704c17 --extensions c,cpp -- mlir/lib/Dialect/GPU/Transforms/DecomposeMemRefs.cpp mlir/test/Integration/Dialect/MemRef/memref_abi.c
``````````

</details>

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

``````````diff
diff --git a/mlir/test/Integration/Dialect/MemRef/memref_abi.c b/mlir/test/Integration/Dialect/MemRef/memref_abi.c
index 8862727a53..08a6e9a4ce 100644
--- a/mlir/test/Integration/Dialect/MemRef/memref_abi.c
+++ b/mlir/test/Integration/Dialect/MemRef/memref_abi.c
@@ -19,18 +19,13 @@
 /* MLIR_BEGIN
 //--- input.mlir
 // Performs: arg0[i, j] = arg0[i, j] + arg1[i, j]
-func.func private @add_memref(%arg0: memref<?x?xf64>, %arg1: memref<?x?xf64>) -> i64
-   attributes {llvm.emit_c_interface} {
-  %c0 = arith.constant 0 : index
-  %c1 = arith.constant 1 : index
-  %dimI = memref.dim %arg0, %c0 : memref<?x?xf64>
-  %dimJ = memref.dim %arg0, %c1 : memref<?x?xf64>
-  affine.for %i = 0 to %dimI {
-    affine.for %j = 0 to %dimJ {
-      %load0 = memref.load %arg0[%i, %j] : memref<?x?xf64>
-      %load1 = memref.load %arg1[%i, %j] : memref<?x?xf64>
-      %add = arith.addf %load0, %load1 : f64
-      affine.store %add, %arg0[%i, %j] : memref<?x?xf64>
+func.func private @add_memref(%arg0: memref<?x?xf64>, %arg1: memref<?x?xf64>) ->
+i64 attributes {llvm.emit_c_interface} { %c0 = arith.constant 0 : index %c1 =
+arith.constant 1 : index %dimI = memref.dim %arg0, %c0 : memref<?x?xf64> %dimJ =
+memref.dim %arg0, %c1 : memref<?x?xf64> affine.for %i = 0 to %dimI { affine.for
+%j = 0 to %dimJ { %load0 = memref.load %arg0[%i, %j] : memref<?x?xf64> %load1 =
+memref.load %arg1[%i, %j] : memref<?x?xf64> %add = arith.addf %load0, %load1 :
+f64 affine.store %add, %arg0[%i, %j] : memref<?x?xf64>
     }
   }
   %c42 = arith.constant 42 : i64

``````````

</details>


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


More information about the Mlir-commits mailing list