CIRCT 22.0.0git
|
A utility doing lazy construction of SymbolTable
s and SymbolUserMap
s, 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 SymbolTable
s and SymbolUserMap
s, which is handy for reductions that need to look up a lot of symbols.
Definition at line 47 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 48 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 67 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 53 of file FIRRTLReductions.cpp.
References getSymbolTable().
|
inline |
Definition at line 63 of file FIRRTLReductions.cpp.
References getSymbolUserMap().
|
inline |
Definition at line 50 of file FIRRTLReductions.cpp.
References tables.
Referenced by findInstantiatedModule(), and getNearestSymbolTable().
|
inline |
Definition at line 57 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by getNearestSymbolUserMap().
|
private |
Definition at line 73 of file FIRRTLReductions.cpp.
Referenced by clear(), getSymbolTable(), and getSymbolUserMap().
|
private |
Definition at line 74 of file FIRRTLReductions.cpp.
Referenced by clear(), and getSymbolUserMap().