CIRCT  20.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 167 of file CFToHandshake.cpp.

Member Typedef Documentation

◆ PartialLoweringFunc

using PartialLowerRegion::PartialLoweringFunc = 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.

Member Function Documentation

◆ matchAndRewrite()

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

Definition at line 180 of file CFToHandshake.cpp.

Member Data Documentation

◆ fun

PartialLoweringFunc PartialLowerRegion::fun
private

Definition at line 192 of file CFToHandshake.cpp.

◆ loweringRes

LogicalResult& PartialLowerRegion::loweringRes
private

Definition at line 191 of file CFToHandshake.cpp.

◆ target

LowerRegionTarget& PartialLowerRegion::target
private

Definition at line 190 of file CFToHandshake.cpp.


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