|
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. | |
| bool | isUninitialized () const |
| Returns whether the metadata is uninitialized. | |
| ArrayRef< ConstantIntRanges > | getOffsets () const |
| Get the offsets range. | |
| MutableArrayRef< ConstantIntRanges > | getOffsets () |
| ArrayRef< ConstantIntRanges > | getSizes () const |
| Get the sizes ranges. | |
| MutableArrayRef< ConstantIntRanges > | getSizes () |
| ArrayRef< ConstantIntRanges > | getStrides () const |
| Get the strides ranges. | |
| MutableArrayRef< ConstantIntRanges > | getStrides () |
| bool | operator== (const StridedMetadataRange &other) const |
| Compare two strided metadata ranges. | |
| void | print (raw_ostream &os) const |
| Print the strided metadata range. | |
Static Public Member Functions | |
| static StridedMetadataRange | getRanked (SmallVectorImpl< ConstantIntRanges > &&offsets, SmallVectorImpl< ConstantIntRanges > &&sizes, SmallVectorImpl< ConstantIntRanges > &&strides) |
| Returns a ranked strided metadata range. | |
| static StridedMetadataRange | getMaxRanges (int32_t indexBitwidth, int32_t offsetsRank, int32_t sizeRank, int32_t stridedRank) |
| Returns a strided metadata range with maximum ranges. | |
| 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. | |
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.
References StridedMetadataRange().
Referenced by getMaxRanges(), getMaxRanges(), getRanked(), join(), operator==(), and StridedMetadataRange().
|
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(), and StridedMetadataRange().
|
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.
Referenced by print().
|
inlinestatic |
Join two strided metadata ranges, by taking the element-wise union of the metadata.
Definition at line 85 of file InferStridedMetadataInterface.h.
References lhs, rhs, and StridedMetadataRange().
|
inline |
Compare two strided metadata ranges.
Definition at line 75 of file InferStridedMetadataInterface.h.
References StridedMetadataRange().
| 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<<().