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

StridedMemRef descriptor type specialized for rank 1. 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, 1 > begin ()
 
StridedMemrefIterator< T, 1 > end ()
 
T & operator[] (int64_t idx)
 

Public Attributes

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

Detailed Description

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

StridedMemRef descriptor type specialized for rank 1.

Definition at line 169 of file CRunnerUtils.h.

Member Function Documentation

◆ begin()

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

Definition at line 184 of file CRunnerUtils.h.

References StridedMemRefType< T, N >::offset.

◆ end()

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

Definition at line 185 of file CRunnerUtils.h.

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

Definition at line 178 of file CRunnerUtils.h.

Member Data Documentation

◆ basePtr

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

Definition at line 170 of file CRunnerUtils.h.

◆ data

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

Definition at line 171 of file CRunnerUtils.h.

◆ offset

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

Definition at line 172 of file CRunnerUtils.h.

◆ sizes

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

Definition at line 173 of file CRunnerUtils.h.

◆ strides

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

Definition at line 174 of file CRunnerUtils.h.


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