CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::firrtl::HierPathCache Struct Reference

A cache of existing HierPathOps, mostly used to facilitate HierPathOp reuse. More...

#include <FIRRTLAnnotationHelper.h>

Collaboration diagram for circt::firrtl::HierPathCache:

Public Member Functions

 HierPathCache (Operation *op, SymbolTable &symbolTable)
hw::HierPathOp getOpFor (ArrayAttr attr)
StringAttr getSymFor (ArrayAttr attr)
FlatSymbolRefAttr getRefFor (ArrayAttr attr)
const SymbolTable & getSymbolTable () const

Private Attributes

OpBuilder builder
DenseMap< ArrayAttr, hw::HierPathOp > cache
SymbolTable & symbolTable

Detailed Description

A cache of existing HierPathOps, mostly used to facilitate HierPathOp reuse.

Definition at line 316 of file FIRRTLAnnotationHelper.h.

Constructor & Destructor Documentation

◆ HierPathCache()

HierPathCache::HierPathCache ( Operation * op,
SymbolTable & symbolTable )

Definition at line 365 of file FIRRTLAnnotationHelper.cpp.

References builder, cache, and symbolTable.

Member Function Documentation

◆ getOpFor()

hw::HierPathOp HierPathCache::getOpFor ( ArrayAttr attr)

Definition at line 376 of file FIRRTLAnnotationHelper.cpp.

References builder, cache, and symbolTable.

Referenced by getSymFor().

◆ getRefFor()

FlatSymbolRefAttr circt::firrtl::HierPathCache::getRefFor ( ArrayAttr attr)
inline

Definition at line 325 of file FIRRTLAnnotationHelper.h.

References getSymFor().

Referenced by buildNLA().

◆ getSymbolTable()

const SymbolTable & circt::firrtl::HierPathCache::getSymbolTable ( ) const
inline

Definition at line 329 of file FIRRTLAnnotationHelper.h.

References symbolTable.

◆ getSymFor()

StringAttr circt::firrtl::HierPathCache::getSymFor ( ArrayAttr attr)
inline

Definition at line 321 of file FIRRTLAnnotationHelper.h.

References getOpFor().

Referenced by getRefFor().

Member Data Documentation

◆ builder

OpBuilder circt::firrtl::HierPathCache::builder
private

Definition at line 332 of file FIRRTLAnnotationHelper.h.

Referenced by getOpFor(), and HierPathCache().

◆ cache

DenseMap<ArrayAttr, hw::HierPathOp> circt::firrtl::HierPathCache::cache
private

Definition at line 333 of file FIRRTLAnnotationHelper.h.

Referenced by getOpFor(), and HierPathCache().

◆ symbolTable

SymbolTable& circt::firrtl::HierPathCache::symbolTable
private

Definition at line 334 of file FIRRTLAnnotationHelper.h.

Referenced by getOpFor(), getSymbolTable(), and HierPathCache().


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