13 #ifndef MLIR_DIALECT_TOSA_TRANSFORMS_PASSES_H
14 #define MLIR_DIALECT_TOSA_TRANSFORMS_PASSES_H
17 #include "mlir/Dialect/Tosa/Transforms/PassesEnums.h.inc"
25 #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc"
40 bool aggressiveReduceConstant);
46 const TosaLayerwiseConstantFoldPassOptions &
options);
54 TosaProfileEnum
profile = TosaProfileEnum::Undefined;
67 TosaLevelEnum
level = TosaLevelEnum::EightK;
74 #define GEN_PASS_REGISTRATION
75 #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc"
static llvm::ManagedStatic< PassManagerOptions > options
std::unique_ptr< Pass > createTosaMakeBroadcastablePass()
void populateTosaDecomposeDepthwise(MLIRContext *ctx, RewritePatternSet &patterns)
void populateTosaDecomposeConv2D(MLIRContext *ctx, RewritePatternSet &patterns)
std::unique_ptr< Pass > createTosaTestQuantUtilAPIPass()
void populateTosaConstantReduction(MLIRContext *ctx, RewritePatternSet &patterns, bool aggressiveReduceConstant)
std::unique_ptr< Pass > createTosaOptionalDecompositions()
void populateTosaFoldConstantReciprocalPatterns(MLIRContext *ctx, RewritePatternSet &patterns)
void populateTosaTypeConversion(TypeConverter &converter)
void populateTosaDecomposeTransposeConv(MLIRContext *ctx, RewritePatternSet &patterns)
std::unique_ptr< Pass > createTosaLayerwiseConstantFoldPass()
std::unique_ptr< Pass > createTosaInferShapesPass()
void populateTosaFoldConstantTransposePatterns(MLIRContext *ctx, RewritePatternSet &patterns)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
ValidationOptions & setProfile(TosaProfileEnum profile)
TosaLevelEnum level
Validate if operator parameters are within specfication for the given level.
bool strictOperationSpecAlignment
Verify if the properties of certain operations align the spec requirement.
ValidationOptions & setLevel(TosaLevelEnum level)
TosaProfileEnum profile
Validate if operations match for the given profile.
ValidationOptions & enableStrictOperationSpecAlignment(bool enable=true)