MLIR
22.0.0git
|
A class that represents the strided metadata range information, including offsets, sizes, and strides as integer ranges. More...
#include "mlir/Interfaces/InferStridedMetadataInterface.h"
Public Member Functions | |
StridedMetadataRange ()=default | |
Default constructor creates uninitialized ranges. More... | |
bool | isUninitialized () const |
Returns whether the metadata is uninitialized. More... | |
ArrayRef< ConstantIntRanges > | getOffsets () const |
Get the offsets range. More... | |
MutableArrayRef< ConstantIntRanges > | getOffsets () |
ArrayRef< ConstantIntRanges > | getSizes () const |
Get the sizes ranges. More... | |
MutableArrayRef< ConstantIntRanges > | getSizes () |
ArrayRef< ConstantIntRanges > | getStrides () const |
Get the strides ranges. More... | |
MutableArrayRef< ConstantIntRanges > | getStrides () |
bool | operator== (const StridedMetadataRange &other) const |
Compare two strided metadata ranges. More... | |
void | print (raw_ostream &os) const |
Print the strided metadata range. More... | |
Static Public Member Functions | |
static StridedMetadataRange | getRanked (SmallVectorImpl< ConstantIntRanges > &&offsets, SmallVectorImpl< ConstantIntRanges > &&sizes, SmallVectorImpl< ConstantIntRanges > &&strides) |
Returns a ranked strided metadata range. More... | |
static StridedMetadataRange | getMaxRanges (int32_t indexBitwidth, int32_t offsetsRank, int32_t sizeRank, int32_t stridedRank) |
Returns a strided metadata range with maximum ranges. More... | |
static StridedMetadataRange | getMaxRanges (int32_t indexBitwidth, int32_t rank) |
static StridedMetadataRange | join (const StridedMetadataRange &lhs, const StridedMetadataRange &rhs) |
Join two strided metadata ranges, by taking the element-wise union of the metadata. More... | |
A class that represents the strided metadata range information, including offsets, sizes, and strides as integer ranges.
Definition at line 22 of file InferStridedMetadataInterface.h.
|
default |
Default constructor creates uninitialized ranges.
Referenced by getMaxRanges(), getRanked(), and join().
|
inlinestatic |
Returns a strided metadata range with maximum ranges.
Definition at line 37 of file InferStridedMetadataInterface.h.
References mlir::ConstantIntRanges::maxRange(), and StridedMetadataRange().
Referenced by getEntryStateImpl(), and getMaxRanges().
|
inlinestatic |
Definition at line 50 of file InferStridedMetadataInterface.h.
References getMaxRanges().
|
inline |
Definition at line 62 of file InferStridedMetadataInterface.h.
|
inline |
Get the offsets range.
Definition at line 59 of file InferStridedMetadataInterface.h.
|
inlinestatic |
Returns a ranked strided metadata range.
Definition at line 29 of file InferStridedMetadataInterface.h.
References StridedMetadataRange().
|
inline |
Definition at line 68 of file InferStridedMetadataInterface.h.
|
inline |
Get the sizes ranges.
Definition at line 67 of file InferStridedMetadataInterface.h.
|
inline |
Definition at line 72 of file InferStridedMetadataInterface.h.
|
inline |
Get the strides ranges.
Definition at line 71 of file InferStridedMetadataInterface.h.
|
inline |
Returns whether the metadata is uninitialized.
Definition at line 56 of file InferStridedMetadataInterface.h.
|
inlinestatic |
Join two strided metadata ranges, by taking the element-wise union of the metadata.
Definition at line 85 of file InferStridedMetadataInterface.h.
References isUninitialized(), mlir::ConstantIntRanges::rangeUnion(), and StridedMetadataRange().
|
inline |
Compare two strided metadata ranges.
Definition at line 75 of file InferStridedMetadataInterface.h.
void StridedMetadataRange::print | ( | raw_ostream & | os | ) | const |
Print the strided metadata range.
Definition at line 18 of file InferStridedMetadataInterface.cpp.
References isUninitialized().
Referenced by mlir::operator<<().