[Mlir-commits] [mlir] 31fd6d1 - [mlir][mesh] fix ProcessMultiIndexOp building (#77676)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 10 17:28:21 PST 2024
Author: Boian Petkantchin
Date: 2024-01-10T17:28:17-08:00
New Revision: 31fd6d116daba3b7f8e17a2c9d671e265f49be3c
URL: https://github.com/llvm/llvm-project/commit/31fd6d116daba3b7f8e17a2c9d671e265f49be3c
DIFF: https://github.com/llvm/llvm-project/commit/31fd6d116daba3b7f8e17a2c9d671e265f49be3c.diff
LOG: [mlir][mesh] fix ProcessMultiIndexOp building (#77676)
Insert default empty mesh axes array instead of null attribute without MLIR context, since the attribute is default-valued not just optional.
Added:
Modified:
mlir/lib/Dialect/Mesh/IR/MeshOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp b/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp
index 9b110c462915e7..957b380efd516b 100644
--- a/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp
+++ b/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp
@@ -353,7 +353,7 @@ void ProcessMultiIndexOp::build(OpBuilder &odsBuilder, OperationState &odsState,
ClusterOp mesh) {
build(odsBuilder, odsState,
SmallVector<Type>(mesh.getRank(), odsBuilder.getIndexType()),
- mesh.getSymName(), MeshAxesAttr());
+ mesh.getSymName(), ArrayRef<MeshAxis>());
}
void ProcessMultiIndexOp::build(OpBuilder &odsBuilder, OperationState &odsState,
More information about the Mlir-commits
mailing list