CIRCT  20.0.0git
Public Member Functions | Private Attributes | List of all members
ModuleSizeCache Struct Reference

Utility to track the transitive size of modules. More...

Collaboration diagram for ModuleSizeCache:
Collaboration graph
[legend]

Public Member Functions

void clear ()
 
uint64_t getModuleSize (Operation *module, ::detail::SymbolCache &symbols)
 
void clear ()
 
uint64_t getModuleSize (HWModuleLike module, hw::InstanceGraph &instanceGraph)
 

Private Attributes

llvm::DenseMap< Operation *, uint64_t > moduleSizes
 

Detailed Description

Utility to track the transitive size of modules.

Definition at line 75 of file FIRRTLReductions.cpp.

Member Function Documentation

◆ clear() [1/2]

void ModuleSizeCache::clear ( )
inline

Definition at line 76 of file FIRRTLReductions.cpp.

◆ clear() [2/2]

void ModuleSizeCache::clear ( )
inline

Definition at line 28 of file HWReductions.cpp.

◆ getModuleSize() [1/2]

uint64_t ModuleSizeCache::getModuleSize ( HWModuleLike  module,
hw::InstanceGraph &  instanceGraph 
)
inline

Definition at line 30 of file HWReductions.cpp.

◆ getModuleSize() [2/2]

uint64_t ModuleSizeCache::getModuleSize ( Operation *  module,
::detail::SymbolCache symbols 
)
inline

Definition at line 78 of file FIRRTLReductions.cpp.

References findInstantiatedModule().

Member Data Documentation

◆ moduleSizes

llvm::DenseMap< Operation *, uint64_t > ModuleSizeCache::moduleSizes
private

Definition at line 93 of file FIRRTLReductions.cpp.


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