24 #define GEN_PASS_DEF_TOSAOPTIONALDECOMPOSITIONS
25 #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc"
33 struct TosaOptionalDecompositions
34 :
public tosa::impl::TosaOptionalDecompositionsBase<
35 TosaOptionalDecompositions> {
36 void runOnOperation()
override {
37 auto *ctx = &getContext();
39 auto func = getOperation();
53 return std::make_unique<TosaOptionalDecompositions>();
void populateTosaDecomposeDepthwise(MLIRContext *ctx, RewritePatternSet &patterns)
void populateTosaDecomposeConv2D(MLIRContext *ctx, RewritePatternSet &patterns)
std::unique_ptr< Pass > createTosaOptionalDecompositions()
void populateTosaDecomposeTransposeConv(MLIRContext *ctx, RewritePatternSet &patterns)
This header declares functions that assist transformations in the MemRef dialect.
LogicalResult applyPatternsAndFoldGreedily(Region ®ion, const FrozenRewritePatternSet &patterns, GreedyRewriteConfig config=GreedyRewriteConfig())
Rewrite ops in the given region, which must be isolated from above, by repeatedly applying the highes...
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value.