14 #ifndef MLIR_CONVERSION_TOSATOLINALG_TOSATOLINALG_H
15 #define MLIR_CONVERSION_TOSATOLINALG_TOSATOLINALG_H
22 #define GEN_PASS_DECL_TOSATOLINALG
23 #define GEN_PASS_DECL_TOSATOLINALGNAMED
24 #include "mlir/Conversion/Passes.h.inc"
30 const TosaToLinalgNamedOptions &
options = TosaToLinalgNamedOptions());
37 OpPassManager &pm,
const TosaToLinalgOptions &
options,
38 const TosaToLinalgNamedOptions &tosaToLinalgNamedOptions =
39 TosaToLinalgNamedOptions(),
41 std::optional<tosa::TosaValidationOptions> validationOptions =
42 tosa::TosaValidationOptions{
static llvm::ManagedStatic< PassManagerOptions > options
void populateTosaToLinalgConversionPatterns(const TypeConverter &converter, RewritePatternSet *patterns)
Populates conversion passes from TOSA dialect to Linalg dialect.
std::unique_ptr< Pass > createTosaToLinalgNamed(const TosaToLinalgNamedOptions &options=TosaToLinalgNamedOptions())
std::unique_ptr< Pass > createTosaToLinalg()
void registerTosaToLinalgPipelines()
Populates TOSA to linalg pipelines Currently, this includes only the "tosa-to-linalg-pipeline".
void populateTosaToLinalgNamedConversionPatterns(RewritePatternSet *patterns, const TosaToLinalgNamedOptions &options)
Populates conversion passes from TOSA dialect to Linalg named operations.
void addTosaToLinalgPasses(OpPassManager &pm, const TosaToLinalgOptions &options, const TosaToLinalgNamedOptions &tosaToLinalgNamedOptions=TosaToLinalgNamedOptions(), std::optional< tosa::TosaValidationOptions > validationOptions=tosa::TosaValidationOptions{ {"none"}, false, tosa::TosaLevelEnum::None})
Populates passes to convert from TOSA to Linalg on buffers.
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns