CIRCT
20.0.0git
|
#include <ExportVerilogInternals.h>
Public Member Functions | |
NameCollisionResolver (const LoweringOptions &options) | |
StringRef | getLegalName (StringRef originalName) |
Given a name that may have collisions or invalid symbols, return a replacement name to use, or the original name if it was ok. More... | |
StringRef | getLegalName (StringAttr originalName) |
void | insertUsedName (StringRef name) |
Insert a string as an already-used name. More... | |
Public Attributes | |
const LoweringOptions & | options |
Handle to LoweringOptions. More... | |
Private Member Functions | |
NameCollisionResolver (const NameCollisionResolver &)=delete | |
void | operator= (const NameCollisionResolver &)=delete |
Private Attributes | |
llvm::StringMap< size_t > | nextGeneratedNameIDs |
A map from used names to numeric suffix used as uniquification agent when resolving conflicts. More... | |
Definition at line 92 of file ExportVerilogInternals.h.
|
inline |
Definition at line 93 of file ExportVerilogInternals.h.
|
privatedelete |
|
inline |
Definition at line 98 of file ExportVerilogInternals.h.
References getLegalName().
StringRef NameCollisionResolver::getLegalName | ( | StringRef | originalName | ) |
Given a name that may have collisions or invalid symbols, return a replacement name to use, or the original name if it was ok.
Given a name that may have collisions or invalid symbols, return a replacement name to use, or null if the original name was ok.
Definition at line 42 of file LegalizeNames.cpp.
References circt::sv::legalizeName().
Referenced by getLegalName(), circt::ExportVerilog::GlobalNameResolver::legalizeFunctionNames(), circt::ExportVerilog::GlobalNameResolver::legalizeInterfaceNames(), legalizeModuleLocalNames(), and circt::ExportVerilog::GlobalNameResolver::legalizeModuleNames().
|
inline |
Insert a string as an already-used name.
Definition at line 103 of file ExportVerilogInternals.h.
References nextGeneratedNameIDs.
Referenced by circt::ExportVerilog::GlobalNameTable::addReservedNames(), circt::ExportVerilog::GlobalNameResolver::GlobalNameResolver(), circt::ExportVerilog::GlobalNameResolver::legalizeFunctionNames(), and legalizeModuleLocalNames().
|
privatedelete |
|
private |
A map from used names to numeric suffix used as uniquification agent when resolving conflicts.
Definition at line 113 of file ExportVerilogInternals.h.
Referenced by insertUsedName().
const LoweringOptions& circt::ExportVerilog::NameCollisionResolver::options |
Handle to LoweringOptions.
Definition at line 108 of file ExportVerilogInternals.h.