[Mlir-commits] [mlir] [mlir][mesh] Add collective communication operations (PR #71960)
Boian Petkantchin
llvmlistbot at llvm.org
Tue Nov 14 14:22:47 PST 2023
================
@@ -471,46 +460,42 @@ LogicalResult verifyReduceScatterOperandAndResultShape(
//===----------------------------------------------------------------------===//
LogicalResult
-mlir::mesh::AllReduceOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
+AllReduceOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
return verifyMeshSymbolUses(*this, symbolTable);
}
-void mlir::mesh::AllReduceOp::getCanonicalizationPatterns(
- RewritePatternSet &patterns, MLIRContext *context) {
- populateMeshAxesSetCanonicalizationPatterns<AllReduceOp>(patterns, context);
+LogicalResult mlir::mesh::AllReduceOp::verify() {
+ return verifyMeshAxes(getLoc(), getMeshAxes());
----------------
sogartar wrote:
Never mind, I actually do the check in `verifyMeshSymbolUses`.
https://github.com/llvm/llvm-project/pull/71960
More information about the Mlir-commits
mailing list