#include "mlir/Dialect/Tensor/Transforms/SubsetInsertionOpInterfaceImpl.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/Interfaces/SubsetOpInterface.h"
#include "mlir/Interfaces/ValueBoundsOpInterface.h"
usingnamespacemlir;
usingnamespacemlir::tensor;
namespace {
struct ExtractSliceOpSubsetOpInterface
: public SubsetOpInterface::ExternalModel<ExtractSliceOpSubsetOpInterface,
tensor::ExtractSliceOp> { … };
struct ExtractSliceOpSubsetExtractionOpInterface
: public SubsetExtractionOpInterface::ExternalModel<
ExtractSliceOpSubsetExtractionOpInterface, tensor::ExtractSliceOp> { … };
template <typename OpTy>
struct InsertSliceLikeOpSubsetOpInterface
: public SubsetOpInterface::ExternalModel<
InsertSliceLikeOpSubsetOpInterface<OpTy>, OpTy> { … };
template <typename OpTy>
struct InsertSliceLikeOpSubsetInsertionOpInterface
: public SubsetInsertionOpInterface::ExternalModel<
InsertSliceLikeOpSubsetInsertionOpInterface<OpTy>, OpTy> { … };
}
void mlir::tensor::registerSubsetOpInterfaceExternalModels(
DialectRegistry ®istry) { … }