MLIR  15.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:
+ Collaboration 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
 
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 823 of file OperationSupport.h.

Member Typedef Documentation

◆ type_iterator

Returns the types of the values within this range.

Definition at line 829 of file OperationSupport.h.

◆ type_range

Definition at line 830 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.

Referenced by mlir::detail::getBranchSuccessorArgument(), mlir::SuccessorOperands::getOperandIndex(), and mlir::populateCallOpTypeConversionPattern().

◆ getType()

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

Definition at line 832 of file OperationSupport.h.

Referenced by buildCostGraph(), getTreePredicates(), and printReductionVarList().

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