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

StridedMemRef descriptor type specialized for rank 0. More...

#include "mlir/ExecutionEngine/CRunnerUtils.h"

Public Member Functions

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

Public Attributes

T * basePtr
 
T * data
 
int64_t offset
 

Detailed Description

template<typename T>
struct StridedMemRefType< T, 0 >

StridedMemRef descriptor type specialized for rank 0.

Definition at line 192 of file CRunnerUtils.h.

Member Function Documentation

◆ begin()

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

Definition at line 205 of file CRunnerUtils.h.

References StridedMemRefType< T, N >::offset.

◆ end()

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

Definition at line 206 of file CRunnerUtils.h.

References StridedMemRefType< T, N >::offset.

◆ operator[]()

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

Member Data Documentation

◆ basePtr

template<typename T >
T* StridedMemRefType< T, 0 >::basePtr

Definition at line 193 of file CRunnerUtils.h.

◆ data

template<typename T >
T* StridedMemRefType< T, 0 >::data

Definition at line 194 of file CRunnerUtils.h.

◆ offset

template<typename T >
int64_t StridedMemRefType< T, 0 >::offset

Definition at line 195 of file CRunnerUtils.h.


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