MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
DynamicMemRefType< T > Class Template Reference

#include "mlir/ExecutionEngine/CRunnerUtils.h"

Public Member Functions

 DynamicMemRefType (const StridedMemRefType< T, 0 > &memRef)
 
template<int N>
 DynamicMemRefType (const StridedMemRefType< T, N > &memRef)
 
 DynamicMemRefType (const ::UnrankedMemRefType< T > &memRef)
 
template<typename Range , typename sfinae = decltype(std::declval<Range>().begin())>
T & operator[] (Range &&indices)
 
DynamicMemRefIterator< T > begin ()
 
DynamicMemRefIterator< T > end ()
 
DynamicMemRefType< T > operator[] (int64_t idx)
 
T & operator* ()
 

Public Attributes

int64_t rank
 
T * basePtr
 
T * data
 
int64_t offset
 
const int64_t * sizes
 
const int64_t * strides
 

Detailed Description

template<typename T>
class DynamicMemRefType< T >

Definition at line 324 of file CRunnerUtils.h.

Constructor & Destructor Documentation

◆ DynamicMemRefType() [1/3]

template<typename T >
DynamicMemRefType< T >::DynamicMemRefType ( const StridedMemRefType< T, 0 > &  memRef)
inlineexplicit

Definition at line 333 of file CRunnerUtils.h.

◆ DynamicMemRefType() [2/3]

template<typename T >
template<int N>
DynamicMemRefType< T >::DynamicMemRefType ( const StridedMemRefType< T, N > &  memRef)
inlineexplicit

Definition at line 337 of file CRunnerUtils.h.

◆ DynamicMemRefType() [3/3]

template<typename T >
DynamicMemRefType< T >::DynamicMemRefType ( const ::UnrankedMemRefType< T > &  memRef)
inlineexplicit

Member Function Documentation

◆ begin()

template<typename T >
DynamicMemRefIterator<T> DynamicMemRefType< T >::begin ( )
inline

Definition at line 367 of file CRunnerUtils.h.

References DynamicMemRefType< T >::offset.

◆ end()

template<typename T >
DynamicMemRefIterator<T> DynamicMemRefType< T >::end ( )
inline

Definition at line 368 of file CRunnerUtils.h.

◆ operator*()

template<typename T >
T& DynamicMemRefType< T >::operator* ( )
inline

◆ operator[]() [1/2]

template<typename T >
DynamicMemRefType<T> DynamicMemRefType< T >::operator[] ( int64_t  idx)
inline

◆ operator[]() [2/2]

template<typename T >
template<typename Range , typename sfinae = decltype(std::declval<Range>().begin())>
T& DynamicMemRefType< T >::operator[] ( Range &&  indices)
inline

Member Data Documentation

◆ basePtr

template<typename T >
T* DynamicMemRefType< T >::basePtr

Definition at line 327 of file CRunnerUtils.h.

Referenced by DynamicMemRefType< T >::DynamicMemRefType().

◆ data

template<typename T >
T* DynamicMemRefType< T >::data

◆ offset

template<typename T >
int64_t DynamicMemRefType< T >::offset

◆ rank

template<typename T >
int64_t DynamicMemRefType< T >::rank

◆ sizes

template<typename T >
const int64_t* DynamicMemRefType< T >::sizes

◆ strides

template<typename T >
const int64_t* DynamicMemRefType< T >::strides

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