CIRCT
20.0.0git
|
The namespace of a CircuitOp
, generally inhabited by modules.
More...
#include <Namespace.h>
Public Member Functions | |
CircuitNamespace () | |
CircuitNamespace (CircuitOp circuit) | |
void | add (CircuitOp circuit) |
Populate the namespace from a circuit operation. More... | |
Public Member Functions inherited from circt::Namespace | |
Namespace () | |
Namespace (const Namespace &other)=default | |
Namespace (Namespace &&other) | |
Namespace & | operator= (const Namespace &other)=default |
Namespace & | operator= (Namespace &&other) |
void | add (mlir::ModuleOp module) |
void | add (SymbolCache &symCache) |
SymbolCache initializer; initialize from every key that is convertible to a StringAttr in the SymbolCache. More... | |
bool | erase (llvm::StringRef symbol) |
Removes a symbol from the namespace. More... | |
void | clear () |
Empty the namespace. More... | |
StringRef | newName (const Twine &name) |
Return a unique name, derived from the input name , and add the new name to the internal namespace. More... | |
StringRef | newName (const Twine &name, const Twine &suffix) |
Return a unique name, derived from the input name and ensure the returned name has the input suffix . More... | |
Additional Inherited Members | |
Protected Attributes inherited from circt::Namespace | |
llvm::StringMap< size_t > | nextIndex |
bool | locked = false |
The namespace of a CircuitOp
, generally inhabited by modules.
Definition at line 24 of file Namespace.h.
|
inline |
Definition at line 25 of file Namespace.h.
|
inline |
Definition at line 26 of file Namespace.h.
References add().
|
inline |
Populate the namespace from a circuit operation.
This namespace will be composed of any operation in the first level of the circuit that contains a symbol.
Definition at line 31 of file Namespace.h.
References circt::Namespace::nextIndex.
Referenced by CircuitNamespace().