22 #define GEN_PASS_DEF_TOSAOPTIONALDECOMPOSITIONSPASS
23 #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc"
31 struct TosaOptionalDecompositions
32 :
public tosa::impl::TosaOptionalDecompositionsPassBase<
33 TosaOptionalDecompositions> {
34 void runOnOperation()
override {
37 auto func = getOperation();
static MLIRContext * getContext(OpFoldResult val)
void populateTosaDecomposeDepthwise(MLIRContext *ctx, RewritePatternSet &patterns)
void populateTosaDecomposeTransposeConv(MLIRContext *ctx, RewritePatternSet &patterns)
Include the generated interface declarations.
LogicalResult applyPatternsGreedily(Region ®ion, const FrozenRewritePatternSet &patterns, GreedyRewriteConfig config=GreedyRewriteConfig(), bool *changed=nullptr)
Rewrite ops in the given region, which must be isolated from above, by repeatedly applying the highes...
const FrozenRewritePatternSet & patterns