CIRCT 24.0.0git
Loading...
Searching...
No Matches
PyLocationVecIterator Class Reference
Collaboration diagram for PyLocationVecIterator:

Public Member Functions

 PyLocationVecIterator (MlirAttribute attr)
PyLocationVecIterator & dunderIter ()
std::optional< MlirAttribute > dunderNext ()

Static Public Member Functions

static std::optional< MlirAttribute > getItem (MlirAttribute locVec, intptr_t pos)
 Get item at the specified position, translating a nullptr to None.
static void bind (nb::module_ &m)

Private Attributes

MlirAttribute attr
intptr_t nextIndex = 0

Detailed Description

Definition at line 115 of file MSFTModule.cpp.

Constructor & Destructor Documentation

◆ PyLocationVecIterator()

PyLocationVecIterator::PyLocationVecIterator ( MlirAttribute attr)
inline

Definition at line 126 of file MSFTModule.cpp.

References attr.

Referenced by dunderIter().

Member Function Documentation

◆ bind()

void PyLocationVecIterator::bind ( nb::module_ & m)
inlinestatic

Definition at line 136 of file MSFTModule.cpp.

References dunderIter(), and dunderNext().

◆ dunderIter()

PyLocationVecIterator & PyLocationVecIterator::dunderIter ( )
inline

Definition at line 127 of file MSFTModule.cpp.

References PyLocationVecIterator().

Referenced by bind().

◆ dunderNext()

std::optional< MlirAttribute > PyLocationVecIterator::dunderNext ( )
inline

Definition at line 129 of file MSFTModule.cpp.

References attr, circtMSFTLocationVectorAttrGetNumElements(), getItem(), and nextIndex.

Referenced by bind().

◆ getItem()

std::optional< MlirAttribute > PyLocationVecIterator::getItem ( MlirAttribute locVec,
intptr_t pos )
inlinestatic

Get item at the specified position, translating a nullptr to None.

Definition at line 118 of file MSFTModule.cpp.

References circtMSFTLocationVectorAttrGetElement().

Referenced by dunderNext().

Member Data Documentation

◆ attr

MlirAttribute PyLocationVecIterator::attr
private

Definition at line 143 of file MSFTModule.cpp.

Referenced by dunderNext(), and PyLocationVecIterator().

◆ nextIndex

intptr_t PyLocationVecIterator::nextIndex = 0
private

Definition at line 144 of file MSFTModule.cpp.

Referenced by dunderNext().


The documentation for this class was generated from the following file: