|
CIRCT 23.0.0git
|
Extension of RewritePatternSet that allows adding matchAndRewrite functions with op adaptors and ConversionPatternRewriter as patterns.
More...
#include <ConversionPatternSet.h>


Public Member Functions | |
| ConversionPatternSet (MLIRContext *context, const TypeConverter &typeConverter) | |
| template<class Op , typename... ExtraArgs> | |
| ConversionPatternSet & | add (LogicalResult(*implFn)(Op, typename Op::Adaptor, ConversionPatternRewriter &, ExtraArgs...), llvm::type_identity_t< ExtraArgs >... args) |
Add a matchAndRewrite function as a conversion pattern to the set. | |
| template<class Op , typename... ExtraArgs> | |
| ConversionPatternSet & | add (LogicalResult(*implFn)(Op, typename Op::Adaptor, ConversionPatternRewriter &, const TypeConverter &, ExtraArgs...), llvm::type_identity_t< ExtraArgs >... args) |
Add a matchAndRewrite function as a conversion pattern to the set. | |
Public Attributes | |
| const TypeConverter & | typeConverter |
Extension of RewritePatternSet that allows adding matchAndRewrite functions with op adaptors and ConversionPatternRewriter as patterns.
Definition at line 23 of file ConversionPatternSet.h.
|
inline |
Definition at line 27 of file ConversionPatternSet.h.
|
inline |
Add a matchAndRewrite function as a conversion pattern to the set.
The pattern's type converter is automatically forwarded to the function, followed by any extra arguments.
Definition at line 73 of file ConversionPatternSet.h.
References add(), and typeConverter.
|
inline |
Add a matchAndRewrite function as a conversion pattern to the set.
Extra arguments beyond the op, adaptor, and rewriter are deduced from the function pointer signature, stored in the pattern, and forwarded on each invocation.
Definition at line 38 of file ConversionPatternSet.h.
References add(), and typeConverter.
| const TypeConverter& circt::ConversionPatternSet::typeConverter |
Definition at line 25 of file ConversionPatternSet.h.