30 #define GEN_PASS_DEF_TOSATOLINALGNAMED
31 #include "mlir/Conversion/Passes.h.inc"
37 struct TosaToLinalgNamed
38 :
public impl::TosaToLinalgNamedBase<TosaToLinalgNamed> {
42 .
insert<arith::ArithDialect, linalg::LinalgDialect, math::MathDialect,
43 tensor::TensorDialect, scf::SCFDialect>();
46 void runOnOperation()
override {
50 tensor::TensorDialect, scf::SCFDialect>();
63 FunctionOpInterface func = getOperation();
72 return std::make_unique<TosaToLinalgNamed>();
This class describes a specific conversion target.
void addLegalDialect(StringRef name, Names... names)
Register the operations of the given dialects as legal.
void markUnknownOpDynamicallyLegal(const DynamicLegalityCallbackFn &fn)
Register unknown operations as dynamically legal.
void addIllegalOp(OperationName op)
Register the given operation as illegal, i.e.
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Operation is the basic unit of execution within MLIR.
std::unique_ptr< Pass > createTosaToLinalgNamed()
void populateTosaToLinalgNamedConversionPatterns(RewritePatternSet *patterns)
Populates conversion passes from TOSA dialect to Linalg named operations.
Include the generated interface declarations.
LogicalResult applyFullConversion(ArrayRef< Operation * > ops, ConversionTarget &target, const FrozenRewritePatternSet &patterns)
Apply a complete conversion on the given operations, and all nested operations.
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value.