CIRCT 24.0.0git
Loading...
Searching...
No Matches
PartialLowerRegion Struct Reference

Allows to partially lower a region by matching on the parent operation to then call the provided partial lowering function with the region and the rewriter. More...

Inheritance diagram for PartialLowerRegion:
Collaboration diagram for PartialLowerRegion:

Public Types

using PartialLoweringFunc

Public Member Functions

 PartialLowerRegion (LowerRegionTarget &target, MLIRContext *context, LogicalResult &loweringResRef, const PartialLoweringFunc &fun)
LogicalResult matchAndRewrite (Operation *op, ArrayRef< Value >, ConversionPatternRewriter &rewriter) const override

Private Attributes

LowerRegionTarget & target
LogicalResult & loweringRes
PartialLoweringFunc fun

Detailed Description

Allows to partially lower a region by matching on the parent operation to then call the provided partial lowering function with the region and the rewriter.

The interplay with the target is similar to PartialLowerOp

Definition at line 167 of file CFToHandshake.cpp.

Member Typedef Documentation

◆ PartialLoweringFunc

Initial value:
std::function<LogicalResult(Region &, ConversionPatternRewriter &)>

Definition at line 168 of file CFToHandshake.cpp.

Constructor & Destructor Documentation

◆ PartialLowerRegion()

PartialLowerRegion::PartialLowerRegion ( LowerRegionTarget & target,
MLIRContext * context,
LogicalResult & loweringResRef,
const PartialLoweringFunc & fun )
inline

Definition at line 172 of file CFToHandshake.cpp.

References context, fun, loweringRes, and target.

Member Function Documentation

◆ matchAndRewrite()

LogicalResult PartialLowerRegion::matchAndRewrite ( Operation * op,
ArrayRef< Value > ,
ConversionPatternRewriter & rewriter ) const
inlineoverride

Definition at line 180 of file CFToHandshake.cpp.

References fun, loweringRes, and target.

Member Data Documentation

◆ fun

PartialLoweringFunc PartialLowerRegion::fun
private

Definition at line 192 of file CFToHandshake.cpp.

Referenced by matchAndRewrite(), and PartialLowerRegion().

◆ loweringRes

LogicalResult& PartialLowerRegion::loweringRes
private

Definition at line 191 of file CFToHandshake.cpp.

Referenced by matchAndRewrite(), and PartialLowerRegion().

◆ target

LowerRegionTarget& PartialLowerRegion::target
private

Definition at line 190 of file CFToHandshake.cpp.

Referenced by matchAndRewrite(), and PartialLowerRegion().


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