My Project
|
#include <StandardTypes.h>
Public Member Functions | |
ArrayRef< int64_t > | getShape () const |
ArrayRef< AffineMap > | getAffineMaps () const |
unsigned | getMemorySpace () const |
Returns the memory space in which data referred to by this memref resides. More... | |
Static Public Member Functions | |
static MemRefType | get (ArrayRef< int64_t > shape, Type elementType, ArrayRef< AffineMap > affineMapComposition={}, unsigned memorySpace=0) |
static MemRefType | getChecked (ArrayRef< int64_t > shape, Type elementType, ArrayRef< AffineMap > affineMapComposition, unsigned memorySpace, Location location) |
static int64_t | getDynamicStrideOrOffset () |
static bool | kindof (unsigned kind) |
![]() | |
static ClassID * | getClassID () |
Return a unique identifier for the concrete type. More... | |
template<typename T > | |
static bool | classof (T val) |
Static Public Attributes | |
static constexpr int64_t | kDynamicSize = -1 |
Additional Inherited Members | |
![]() | |
using | Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > |
Utility declarations for the concrete attribute class. More... | |
using | ImplType = StorageT |
![]() | |
ImplType * | getImpl () const |
Utility for easy access to the storage instance. More... | |
![]() | |
template<typename... Args> | |
static ConcreteT | get (MLIRContext *ctx, unsigned kind, Args... args) |
template<typename... Args> | |
static ConcreteT | getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args) |
template<typename... Args> | |
static LogicalResult | verifyConstructionInvariants (Args... args) |
Default implementation that just returns success. More... | |
MemRef types represent a region of memory that have a shape with a fixed number of dimensions. Each shape element can be a non-negative integer or unknown (represented by any negative integer). MemRef types also have an affine map composition, represented as an array AffineMap pointers.
|
static |
Get or create a new MemRefType based on shape, element type, affine map composition, and memory space. Assumes the arguments define a well-formed MemRef type. Use getChecked to gracefully handle MemRefType construction failures.
Returns an array of affine map pointers representing the memref affine map composition.
|
static |
Get or create a new MemRefType based on shape, element type, affine map composition, and memory space declared at the given location. If the location is unknown, the last argument should be an instance of UnknownLoc. If the MemRefType defined by the arguments would be ill-formed, emits errors (to the handler registered with the context or to the error stream) and returns nullptr.
|
inlinestatic |
unsigned MemRefType::getMemorySpace | ( | ) | const |
Returns the memory space in which data referred to by this memref resides.
ArrayRef< int64_t > MemRefType::getShape | ( | ) | const |
|
inlinestatic |
|
static |