#include "mlir/Dialect/Tosa/IR/ShardingInterfaceImpl.h"
#include "mlir/Dialect/Mesh/IR/MeshOps.h"
#include "mlir/Dialect/Mesh/Interfaces/ShardingInterface.h"
#include "mlir/Dialect/Mesh/Interfaces/ShardingInterfaceImpl.h"
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
#include "mlir/IR/AffineMap.h"
#include "mlir/IR/DialectRegistry.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE …
#define DBGS() …
usingnamespacemlir;
usingnamespacemlir::tosa;
usingnamespacemlir::mesh;
namespace {
struct MatMulOpSharding
: public ShardingInterface::ExternalModel<MatMulOpSharding, MatMulOp> { … };
template <typename OpType>
static void registerElemwiseOne(MLIRContext *ctx) { … }
template <typename... OpTypes>
static void registerElemwiseAll(MLIRContext *ctx) { … }
}
void mlir::tosa::registerShardingInterfaceExternalModels(
DialectRegistry ®istry) { … }