MLIR  20.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/ValueRange.h"

+ Inheritance diagram for mlir::OperandRange:

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
 
type_range getType () const
 
unsigned getBeginOperandIndex () const
 Return the operand index of the first element of this range. More...
 
OperandRangeRange split (DenseI32ArrayAttr 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 41 of file ValueRange.h.

Member Typedef Documentation

◆ type_iterator

Returns the types of the values within this range.

Definition at line 47 of file ValueRange.h.

◆ type_range

Definition at line 48 of file ValueRange.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 392 of file OperationSupport.cpp.

Referenced by fuse(), mlir::detail::getBranchSuccessorArgument(), mlir::bufferization::detail::getCallerOpOperands(), mlir::affine::AffineBound::getOperand(), and mlir::SuccessorOperands::getOperandIndex().

◆ getType()

OperandRange::type_range OperandRange::getType ( ) const

Definition at line 30 of file ValueRange.cpp.

References getTypes().

◆ getTypes()

OperandRange::type_range OperandRange::getTypes ( ) const

Definition at line 26 of file ValueRange.cpp.

Referenced by mlir::Operation::getOperandTypes(), and getType().

◆ split()

OperandRangeRange OperandRange::split ( DenseI32ArrayAttr  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 397 of file OperationSupport.cpp.


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