CIRCT
20.0.0git
|
An annotation target is used to keep track of something that is targeted by an Annotation. More...
#include <FIRRTLAnnotations.h>
Public Member Functions | |
AnnoTarget (detail::AnnoTargetImpl impl=nullptr) | |
operator bool () const | |
bool | operator== (const AnnoTarget &other) const |
bool | operator!= (const AnnoTarget &other) const |
Operation * | getOp () const |
void | setOp (Operation *op) |
AnnotationSet | getAnnotations () const |
Get the annotations associated with the target. More... | |
void | setAnnotations (AnnotationSet annotations) const |
Set the annotations associated with the target. More... | |
FModuleLike | getModule () const |
Get the parent module of the target. More... | |
Attribute | getNLAReference (hw::InnerSymbolNamespace &moduleNamespace) const |
Get a reference to this target suitable for use in an NLA. More... | |
FIRRTLType | getType () const |
Get the type of the target. More... | |
detail::AnnoTargetImpl | getImpl () const |
Protected Attributes | |
detail::AnnoTargetImpl | impl |
An annotation target is used to keep track of something that is targeted by an Annotation.
Definition at line 383 of file FIRRTLAnnotations.h.
|
inline |
Definition at line 384 of file FIRRTLAnnotations.h.
AnnotationSet AnnoTarget::getAnnotations | ( | ) | const |
Get the annotations associated with the target.
Definition at line 474 of file FIRRTLAnnotations.cpp.
References getOp().
Referenced by Deduper::recordAnnotations().
|
inline |
Definition at line 408 of file FIRRTLAnnotations.h.
References impl.
Referenced by circt::firrtl::OpAnnoTarget::classof(), circt::firrtl::PortAnnoTarget::classof(), llvm::DenseMapInfo< circt::firrtl::AnnoTarget >::getHashValue(), getOp(), circt::firrtl::PortAnnoTarget::getPortNo(), setOp(), and circt::firrtl::PortAnnoTarget::setPortNo().
FModuleLike AnnoTarget::getModule | ( | ) | const |
Get the parent module of the target.
Definition at line 467 of file FIRRTLAnnotations.cpp.
References getOp().
Referenced by buildNLA(), ResolveTracesPass::buildTarget(), and circt::firrtl::operator<<().
Attribute AnnoTarget::getNLAReference | ( | hw::InnerSymbolNamespace & | moduleNamespace | ) | const |
Get a reference to this target suitable for use in an NLA.
Definition at line 487 of file FIRRTLAnnotations.cpp.
|
inline |
Definition at line 390 of file FIRRTLAnnotations.h.
References getImpl(), and circt::firrtl::detail::AnnoTargetImpl::getOp().
Referenced by addAnnotation(), applyAttributeAnnotation(), applyConventionAnno(), applyDUTAnno(), applyLoadMemoryAnno(), applyModulePrefixAnno(), applyOutputDirAnno(), circt::firrtl::applyWiring(), circt::firrtl::applyWithoutTargetImpl(), ResolveTracesPass::buildTarget(), convertToExcludeFromFullResetAnnotation(), convertToFullResetAnnotation(), findFieldID(), getAnnotations(), circt::firrtl::OpAnnoTarget::getAnnotations(), circt::firrtl::PortAnnoTarget::getAnnotations(), getModule(), circt::firrtl::OpAnnoTarget::getNLAReference(), circt::firrtl::PortAnnoTarget::getNLAReference(), circt::firrtl::OpAnnoTarget::getType(), circt::firrtl::PortAnnoTarget::getType(), lowerInternalPathAnno(), circt::firrtl::operator<<(), circt::firrtl::resolveEntities(), circt::firrtl::OpAnnoTarget::setAnnotations(), circt::firrtl::PortAnnoTarget::setAnnotations(), and updateExpandedPort().
FIRRTLType AnnoTarget::getType | ( | ) | const |
Get the type of the target.
Definition at line 494 of file FIRRTLAnnotations.cpp.
Referenced by ResolveTracesPass::buildTarget(), findFieldID(), circt::firrtl::operator<<(), and circt::firrtl::resolveEntities().
|
inline |
Definition at line 386 of file FIRRTLAnnotations.h.
References impl.
|
inline |
Definition at line 388 of file FIRRTLAnnotations.h.
|
inline |
Definition at line 387 of file FIRRTLAnnotations.h.
References impl.
void AnnoTarget::setAnnotations | ( | AnnotationSet | annotations | ) | const |
Set the annotations associated with the target.
Definition at line 481 of file FIRRTLAnnotations.cpp.
Referenced by Deduper::mergeAnnotations().
|
inline |
Definition at line 391 of file FIRRTLAnnotations.h.
References getImpl(), and circt::firrtl::detail::AnnoTargetImpl::setOp().
|
protected |
Definition at line 411 of file FIRRTLAnnotations.h.
Referenced by getImpl(), operator bool(), and operator==().