CIRCT
18.0.0git
|
This represents an annotation targeting a specific operation. More...
#include <FIRRTLAnnotations.h>
Public Member Functions | |
OpAnnoTarget (Operation *op) | |
AnnotationSet | getAnnotations () const |
void | setAnnotations (AnnotationSet annotations) const |
Attribute | getNLAReference (hw::InnerSymbolNamespace &moduleNamespace) const |
FIRRTLType | getType () const |
AnnoTarget (detail::AnnoTargetImpl impl=nullptr) | |
![]() | |
AnnoTarget (detail::AnnoTargetImpl impl=nullptr) | |
template<typename U > | |
bool | isa () const |
template<typename U > | |
U | dyn_cast () const |
template<typename U > | |
U | dyn_cast_or_null () const |
template<typename U > | |
U | cast () const |
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 |
Static Public Member Functions | |
static bool | classof (const AnnoTarget &annoTarget) |
Additional Inherited Members | |
![]() | |
detail::AnnoTargetImpl | impl |
This represents an annotation targeting a specific operation.
Definition at line 450 of file FIRRTLAnnotations.h.
|
inline |
Definition at line 453 of file FIRRTLAnnotations.h.
|
inline |
Definition at line 400 of file FIRRTLAnnotations.h.
|
inlinestatic |
Definition at line 460 of file FIRRTLAnnotations.h.
References circt::firrtl::AnnoTarget::getImpl(), and circt::firrtl::detail::AnnoTargetImpl::isOp().
AnnotationSet OpAnnoTarget::getAnnotations | ( | ) | const |
Definition at line 593 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnoTarget::getOp().
Attribute OpAnnoTarget::getNLAReference | ( | hw::InnerSymbolNamespace & | moduleNamespace | ) | const |
Definition at line 602 of file FIRRTLAnnotations.cpp.
References assert(), circt::calyx::direction::get(), circt::firrtl::getInnerRefTo(), and circt::firrtl::AnnoTarget::getOp().
Referenced by Deduper::createNLAs().
FIRRTLType OpAnnoTarget::getType | ( | ) | const |
Definition at line 615 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnoTarget::getOp().
void OpAnnoTarget::setAnnotations | ( | AnnotationSet | annotations | ) | const |
Definition at line 597 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnotationSet::applyToOperation(), and circt::firrtl::AnnoTarget::getOp().