CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
circt::firrtl::TieOffCache Class Reference

Helper class to cache tie-off values for different FIRRTL types. More...

#include <FIRRTLUtils.h>

Collaboration diagram for circt::firrtl::TieOffCache:
Collaboration graph
[legend]

Public Member Functions

 TieOffCache (ImplicitLocOpBuilder &builder)
 
Value getInvalid (FIRRTLBaseType type)
 Get or create an InvalidValueOp for the given base type.
 
Value getUnknown (PropertyType type)
 Get or create an UnknownValueOp for the given property type.
 

Private Attributes

ImplicitLocOpBuilder & builder
 
SmallDenseMap< Type, Value, 8 > cache
 

Detailed Description

Helper class to cache tie-off values for different FIRRTL types.

This avoids creating duplicate InvalidValueOp or UnknownValueOp for the same type.

Definition at line 62 of file FIRRTLUtils.h.

Constructor & Destructor Documentation

◆ TieOffCache()

circt::firrtl::TieOffCache::TieOffCache ( ImplicitLocOpBuilder &  builder)
inline

Definition at line 64 of file FIRRTLUtils.h.

Member Function Documentation

◆ getInvalid()

Value TieOffCache::getInvalid ( FIRRTLBaseType  type)

Get or create an InvalidValueOp for the given base type.

Definition at line 30 of file FIRRTLUtils.cpp.

References builder, and cache.

◆ getUnknown()

Value TieOffCache::getUnknown ( PropertyType  type)

Get or create an UnknownValueOp for the given property type.

Definition at line 37 of file FIRRTLUtils.cpp.

References builder, and cache.

Member Data Documentation

◆ builder

ImplicitLocOpBuilder& circt::firrtl::TieOffCache::builder
private

Definition at line 73 of file FIRRTLUtils.h.

Referenced by getInvalid(), and getUnknown().

◆ cache

SmallDenseMap<Type, Value, 8> circt::firrtl::TieOffCache::cache
private

Definition at line 74 of file FIRRTLUtils.h.

Referenced by getInvalid(), and getUnknown().


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