|
CIRCT 24.0.0git
|
This class handles information about AST structures of each expressions. More...


Public Member Functions | |
| EmittedExpressionStateManager (const LoweringOptions &options) | |
| EmittedExpressionState | getExpressionState (Value value) |
| bool | dispatchHeuristic (Operation &op) |
| bool | shouldSpillWireBasedOnState (Operation &op) |
| Return true if it is beneficial to spill the operation under the specified spilling heuristic. | |
Private Member Functions | |
| EmittedExpressionState | visitUnhandledExpr (Operation *op) |
| EmittedExpressionState | visitInvalidComb (Operation *op) |
| EmittedExpressionState | visitUnhandledComb (Operation *op) |
| EmittedExpressionState | visitInvalidTypeOp (Operation *op) |
| EmittedExpressionState | visitUnhandledTypeOp (Operation *op) |
| EmittedExpressionState | visitUnhandledSV (Operation *op) |
| EmittedExpressionState | mergeOperandsStates (Operation *op) |
Private Attributes | |
| const LoweringOptions & | options |
| DenseMap< Value, EmittedExpressionState > | expressionStates |
This class handles information about AST structures of each expressions.
Definition at line 598 of file PrepareForEmission.cpp.
|
inline |
Definition at line 606 of file PrepareForEmission.cpp.
References options.
Referenced by CombinationalVisitor< EmittedExpressionStateManager, EmittedExpressionState >.
| bool EmittedExpressionStateManager::dispatchHeuristic | ( | Operation & | op | ) |
Definition at line 734 of file PrepareForEmission.cpp.
References getExpressionState(), options, EmittedExpressionState::size, and circt::LoweringOptions::SpillLargeTermsWithNamehints.
Referenced by shouldSpillWireBasedOnState().
| EmittedExpressionState EmittedExpressionStateManager::getExpressionState | ( | Value | value | ) |
Definition at line 659 of file PrepareForEmission.cpp.
References expressionStates, and EmittedExpressionState::getBaseState().
Referenced by dispatchHeuristic(), mergeOperandsStates(), and shouldSpillWireBasedOnState().
|
private |
Definition at line 675 of file PrepareForEmission.cpp.
References getExpressionState(), and EmittedExpressionState::mergeState().
Referenced by visitUnhandledExpr().
| bool EmittedExpressionStateManager::shouldSpillWireBasedOnState | ( | Operation & | op | ) |
Return true if it is beneficial to spill the operation under the specified spilling heuristic.
Definition at line 754 of file PrepareForEmission.cpp.
References dispatchHeuristic(), getExpressionState(), and options.
Referenced by prettifyAfterLegalization().
|
inlineprivate |
Definition at line 630 of file PrepareForEmission.cpp.
|
inlineprivate |
Definition at line 636 of file PrepareForEmission.cpp.
|
inlineprivate |
Definition at line 633 of file PrepareForEmission.cpp.
References visitUnhandledExpr().
|
inlineprivate |
Definition at line 624 of file PrepareForEmission.cpp.
References EmittedExpressionState::getBaseState(), and mergeOperandsStates().
Referenced by visitUnhandledComb(), visitUnhandledSV(), and visitUnhandledTypeOp().
|
inlineprivate |
Definition at line 642 of file PrepareForEmission.cpp.
References visitUnhandledExpr().
|
inlineprivate |
Definition at line 639 of file PrepareForEmission.cpp.
References visitUnhandledExpr().
|
friend |
Definition at line 616 of file PrepareForEmission.cpp.
References EmittedExpressionStateManager().
|
friend |
Definition at line 616 of file PrepareForEmission.cpp.
|
friend |
Definition at line 616 of file PrepareForEmission.cpp.
|
private |
Definition at line 655 of file PrepareForEmission.cpp.
Referenced by getExpressionState().
|
private |
Definition at line 649 of file PrepareForEmission.cpp.
Referenced by dispatchHeuristic(), EmittedExpressionStateManager(), and shouldSpillWireBasedOnState().