My Project
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 <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...
 
- Public Types inherited from mlir::detail::indexed_accessor_range_base< OperandRange, OpOperand *, Value, Value, Value >
using RangeBaseT = indexed_accessor_range_base< OperandRange, OpOperand *, Value, Value, Value >
 

Public Member Functions

 OperandRange (Operation *op)
 
iterator_range< type_iteratorgetTypes () const
 
- Public Member Functions inherited from mlir::detail::indexed_accessor_range_base< OperandRange, OpOperand *, Value, Value, Value >
 indexed_accessor_range_base (iterator begin, iterator end)
 
 indexed_accessor_range_base (const iterator_range< iterator > &range)
 
 indexed_accessor_range_base (OpOperand * base, ptrdiff_t count)
 
iterator begin () const
 
iterator end () const
 
Value operator[] (unsigned index) const
 
size_t size () const
 Return the size of this range. More...
 
bool empty () const
 Return if the range is empty. More...
 
OperandRange slice (size_t n, size_t m) const
 Drop the first N elements, and keep M elements. More...
 
OperandRange drop_front (size_t n=1) const
 Drop the first n elements. More...
 
OperandRange drop_back (size_t n=1) const
 Drop the last n elements. More...
 
OperandRange take_front (size_t n=1) const
 Take the first n elements. More...
 
 operator SmallVector< SVT, N > () const
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::indexed_accessor_range_base< OperandRange, OpOperand *, Value, Value, Value >
 indexed_accessor_range_base (const indexed_accessor_range_base &)=default
 
 indexed_accessor_range_base (indexed_accessor_range_base &&)=default
 
indexed_accessor_range_baseoperator= (const indexed_accessor_range_base &)=default
 
- Protected Attributes inherited from mlir::detail::indexed_accessor_range_base< OperandRange, OpOperand *, Value, Value, Value >
OpOperandbase
 The base that owns the provided range of values. More...
 
ptrdiff_t count
 The size from the owning range. More...
 

Detailed Description

This class implements the operand iterators for the Operation class.

Member Typedef Documentation

◆ type_iterator

Returns the types of the values within this range.

Constructor & Destructor Documentation

◆ OperandRange()

OperandRange::OperandRange ( Operation op)

Member Function Documentation

◆ getTypes()

iterator_range<type_iterator> mlir::OperandRange::getTypes ( ) const
inline

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