|
CIRCT 23.0.0git
|
Helper class to cache tie-off values for different FIRRTL types. More...
#include <FIRRTLUtils.h>

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 |
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.
|
inline |
Definition at line 64 of file FIRRTLUtils.h.
| Value TieOffCache::getInvalid | ( | FIRRTLBaseType | type | ) |
Get or create an InvalidValueOp for the given base type.
Definition at line 30 of file FIRRTLUtils.cpp.
| Value TieOffCache::getUnknown | ( | PropertyType | type | ) |
Get or create an UnknownValueOp for the given property type.
Definition at line 37 of file FIRRTLUtils.cpp.
|
private |
Definition at line 73 of file FIRRTLUtils.h.
Referenced by getInvalid(), and getUnknown().
|
private |
Definition at line 74 of file FIRRTLUtils.h.
Referenced by getInvalid(), and getUnknown().