CIRCT
20.0.0git
|
Cache AnnoTargets for a module's named things. More...
#include <FIRRTLAnnotationHelper.h>
Public Member Functions | |
AnnoTargetCache ()=delete | |
AnnoTargetCache (const AnnoTargetCache &other)=default | |
AnnoTargetCache (AnnoTargetCache &&other) | |
AnnoTargetCache (FModuleLike mod) | |
AnnoTarget | getTargetForName (StringRef name) const |
Lookup the target for 'name', empty if not found. More... | |
void | insertOp (Operation *op) |
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... | |
Private Member Functions | |
void | gatherTargets (FModuleLike mod) |
Walk the module and add named things to 'targets'. More... | |
Private Attributes | |
llvm::DenseMap< StringRef, AnnoTarget > | targets |
Cache AnnoTargets for a module's named things.
Definition at line 140 of file FIRRTLAnnotationHelper.h.
|
delete |
|
default |
|
inline |
Definition at line 143 of file FIRRTLAnnotationHelper.h.
|
inline |
Definition at line 146 of file FIRRTLAnnotationHelper.h.
References gatherTargets().
|
private |
Walk the module and add named things to 'targets'.
Definition at line 381 of file FIRRTLAnnotationHelper.cpp.
Referenced by AnnoTargetCache().
|
inline |
Lookup the target for 'name', empty if not found.
(check for validity using operator bool()).
Definition at line 150 of file FIRRTLAnnotationHelper.h.
References targets.
|
inline |
Definition at line 154 of file FIRRTLAnnotationHelper.h.
References targets.
|
inline |
Add a new module port to the target cache.
Definition at line 175 of file FIRRTLAnnotationHelper.h.
|
inline |
Replace oldOp
with newOp
in the target cache.
The new and old ops can have different names.
Definition at line 167 of file FIRRTLAnnotationHelper.h.
|
private |
Definition at line 183 of file FIRRTLAnnotationHelper.h.
Referenced by getTargetForName(), and insertOp().