#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Mesh/IR/MeshOps.h"
#include "mlir/Dialect/Mesh/Transforms/Spmdization.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/BuiltinTypeInterfaces.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/IR/Value.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
usingnamespacemlir;
usingnamespacemlir::mesh;
namespace {
struct TestMeshReshardingRewritePattern : OpRewritePattern<ShardOp> { … };
struct TestMeshReshardingPass
: public PassWrapper<TestMeshReshardingPass, OperationPass<ModuleOp>> { … };
}
namespace mlir {
namespace test {
void registerTestMeshReshardingSpmdizationPass() { … }
}
}