9 #ifndef MLIR_CONVERSION_CONVERTTOEMITC_TOEMITCINTERFACE_H
10 #define MLIR_CONVERSION_CONVERTTOEMITC_TOEMITCINTERFACE_H
17 class ConversionTarget;
21 class RewritePatternSet;
22 class AnalysisManager;
This class describes a specific conversion target.
ConvertToEmitCPatternInterface(Dialect *dialect)
virtual void populateConvertToEmitCConversionPatterns(ConversionTarget &target, TypeConverter &typeConverter, RewritePatternSet &patterns) const =0
Hook for derived dialect interface to provide conversion patterns and mark dialect legal for the conv...
Dialects are groups of MLIR operations, types and attributes, as well as behavior associated with the...
Operation is the basic unit of execution within MLIR.
The base class used for all derived interface types.
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
void populateConversionTargetFromOperation(Operation *op, ConversionTarget &target, TypeConverter &typeConverter, RewritePatternSet &patterns)
Recursively walk the IR and collect all dialects implementing the interface, and populate the convers...