CIRCT  19.0.0git
Public Types | Public Member Functions | Private Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for PartialLowerRegion:
Collaboration graph
[legend]

Public Types

using PartialLoweringFunc = std::function< LogicalResult(Region &, ConversionPatternRewriter &)>
 

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

LowerRegionTargettarget
 
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 161 of file CFToHandshake.cpp.

Member Typedef Documentation

◆ PartialLoweringFunc

using PartialLowerRegion::PartialLoweringFunc = std::function<LogicalResult(Region &, ConversionPatternRewriter &)>

Definition at line 162 of file CFToHandshake.cpp.

Constructor & Destructor Documentation

◆ PartialLowerRegion()

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

Definition at line 166 of file CFToHandshake.cpp.

Member Function Documentation

◆ matchAndRewrite()

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

Definition at line 174 of file CFToHandshake.cpp.

Member Data Documentation

◆ fun

PartialLoweringFunc PartialLowerRegion::fun
private

Definition at line 186 of file CFToHandshake.cpp.

◆ loweringRes

LogicalResult& PartialLowerRegion::loweringRes
private

Definition at line 185 of file CFToHandshake.cpp.

◆ target

LowerRegionTarget& PartialLowerRegion::target
private

Definition at line 184 of file CFToHandshake.cpp.


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