llvm/mlir/lib/Dialect/Tensor/Extensions/MeshShardingExtensions.cpp

//===- ShardingInterfaceImpl.cpp ------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/Mesh/Interfaces/ShardingInterface.h"
#include "mlir/Dialect/Mesh/Interfaces/ShardingInterfaceImpl.h"
#include "mlir/Dialect/Tensor/IR/ShardingInterfaceImpl.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/IR/DialectRegistry.h"
#include "llvm/Support/Debug.h"

#define DEBUG_TYPE
#define DBGS()

usingnamespacemlir;
usingnamespacemlir::tensor;
usingnamespacemlir::mesh;

namespace {

// Sharding of tensor.empty
struct EmptyOpShardingInterface
    : public ShardingInterface::ExternalModel<EmptyOpShardingInterface,
                                              tensor::EmptyOp> {};
} // namespace

void mlir::tensor::registerShardingInterfaceExternalModels(
    DialectRegistry &registry) {}