MLIR  14.0.0git
Public Types | Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for mlir::OperandRange:
Collaboration graph
[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.

Member Typedef Documentation

◆ type_iterator

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.

Member Function Documentation

◆ 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

◆ getTypes()

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

◆ 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: