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

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

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

Public Member Functions

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

Detailed Description

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

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

Definition at line 2552 of file CalyxOps.cpp.

Member Function Documentation

◆ matchAndRewrite()

LogicalResult EmptyStaticIfBody::matchAndRewrite ( StaticIfOp  ifOp,
PatternRewriter &  rewriter 
) const
inlineoverride

Definition at line 2554 of file CalyxOps.cpp.

References eraseControlWithConditional().


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