MLIR  20.0.0git
Public Member Functions | List of all members
mlir::DenseElementsAttr::IntElementIterator Class Reference

A utility iterator that allows walking over the internal raw APInt values. More...

#include "mlir/IR/BuiltinAttributes.h"

+ Inheritance diagram for mlir::DenseElementsAttr::IntElementIterator:

Public Member Functions

APInt operator* () const
 Accesses the raw APInt value at this iterator position. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::DenseElementIndexedIteratorImpl< IntElementIterator, APInt, APInt, APInt >
 DenseElementIndexedIteratorImpl (const char *data, bool isSplat, size_t dataIndex)
 
ptrdiff_t getDataIndex () const
 Return the current index for this iterator, adjusted for the case of a splat. More...
 
const char * getData () const
 Return the data base pointer. More...
 

Detailed Description

A utility iterator that allows walking over the internal raw APInt values.

Definition at line 293 of file BuiltinAttributes.h.

Member Function Documentation

◆ operator*()

APInt DenseElementsAttr::IntElementIterator::operator* ( ) const

Accesses the raw APInt value at this iterator position.

Definition at line 669 of file BuiltinAttributes.cpp.

References getDenseElementStorageWidth(), and readBits().


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