My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::UnrankedMemRefType Class Reference

#include <StandardTypes.h>

Inheritance diagram for mlir::UnrankedMemRefType:
Inheritance graph
[legend]
Collaboration diagram for mlir::UnrankedMemRefType:
Collaboration graph
[legend]

Public Member Functions

ArrayRef< int64_t > getShape () const
 
unsigned getMemorySpace () const
 Returns the memory space in which data referred to by this memref resides. More...
 

Static Public Member Functions

static UnrankedMemRefType get (Type elementType, unsigned memorySpace)
 
static UnrankedMemRefType getChecked (Type elementType, unsigned memorySpace, Location location)
 
static LogicalResult verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, Type elementType, unsigned memorySpace)
 Verify the construction of a unranked memref type. More...
 
static bool kindof (unsigned kind)
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 
- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
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...
 

Detailed Description

Unranked MemRef type represent multi-dimensional MemRefs that have an unknown rank.

Member Function Documentation

◆ get()

UnrankedMemRefType UnrankedMemRefType::get ( Type  elementType,
unsigned  memorySpace 
)
static

Get or create a new UnrankedMemRefType of the provided element type and memory space

◆ getChecked()

UnrankedMemRefType UnrankedMemRefType::getChecked ( Type  elementType,
unsigned  memorySpace,
Location  location 
)
static

Get or create a new UnrankedMemRefType of the provided element type and memory space declared at the given, potentially unknown, location. If the UnrankedMemRefType defined by the arguments would be ill-formed, emit errors and return a nullptr-wrapping type.

◆ getMemorySpace()

unsigned UnrankedMemRefType::getMemorySpace ( ) const

Returns the memory space in which data referred to by this memref resides.

◆ getShape()

ArrayRef<int64_t> mlir::UnrankedMemRefType::getShape ( ) const
inline

◆ kindof()

static bool mlir::UnrankedMemRefType::kindof ( unsigned  kind)
inlinestatic

◆ verifyConstructionInvariants()

LogicalResult UnrankedMemRefType::verifyConstructionInvariants ( Optional< Location loc,
MLIRContext context,
Type  elementType,
unsigned  memorySpace 
)
static

Verify the construction of a unranked memref type.


The documentation for this class was generated from the following files: