CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::calyx::EliminateUnusedCombGroups Struct Reference

Removes calyx::CombGroupOps which are unused. More...

#include <CalyxLoweringUtils.h>

Inheritance diagram for circt::calyx::EliminateUnusedCombGroups:
Collaboration diagram for circt::calyx::EliminateUnusedCombGroups:

Public Member Functions

LogicalResult matchAndRewrite (calyx::CombGroupOp combGroupOp, PatternRewriter &rewriter) const override

Detailed Description

Removes calyx::CombGroupOps which are unused.

These correspond to combinational groups created during op building that, after conversion, have either been inlined into calyx::GroupOps or are referenced by an if/while with statement. We do not eliminate unused calyx::GroupOps; this should never happen, and is considered an error. In these cases, the program will be invalidated when the Calyx verifiers execute.

Definition at line 764 of file CalyxLoweringUtils.h.

Member Function Documentation

◆ matchAndRewrite()

LogicalResult circt::calyx::EliminateUnusedCombGroups::matchAndRewrite ( calyx::CombGroupOp combGroupOp,
PatternRewriter & rewriter ) const
override

Definition at line 629 of file CalyxLoweringUtils.cpp.

References failure(), and success().


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