MLIR
15.0.0git
|
This class provides an abstraction over the different types of ranges over Values. More...
#include "mlir/IR/OperationSupport.h"
Public Types | |
using | OwnerT = PointerUnion< const Value *, OpOperand *, detail::OpResultImpl * > |
The type representing the owner of a ValueRange. More... | |
using | type_iterator = ValueTypeIterator< iterator > |
Returns the types of the values within this range. More... | |
using | type_range = ValueTypeRange< ValueRange > |
Public Member Functions | |
template<typename Arg , typename = typename std::enable_if_t< std::is_constructible<ArrayRef<Value>, Arg>::value && !std::is_convertible<Arg, Value>::value>> | |
ValueRange (Arg &&arg) | |
ValueRange (const Value &value) | |
ValueRange (const std::initializer_list< Value > &values) | |
ValueRange (iterator_range< OperandRange::iterator > values) | |
ValueRange (iterator_range< ResultRange::iterator > values) | |
ValueRange (ArrayRef< BlockArgument > values) | |
ValueRange (ArrayRef< Value > values=llvm::None) | |
ValueRange (OperandRange values) | |
ValueRange (ResultRange values) | |
type_range | getTypes () const |
auto | getType () const |
This class provides an abstraction over the different types of ranges over Values.
In many cases, this prevents the need to explicitly materialize a SmallVector/std::vector. This class should be used in places that are not suitable for a more derived type (e.g. ArrayRef) or a template range parameter.
Definition at line 1128 of file OperationSupport.h.
using mlir::ValueRange::OwnerT = PointerUnion<const Value *, OpOperand *, detail::OpResultImpl *> |
The type representing the owner of a ValueRange.
This is either a list of values, operands, or results.
Definition at line 1137 of file OperationSupport.h.
using mlir::ValueRange::type_iterator = ValueTypeIterator<iterator> |
Returns the types of the values within this range.
Definition at line 1160 of file OperationSupport.h.
Definition at line 1161 of file OperationSupport.h.
|
inline |
Definition at line 1145 of file OperationSupport.h.
|
inline |
Definition at line 1146 of file OperationSupport.h.
|
inline |
Definition at line 1147 of file OperationSupport.h.
|
inline |
Definition at line 1149 of file OperationSupport.h.
|
inline |
Definition at line 1151 of file OperationSupport.h.
|
inline |
Definition at line 1153 of file OperationSupport.h.
Definition at line 596 of file OperationSupport.cpp.
ValueRange::ValueRange | ( | OperandRange | values | ) |
Definition at line 598 of file OperationSupport.cpp.
ValueRange::ValueRange | ( | ResultRange | values | ) |
Definition at line 600 of file OperationSupport.cpp.
References value.
|
inline |
Definition at line 1163 of file OperationSupport.h.
Referenced by executeGetOperandsResults(), handleMultidimensionalVectors(), joinShapes(), lowerEntryPointABIAttr(), mlir::replaceForOpWithNewYields(), sourceMaterializationCallback(), mlir::LLVM::detail::vectorOneToOneRewrite(), and GpuAsyncRegionPass::DeferWaitCallback::~DeferWaitCallback().
|
inline |
Definition at line 1162 of file OperationSupport.h.
Referenced by mlir::affineParallelize(), mlir::bufferization::func_ext::FuncOpInterface::bufferize(), buildStructuredOp(), fuseWithReshapeByExpansion(), getNumNonRangeValues(), mlir::scf::getParallelForInductionVarOwner(), inlineRegionImpl(), mlir::scf::insideMutuallyExclusiveBranches(), mlir::OpToFuncCallLowering< SourceOp >::matchAndRewrite(), printAccessChain(), printCommonStructuredOpParts(), and mlir::LLVM::detail::vectorOneToOneRewrite().