MLIR  15.0.0git
Public Member Functions | Public Attributes | List of all members
StridedMemRefType< T, N > Struct Template Reference

StridedMemRef descriptor type with static rank. More...

#include "mlir/ExecutionEngine/CRunnerUtils.h"

+ Inheritance diagram for StridedMemRefType< T, N >:
+ Collaboration diagram for StridedMemRefType< T, N >:

Public Member Functions

template<typename Range , typename sfinae = decltype(std::declval<Range>().begin())>
T & operator[] (Range &&indices)
 
StridedMemrefIterator< T, N > begin ()
 
StridedMemrefIterator< T, N > end ()
 
StridedMemRefType< T, N - 1 > operator[] (int64_t idx)
 

Public Attributes

T * basePtr
 
T * data
 
int64_t offset
 
int64_t sizes [N]
 
int64_t strides [N]
 

Detailed Description

template<typename T, int N>
struct StridedMemRefType< T, N >

StridedMemRef descriptor type with static rank.

Definition at line 130 of file CRunnerUtils.h.

Member Function Documentation

◆ begin()

template<typename T, int N>
StridedMemrefIterator<T, N> StridedMemRefType< T, N >::begin ( )
inline

Definition at line 151 of file CRunnerUtils.h.

◆ end()

template<typename T, int N>
StridedMemrefIterator<T, N> StridedMemRefType< T, N >::end ( )
inline

Definition at line 152 of file CRunnerUtils.h.

◆ operator[]() [1/2]

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

Definition at line 139 of file CRunnerUtils.h.

◆ operator[]() [2/2]

template<typename T, int N>
StridedMemRefType<T, N - 1> StridedMemRefType< T, N >::operator[] ( int64_t  idx)
inline

Definition at line 155 of file CRunnerUtils.h.

Member Data Documentation

◆ basePtr

template<typename T, int N>
T* StridedMemRefType< T, N >::basePtr

Definition at line 131 of file CRunnerUtils.h.

Referenced by mlir::detail::makeStridedMemRefDescriptor().

◆ data

template<typename T, int N>
T* StridedMemRefType< T, N >::data

Definition at line 132 of file CRunnerUtils.h.

Referenced by mgpuMemHostRegisterMemRef().

◆ offset

template<typename T, int N>
int64_t StridedMemRefType< T, N >::offset

Definition at line 133 of file CRunnerUtils.h.

Referenced by mgpuMemHostRegisterMemRef().

◆ sizes

template<typename T, int N>
int64_t StridedMemRefType< T, N >::sizes[N]

Definition at line 134 of file CRunnerUtils.h.

Referenced by mgpuMemHostRegisterMemRef().

◆ strides

template<typename T, int N>
int64_t StridedMemRefType< T, N >::strides[N]

Definition at line 135 of file CRunnerUtils.h.


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