#include "mlir/Dialect/Vector/Transforms/SubsetOpInterfaceImpl.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Interfaces/SubsetOpInterface.h"
usingnamespacemlir;
usingnamespacemlir::vector;
namespace {
template <typename OpTy>
struct XferOpSubsetOpInterface
: public SubsetOpInterface::ExternalModel<XferOpSubsetOpInterface<OpTy>,
OpTy> { … };
struct TransferReadOpSubsetExtractionOpInterface
: public SubsetExtractionOpInterface::ExternalModel<
TransferReadOpSubsetExtractionOpInterface, vector::TransferReadOp> { … };
struct TransferWriteOpSubsetInsertionOpInterface
: public SubsetInsertionOpInterface::ExternalModel<
TransferWriteOpSubsetInsertionOpInterface, vector::TransferWriteOp> { … };
}
void mlir::vector::registerSubsetOpInterfaceExternalModels(
DialectRegistry ®istry) { … }