[Mlir-commits] [mlir] adding MLIRMemRefDialect (PR #117986)
Frank Schlimbach
llvmlistbot at llvm.org
Thu Nov 28 02:20:46 PST 2024
https://github.com/fschlimb updated https://github.com/llvm/llvm-project/pull/117986
>From 340dd7f630fe1b7804740850625811a5da726dab Mon Sep 17 00:00:00 2001
From: "Schlimbach, Frank" <frank.schlimbach at intel.com>
Date: Thu, 28 Nov 2024 11:08:31 +0100
Subject: [PATCH 1/2] adding MLIRMemRefDialect, fixing post-CI failures
---
mlir/lib/Dialect/MPI/IR/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/lib/Dialect/MPI/IR/CMakeLists.txt b/mlir/lib/Dialect/MPI/IR/CMakeLists.txt
index 29d0b2379da747..edd7d911d0248e 100644
--- a/mlir/lib/Dialect/MPI/IR/CMakeLists.txt
+++ b/mlir/lib/Dialect/MPI/IR/CMakeLists.txt
@@ -14,6 +14,7 @@ add_mlir_dialect_library(MLIRMPIDialect
LINK_LIBS PUBLIC
MLIRDialect
MLIRIR
+ MLIRMemRefDialect
MLIRInferTypeOpInterface
MLIRSideEffectInterfaces
)
>From 0c8b4578cfa0b19a49338fab31ce4c489bc3d36f Mon Sep 17 00:00:00 2001
From: "Schlimbach, Frank" <frank.schlimbach at intel.com>
Date: Thu, 28 Nov 2024 11:20:24 +0100
Subject: [PATCH 2/2] fixing bufferization.to_memref syntax in test
---
mlir/test/Conversion/MeshToMPI/convert-mesh-to-mpi.mlir | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/test/Conversion/MeshToMPI/convert-mesh-to-mpi.mlir b/mlir/test/Conversion/MeshToMPI/convert-mesh-to-mpi.mlir
index 25d585a108c8ae..c1aef97438bd55 100644
--- a/mlir/test/Conversion/MeshToMPI/convert-mesh-to-mpi.mlir
+++ b/mlir/test/Conversion/MeshToMPI/convert-mesh-to-mpi.mlir
@@ -164,7 +164,7 @@ func.func @update_halo_3d_tensor(
// CHECK-NEXT: [[vc44_i32:%.*]] = arith.constant 44 : i32
// CHECK-NEXT: [[vc4_i32:%.*]] = arith.constant 4 : i32
// CHECK-NEXT: [[vc91_i32:%.*]] = arith.constant 91 : i32
- // CHECK-NEXT: [[v0:%.*]] = bufferization.to_memref [[varg0]] : memref<120x120x120xi8>
+ // CHECK-NEXT: [[v0:%.*]] = bufferization.to_memref [[varg0]] : tensor<120x120x120xi8> to memref<120x120x120xi8>
// CHECK-NEXT: [[valloc:%.*]] = memref.alloc() : memref<117x113x5xi8>
// CHECK-NEXT: [[vsubview:%.*]] = memref.subview [[v0]][1, 3, 109] [117, 113, 5] [1, 1, 1] : memref<120x120x120xi8> to memref<117x113x5xi8, strided<[14400, 120, 1], offset: 14869>>
// CHECK-NEXT: memref.copy [[vsubview]], [[valloc]] : memref<117x113x5xi8, strided<[14400, 120, 1], offset: 14869>> to memref<117x113x5xi8>
More information about the Mlir-commits
mailing list