CIRCT
20.0.0git
|
Generic pattern which replaces an operation by one of the same operation name, but with converted attributes, operands, and result types to eliminate illegal types. More...
#include <ConversionPatterns.h>
Public Member Functions | |
TypeConversionPattern (TypeConverter &converter, MLIRContext *context) | |
LogicalResult | matchAndRewrite (Operation *op, ArrayRef< Value > operands, ConversionPatternRewriter &rewriter) const override |
Generic pattern which replaces an operation by one of the same operation name, but with converted attributes, operands, and result types to eliminate illegal types.
Uses generic builders based on OperationState to make sure that this pattern can apply to any operation.
Useful when a conversion can be entirely defined by a TypeConverter.
Definition at line 29 of file ConversionPatterns.h.
|
inline |
Definition at line 31 of file ConversionPatterns.h.
|
inlineoverride |
Definition at line 36 of file ConversionPatterns.h.
References circt::doTypeConversion().