MLIR
20.0.0git
|
This class implements iteration on the types of a given range of values. More...
#include "mlir/IR/TypeRange.h"
Public Member Functions | |
template<typename Container > | |
ValueTypeRange (Container &&c) | |
Type | operator[] (size_t index) const |
Return the type at the given index. More... | |
size_t | size () const |
Return the size of this range. More... | |
Type | front () |
Return first type in the range. More... | |
template<typename OtherT > | |
bool | operator== (const OtherT &other) const |
Compare this range with another. More... | |
template<typename OtherT > | |
bool | operator!= (const OtherT &other) const |
This class implements iteration on the types of a given range of values.
Definition at line 129 of file TypeRange.h.
|
inline |
Definition at line 136 of file TypeRange.h.
|
inline |
Return first type in the range.
Definition at line 148 of file TypeRange.h.
Referenced by elementwiseMatchAndRewriteHelper(), emitElementwiseComputation(), getTypeConversionFailure(), insertCasts(), printArithmeticExtendedBinaryOp(), mlir::spirv::verifyIntegerDotProduct(), verifyShapeOrExtentTensorOp(), and verifySizeOrIndexOp().
|
inline |
Definition at line 157 of file TypeRange.h.
|
inline |
Compare this range with another.
Definition at line 152 of file TypeRange.h.
|
inline |
Return the type at the given index.
Definition at line 139 of file TypeRange.h.
References mlir::ValueTypeRange< ValueRangeT >::size().
|
inline |
Return the size of this range.
Definition at line 145 of file TypeRange.h.
Referenced by mlir::ValueTypeRange< ValueRangeT >::operator[]().