CIRCT
20.0.0git
|
Cache AnnoTargets for a circuit's modules, walked as needed. More...
#include <FIRRTLAnnotationHelper.h>
Public Member Functions | |
const AnnoTargetCache & | getOrCreateCacheFor (FModuleLike module) |
Get cache for specified module, creating it as needed. More... | |
AnnoTarget | lookup (FModuleLike module, StringRef name) |
Lookup the target for 'name' in 'module'. More... | |
void | invalidate () |
Clear the cache completely. More... | |
void | replaceOp (Operation *oldOp, Operation *newOp) |
Replace oldOp with newOp in the target cache. More... | |
void | insertPort (FModuleLike mod, size_t portNo) |
Add a new module port to the target cache. More... | |
void | insertOp (Operation *op) |
Add a new op to the target cache. More... | |
Private Attributes | |
DenseMap< Operation *, AnnoTargetCache > | targetCaches |
Cache AnnoTargets for a circuit's modules, walked as needed.
Definition at line 187 of file FIRRTLAnnotationHelper.h.
|
inline |
Get cache for specified module, creating it as needed.
Returned reference may become invalidated by future calls.
Definition at line 190 of file FIRRTLAnnotationHelper.h.
|
inline |
Add a new op to the target cache.
Definition at line 224 of file FIRRTLAnnotationHelper.h.
|
inline |
Add a new module port to the target cache.
Definition at line 216 of file FIRRTLAnnotationHelper.h.
|
inline |
Clear the cache completely.
Definition at line 203 of file FIRRTLAnnotationHelper.h.
|
inline |
Lookup the target for 'name' in 'module'.
Definition at line 198 of file FIRRTLAnnotationHelper.h.
Referenced by circt::firrtl::resolveEntities().
|
inline |
Replace oldOp
with newOp
in the target cache.
The new and old ops can have different names.
Definition at line 207 of file FIRRTLAnnotationHelper.h.
Referenced by circt::firrtl::addPortsToModule().
|
private |
Definition at line 233 of file FIRRTLAnnotationHelper.h.