CIRCT 24.0.0git
Loading...
Searching...
No Matches
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:
Collaboration diagram for EmptyStaticIfBody:

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 2585 of file CalyxOps.cpp.

Member Function Documentation

◆ matchAndRewrite()

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

Definition at line 2587 of file CalyxOps.cpp.

References eraseControlWithConditional(), failure(), and success().


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