CIRCT
18.0.0git
|
Private Member Functions | |
void | printHierarchy (hw::InstanceOp &inst, SymbolTable &symbolTable, llvm::json::OStream &j, SmallVectorImpl< Attribute > &symbols, unsigned &id) |
Recursively print the module hierarchy as serialized as JSON. More... | |
void | extractHierarchyFromTop (hw::HWModuleOp op, SymbolTable &symbolTable, llvm::raw_ostream &os, SmallVectorImpl< Attribute > &symbols) |
Return the JSON-serialized module hierarchy for the given module as the top of the hierarchy. More... | |
void | runOnOperation () override |
Find the modules corresponding to the firrtl mainModule and DesignUnderTest, and if they exist, emit a verbatim op with the module hierarchy for each. More... | |
Private Attributes | |
DenseMap< Operation *, hw::InnerSymbolNamespace > | moduleNamespaces |
Definition at line 34 of file HWExportModuleHierarchy.cpp.
|
private |
Return the JSON-serialized module hierarchy for the given module as the top of the hierarchy.
Definition at line 86 of file HWExportModuleHierarchy.cpp.
References circt::calyx::direction::get().
Referenced by runOnOperation().
|
private |
Recursively print the module hierarchy as serialized as JSON.
Definition at line 52 of file HWExportModuleHierarchy.cpp.
References circt::calyx::direction::get().
|
overrideprivate |
Find the modules corresponding to the firrtl mainModule and DesignUnderTest, and if they exist, emit a verbatim op with the module hierarchy for each.
Definition at line 107 of file HWExportModuleHierarchy.cpp.
References builder, extractHierarchyFromTop(), and circt::calyx::direction::get().
|
private |
Definition at line 38 of file HWExportModuleHierarchy.cpp.