23 #define GEN_PASS_DEF_CONVERTARITHTOEMITC
24 #include "mlir/Conversion/Passes.h.inc"
30 struct ConvertArithToEmitC
31 :
public impl::ConvertArithToEmitCBase<ConvertArithToEmitC> {
32 void runOnOperation()
override;
36 void ConvertArithToEmitC::runOnOperation() {
39 target.addLegalDialect<emitc::EmitCDialect>();
40 target.addIllegalDialect<arith::ArithDialect>();
static MLIRContext * getContext(OpFoldResult val)
This class describes a specific conversion target.
void addConversion(FnT &&callback)
Register a conversion function.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
Include the generated interface declarations.
void populateArithToEmitCPatterns(TypeConverter &typeConverter, RewritePatternSet &patterns)
LogicalResult applyPartialConversion(ArrayRef< Operation * > ops, const ConversionTarget &target, const FrozenRewritePatternSet &patterns, ConversionConfig config=ConversionConfig())
Below we define several entry points for operation conversion.