14 #ifndef CIRCT_DIALECT_FIRRTL_NAMESPACE_H
15 #define CIRCT_DIALECT_FIRRTL_NAMESPACE_H
31 void add(CircuitOp circuit) {
32 for (
auto &op : *circuit.getBodyBlock())
33 if (
auto symbol = op.getAttrOfType<mlir::StringAttr>(
34 SymbolTable::getSymbolAttrName()))
A namespace that is used to store existing names and generate new names in some scope within the IR.
llvm::StringMap< size_t > nextIndex
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
The namespace of a CircuitOp, generally inhabited by modules.
void add(CircuitOp circuit)
Populate the namespace from a circuit operation.
CircuitNamespace(CircuitOp circuit)