CIRCT  20.0.0git
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
EmittedExpressionStateManager Class Reference

This class handles information about AST structures of each expressions. More...

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

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. More...
 

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 LoweringOptionsoptions
 
DenseMap< Value, EmittedExpressionStateexpressionStates
 

Friends

class TypeOpVisitor< EmittedExpressionStateManager, EmittedExpressionState >
 
class CombinationalVisitor< EmittedExpressionStateManager, EmittedExpressionState >
 
class Visitor< EmittedExpressionStateManager, EmittedExpressionState >
 

Detailed Description

This class handles information about AST structures of each expressions.

Definition at line 595 of file PrepareForEmission.cpp.

Constructor & Destructor Documentation

◆ EmittedExpressionStateManager()

EmittedExpressionStateManager::EmittedExpressionStateManager ( const LoweringOptions options)
inline

Definition at line 603 of file PrepareForEmission.cpp.

Member Function Documentation

◆ dispatchHeuristic()

bool EmittedExpressionStateManager::dispatchHeuristic ( Operation &  op)

◆ getExpressionState()

EmittedExpressionState EmittedExpressionStateManager::getExpressionState ( Value  value)

Definition at line 656 of file PrepareForEmission.cpp.

References EmittedExpressionState::getBaseState().

◆ mergeOperandsStates()

EmittedExpressionState EmittedExpressionStateManager::mergeOperandsStates ( Operation *  op)
private

Definition at line 672 of file PrepareForEmission.cpp.

References EmittedExpressionState::mergeState().

◆ shouldSpillWireBasedOnState()

bool EmittedExpressionStateManager::shouldSpillWireBasedOnState ( Operation &  op)

Return true if it is beneficial to spill the operation under the specified spilling heuristic.

Definition at line 751 of file PrepareForEmission.cpp.

Referenced by prettifyAfterLegalization().

◆ visitInvalidComb()

EmittedExpressionState EmittedExpressionStateManager::visitInvalidComb ( Operation *  op)
inlineprivate

Definition at line 627 of file PrepareForEmission.cpp.

◆ visitInvalidTypeOp()

EmittedExpressionState EmittedExpressionStateManager::visitInvalidTypeOp ( Operation *  op)
inlineprivate

Definition at line 633 of file PrepareForEmission.cpp.

◆ visitUnhandledComb()

EmittedExpressionState EmittedExpressionStateManager::visitUnhandledComb ( Operation *  op)
inlineprivate

Definition at line 630 of file PrepareForEmission.cpp.

◆ visitUnhandledExpr()

EmittedExpressionState EmittedExpressionStateManager::visitUnhandledExpr ( Operation *  op)
inlineprivate

Definition at line 621 of file PrepareForEmission.cpp.

References EmittedExpressionState::getBaseState().

◆ visitUnhandledSV()

EmittedExpressionState EmittedExpressionStateManager::visitUnhandledSV ( Operation *  op)
inlineprivate

Definition at line 639 of file PrepareForEmission.cpp.

◆ visitUnhandledTypeOp()

EmittedExpressionState EmittedExpressionStateManager::visitUnhandledTypeOp ( Operation *  op)
inlineprivate

Definition at line 636 of file PrepareForEmission.cpp.

Friends And Related Function Documentation

◆ CombinationalVisitor< EmittedExpressionStateManager, EmittedExpressionState >

friend class CombinationalVisitor< EmittedExpressionStateManager, EmittedExpressionState >
friend

Definition at line 613 of file PrepareForEmission.cpp.

◆ TypeOpVisitor< EmittedExpressionStateManager, EmittedExpressionState >

Definition at line 613 of file PrepareForEmission.cpp.

◆ Visitor< EmittedExpressionStateManager, EmittedExpressionState >

friend class Visitor< EmittedExpressionStateManager, EmittedExpressionState >
friend

Definition at line 613 of file PrepareForEmission.cpp.

Member Data Documentation

◆ expressionStates

DenseMap<Value, EmittedExpressionState> EmittedExpressionStateManager::expressionStates
private

Definition at line 652 of file PrepareForEmission.cpp.

◆ options

const LoweringOptions& EmittedExpressionStateManager::options
private

Definition at line 646 of file PrepareForEmission.cpp.


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