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 {
39 auto func = getOperation();
53 return std::make_unique<TosaOptionalDecompositions>();
static MLIRContext * getContext(OpFoldResult val)
void populateTosaDecomposeDepthwise(MLIRContext *ctx, RewritePatternSet &patterns)
void populateTosaDecomposeConv2D(MLIRContext *ctx, RewritePatternSet &patterns)
std::unique_ptr< Pass > createTosaOptionalDecompositions()
void populateTosaDecomposeTransposeConv(MLIRContext *ctx, RewritePatternSet &patterns)
Include the generated interface declarations.
LogicalResult applyPatternsAndFoldGreedily(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...
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value.