#include <ExportVerilogInternals.h>
Definition at line 115 of file ExportVerilogInternals.h.
◆ FieldNameResolver()
◆ getEnumFieldName()
std::string FieldNameResolver::getEnumFieldName |
( |
hw::EnumFieldAttr |
attr | ) |
|
Returns the field name for an enum field of a given enum field attr.
In case a prefix can be inferred for the provided enum type (the enum type is a type alias), the prefix will be applied. If not, the raw field name is returned.
Definition at line 73 of file LegalizeNames.cpp.
◆ getRenamedFieldName()
StringAttr FieldNameResolver::getRenamedFieldName |
( |
StringAttr |
fieldName | ) |
|
◆ setRenamedFieldName()
void FieldNameResolver::setRenamedFieldName |
( |
StringAttr |
fieldName, |
|
|
StringAttr |
newFieldName |
|
) |
| |
|
private |
◆ globalNames
const GlobalNameTable& circt::ExportVerilog::FieldNameResolver::globalNames |
|
private |
◆ nextGeneratedNameIDs
llvm::StringMap<size_t> circt::ExportVerilog::FieldNameResolver::nextGeneratedNameIDs |
|
private |
A map from used names to numeric suffix used as uniquification agent when resolving conflicts.
Definition at line 138 of file ExportVerilogInternals.h.
◆ options
◆ renamedFieldNames
DenseMap<StringAttr, StringAttr> circt::ExportVerilog::FieldNameResolver::renamedFieldNames |
|
private |
Those contain entries for field names and types respectively.
Struct types have names as field names, which must be renamed if they conflict with verilog keywords.
Definition at line 134 of file ExportVerilogInternals.h.
The documentation for this struct was generated from the following files: