22 #define GEN_PASS_DEF_TOSATOMLPROGRAM
23 #include "mlir/Conversion/Passes.h.inc"
30 struct TosaToMLProgram :
public impl::TosaToMLProgramBase<TosaToMLProgram> {
32 void runOnOperation()
override {
34 auto moduleOp = getOperation();
38 target.
addIllegalOp<tosa::VariableOp, tosa::VariableReadOp,
39 tosa::VariableWriteOp>();
static MLIRContext * getContext(OpFoldResult val)
This class describes a specific conversion target.
void markUnknownOpDynamicallyLegal(const DynamicLegalityCallbackFn &fn)
Register unknown operations as dynamically legal.
void addIllegalOp(OperationName op)
Register the given operation as illegal, i.e.
Operation is the basic unit of execution within MLIR.
void populateTosaToMLProgramConversionPatterns(RewritePatternSet *patterns)
Include the generated interface declarations.
LogicalResult applyPartialConversion(ArrayRef< Operation * > ops, const ConversionTarget &target, const FrozenRewritePatternSet &patterns, ConversionConfig config=ConversionConfig())
Below we define several entry points for operation conversion.