CIRCT
20.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 42 of file HWExportModuleHierarchy.cpp.
|
private |
Return the JSON-serialized module hierarchy for the given module as the top of the hierarchy.
Definition at line 96 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 61 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 117 of file HWExportModuleHierarchy.cpp.
References extractHierarchyFromTop(), and circt::calyx::direction::get().
|
private |
Definition at line 47 of file HWExportModuleHierarchy.cpp.