MLIR  20.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 >:

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 131 of file CRunnerUtils.h.

Member Function Documentation

◆ begin()

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

Definition at line 152 of file CRunnerUtils.h.

References StridedMemRefType< T, N >::offset.

◆ end()

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

Definition at line 153 of file CRunnerUtils.h.

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

Member Data Documentation

◆ basePtr

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

◆ data

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

◆ offset

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

◆ sizes

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

◆ strides

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

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