CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::firrtl::AnnoTarget Struct Reference

An annotation target is used to keep track of something that is targeted by an Annotation. More...

#include <FIRRTLAnnotations.h>

Inheritance diagram for circt::firrtl::AnnoTarget:
Collaboration diagram for circt::firrtl::AnnoTarget:

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.
void setAnnotations (AnnotationSet annotations) const
 Set the annotations associated with the target.
FModuleLike getModule () const
 Get the parent module of the target.
Attribute getNLAReference (hw::InnerSymbolNamespace &moduleNamespace) const
 Get a reference to this target suitable for use in an NLA.
FIRRTLType getType () const
 Get the type of the target.
detail::AnnoTargetImpl getImpl () const

Protected Attributes

detail::AnnoTargetImpl impl

Detailed Description

An annotation target is used to keep track of something that is targeted by an Annotation.

Definition at line 371 of file FIRRTLAnnotations.h.

Constructor & Destructor Documentation

◆ AnnoTarget()

circt::firrtl::AnnoTarget::AnnoTarget ( detail::AnnoTargetImpl impl = nullptr)
inline

Definition at line 372 of file FIRRTLAnnotations.h.

References impl.

Referenced by operator!=(), and operator==().

Member Function Documentation

◆ getAnnotations()

AnnotationSet AnnoTarget::getAnnotations ( ) const

Get the annotations associated with the target.

Definition at line 452 of file FIRRTLAnnotations.cpp.

References getOp().

Referenced by Deduper::recordAnnotations().

◆ getImpl()

◆ getModule()

FModuleLike AnnoTarget::getModule ( ) const

Get the parent module of the target.

Definition at line 445 of file FIRRTLAnnotations.cpp.

References getOp().

Referenced by buildNLA(), and circt::firrtl::operator<<().

◆ getNLAReference()

Attribute AnnoTarget::getNLAReference ( hw::InnerSymbolNamespace & moduleNamespace) const

Get a reference to this target suitable for use in an NLA.

Definition at line 465 of file FIRRTLAnnotations.cpp.

◆ getOp()

◆ getType()

FIRRTLType AnnoTarget::getType ( ) const

Get the type of the target.

Definition at line 472 of file FIRRTLAnnotations.cpp.

Referenced by findFieldID(), and circt::firrtl::resolveEntities().

◆ operator bool()

circt::firrtl::AnnoTarget::operator bool ( ) const
inline

Definition at line 374 of file FIRRTLAnnotations.h.

References impl.

◆ operator!=()

bool circt::firrtl::AnnoTarget::operator!= ( const AnnoTarget & other) const
inline

Definition at line 376 of file FIRRTLAnnotations.h.

References AnnoTarget().

◆ operator==()

bool circt::firrtl::AnnoTarget::operator== ( const AnnoTarget & other) const
inline

Definition at line 375 of file FIRRTLAnnotations.h.

References AnnoTarget(), and impl.

◆ setAnnotations()

void AnnoTarget::setAnnotations ( AnnotationSet annotations) const

Set the annotations associated with the target.

Definition at line 459 of file FIRRTLAnnotations.cpp.

Referenced by Deduper::mergeAnnotations().

◆ setOp()

void circt::firrtl::AnnoTarget::setOp ( Operation * op)
inline

Member Data Documentation

◆ impl

detail::AnnoTargetImpl circt::firrtl::AnnoTarget::impl
protected

Definition at line 399 of file FIRRTLAnnotations.h.

Referenced by AnnoTarget(), getImpl(), operator bool(), and operator==().


The documentation for this struct was generated from the following files: