picceler
A compiled DSL for image processing, built on MLIR
Loading...
Searching...
No Matches
picceler::GenericTypeUpdatePattern Struct Reference

A generic pattern that updates the types of operations based on a provided type converter. Used in KernelToMemref and OpsToFuncCalls passes to ensure that operations have the correct types after type conversion. More...

#include <passes.h>

Inheritance diagram for picceler::GenericTypeUpdatePattern:

Public Member Functions

 GenericTypeUpdatePattern (mlir::TypeConverter &converter, mlir::MLIRContext *context)
mlir::LogicalResult matchAndRewrite (mlir::Operation *op, mlir::ArrayRef< mlir::Value > operands, mlir::ConversionPatternRewriter &rewriter) const override

Detailed Description

A generic pattern that updates the types of operations based on a provided type converter. Used in KernelToMemref and OpsToFuncCalls passes to ensure that operations have the correct types after type conversion.

Constructor & Destructor Documentation

◆ GenericTypeUpdatePattern()

picceler::GenericTypeUpdatePattern::GenericTypeUpdatePattern ( mlir::TypeConverter & converter,
mlir::MLIRContext * context )
inline

Member Function Documentation

◆ matchAndRewrite()

mlir::LogicalResult picceler::GenericTypeUpdatePattern::matchAndRewrite ( mlir::Operation * op,
mlir::ArrayRef< mlir::Value > operands,
mlir::ConversionPatternRewriter & rewriter ) const
override

The documentation for this struct was generated from the following files: