MLIR  14.0.0git
mlir::OperandRange Class Referencefinal

This class implements the operand iterators for the Operation class. More...

#include "mlir/IR/OperationSupport.h"

Inheritance diagram for mlir::OperandRange:
[legend]
Collaboration diagram for mlir::OperandRange:
[legend]

## Public Types

using type_iterator = ValueTypeIterator< iterator >
Returns the types of the values within this range. More...

using type_range = ValueTypeRange< OperandRange >

## Public Member Functions

type_range getTypes () const

auto getType () const

unsigned getBeginOperandIndex () const
Return the operand index of the first element of this range. More...

OperandRangeRange split (ElementsAttr segmentSizes) const
Split this range into a set of contiguous subranges using the given elements attribute, which contains the sizes of the sub ranges. More...

## Detailed Description

This class implements the operand iterators for the Operation class.

Definition at line 768 of file OperationSupport.h.

## ◆ type_iterator

 using mlir::OperandRange::type_iterator = ValueTypeIterator

Returns the types of the values within this range.

Definition at line 774 of file OperationSupport.h.

## ◆ type_range

Definition at line 775 of file OperationSupport.h.

## ◆ getBeginOperandIndex()

 unsigned OperandRange::getBeginOperandIndex ( ) const

Return the operand index of the first element of this range.

The range must not be empty.

Definition at line 376 of file OperationSupport.cpp.

## ◆ getType()

 auto mlir::OperandRange::getType ( ) const
inline

Definition at line 777 of file OperationSupport.h.

## ◆ getTypes()

 type_range mlir::OperandRange::getTypes ( ) const
inline

Definition at line 776 of file OperationSupport.h.

## ◆ split()

 OperandRangeRange OperandRange::split ( ElementsAttr segmentSizes ) const

Split this range into a set of contiguous subranges using the given elements attribute, which contains the sizes of the sub ranges.

Definition at line 381 of file OperationSupport.cpp.

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