22 #define GEN_PASS_DEF_CONVERTFUNCTOEMITC
23 #include "mlir/Conversion/Passes.h.inc"
29 struct ConvertFuncToEmitC
30 :
public impl::ConvertFuncToEmitCBase<ConvertFuncToEmitC> {
31 void runOnOperation()
override;
35 void ConvertFuncToEmitC::runOnOperation() {
38 target.addLegalDialect<emitc::EmitCDialect>();
39 target.addIllegalOp<func::CallOp, func::FuncOp, func::ReturnOp>();
static MLIRContext * getContext(OpFoldResult val)
This class describes a specific conversion target.
Include the generated interface declarations.
void populateFuncToEmitCPatterns(RewritePatternSet &patterns)
const FrozenRewritePatternSet & patterns
LogicalResult applyPartialConversion(ArrayRef< Operation * > ops, const ConversionTarget &target, const FrozenRewritePatternSet &patterns, ConversionConfig config=ConversionConfig())
Below we define several entry points for operation conversion.