|
CIRCT 22.0.0git
|
A utility doing lazy construction of SymbolTables and SymbolUserMaps, which is handy for reductions that need to look up a lot of symbols.
More...

Public Member Functions | |
| SymbolCache () | |
| SymbolTable & | getSymbolTable (Operation *op) |
| SymbolTable & | getNearestSymbolTable (Operation *op) |
| SymbolUserMap & | getSymbolUserMap (Operation *op) |
| SymbolUserMap & | getNearestSymbolUserMap (Operation *op) |
| void | clear () |
Private Attributes | |
| std::unique_ptr< SymbolTableCollection > | tables |
| SmallDenseMap< Operation *, SymbolUserMap, 2 > | userMaps |
A utility doing lazy construction of SymbolTables and SymbolUserMaps, which is handy for reductions that need to look up a lot of symbols.
Definition at line 48 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 49 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 68 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 54 of file FIRRTLReductions.cpp.
References getSymbolTable().
|
inline |
Definition at line 64 of file FIRRTLReductions.cpp.
References getSymbolUserMap().
|
inline |
Definition at line 51 of file FIRRTLReductions.cpp.
References tables.
Referenced by findInstantiatedModule(), and getNearestSymbolTable().
|
inline |
Definition at line 58 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by getNearestSymbolUserMap().
|
private |
Definition at line 74 of file FIRRTLReductions.cpp.
Referenced by clear(), getSymbolTable(), and getSymbolUserMap().
|
private |
Definition at line 75 of file FIRRTLReductions.cpp.
Referenced by clear(), and getSymbolUserMap().