9 #ifndef CIRCT_SUPPORT_CONVERSIONPATTERNS_H
10 #define CIRCT_SUPPORT_CONVERSIONPATTERNS_H
14 #include "mlir/Transforms/DialectConversion.h"
20 ConversionPatternRewriter &rewriter,
21 const TypeConverter *typeConverter);
32 : ConversionPattern(converter, MatchAnyOpTypeTag(), 1, context) {}
33 using ConversionPattern::ConversionPattern;
37 ConversionPatternRewriter &rewriter)
const override {
43 template <
typename OpTy>
50 ConversionPatternRewriter &rewriter)
const override {
52 this->getTypeConverter());
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
LogicalResult doTypeConversion(Operation *op, ValueRange operands, ConversionPatternRewriter &rewriter, const TypeConverter *typeConverter)
Generic pattern which replaces an operation by one of the same operation name, but with converted att...
TypeConversionPattern(TypeConverter &converter, MLIRContext *context)
LogicalResult matchAndRewrite(Operation *op, ArrayRef< Value > operands, ConversionPatternRewriter &rewriter) const override
LogicalResult matchAndRewrite(OpTy op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override
typename mlir::OpConversionPattern< OpTy >::OpAdaptor OpAdaptor