[Mlir-commits] [mlir] [MLIR][shard] checking for correct&full sharding annotations (PR #176000)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Jan 15 07:26:53 PST 2026
================
@@ -663,13 +663,87 @@ partitionOperation(ShardOp shardOp, IRMapping &partitionMap,
return success();
}
+// Check if the block args are correctly annotated with sharding information:
+// - non-tensor and 0d-tensor args are ignored
+// - each tensor arg must have exactly one use, which must be a shard.shard
+// operation
+static LogicalResult checkFullyAnnotated(Block &block) {
+ for (auto arg : block.getArguments()) {
----------------
kuhar wrote:
spell this type out
https://github.com/llvm/llvm-project/pull/176000
More information about the Mlir-commits
mailing list