CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
detail::SymbolCache Struct Reference

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

Collaboration diagram for detail::SymbolCache:
Collaboration graph
[legend]

Public Member Functions

SymbolTable & getSymbolTable (Operation *op)
 
SymbolTable & getNearestSymbolTable (Operation *op)
 
SymbolUserMap & getSymbolUserMap (Operation *op)
 
SymbolUserMap & getNearestSymbolUserMap (Operation *op)
 
void clear ()
 

Private Attributes

SymbolTableCollection tables
 
SmallDenseMap< Operation *, SymbolUserMap, 2 > userMaps
 

Detailed Description

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 34 of file FIRRTLReductions.cpp.

Member Function Documentation

◆ clear()

void detail::SymbolCache::clear ( )
inline

◆ getNearestSymbolTable()

SymbolTable & detail::SymbolCache::getNearestSymbolTable ( Operation *  op)
inline

◆ getNearestSymbolUserMap()

SymbolUserMap & detail::SymbolCache::getNearestSymbolUserMap ( Operation *  op)
inline

Definition at line 48 of file FIRRTLReductions.cpp.

References getSymbolUserMap().

◆ getSymbolTable()

SymbolTable & detail::SymbolCache::getSymbolTable ( Operation *  op)
inline

◆ getSymbolUserMap()

SymbolUserMap & detail::SymbolCache::getSymbolUserMap ( Operation *  op)
inline

Member Data Documentation

◆ tables

SymbolTableCollection detail::SymbolCache::tables
private

Definition at line 58 of file FIRRTLReductions.cpp.

Referenced by clear(), getSymbolTable(), and getSymbolUserMap().

◆ userMaps

SmallDenseMap<Operation *, SymbolUserMap, 2> detail::SymbolCache::userMaps
private

Definition at line 59 of file FIRRTLReductions.cpp.

Referenced by clear(), and getSymbolUserMap().


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