CIRCT  20.0.0git
Public Member Functions | List of all members
EmptyIfBody Struct Reference

This pattern checks for one of two cases that will lead to IfOp deletion: (1) Then and Else bodies are both empty. More...

Inheritance diagram for EmptyIfBody:
Inheritance graph
[legend]
Collaboration diagram for EmptyIfBody:
Collaboration graph
[legend]

Public Member Functions

LogicalResult matchAndRewrite (IfOp ifOp, PatternRewriter &rewriter) const override
 

Detailed Description

This pattern checks for one of two cases that will lead to IfOp deletion: (1) Then and Else bodies are both empty.

(2) Then body is empty and Else body does not exist.

Definition at line 2474 of file CalyxOps.cpp.

Member Function Documentation

◆ matchAndRewrite()

LogicalResult EmptyIfBody::matchAndRewrite ( IfOp  ifOp,
PatternRewriter &  rewriter 
) const
inlineoverride

Definition at line 2476 of file CalyxOps.cpp.

References eraseControlWithGroupAndConditional().


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