MLIR  16.0.0git
Classes | Functions
impl Namespace Reference

Classes

struct  MemRefDataPrinter
 
struct  MemRefDataVerifier
 Verify the result of two computations are equivalent up to a small numerical error and return the number of errors. More...
 
struct  StaticSizeMult
 
struct  StaticSizeMult< N, Dims... >
 
struct  VectorDataPrinter
 

Functions

template<typename T , int M, int... Dims>
std::ostream & operator<< (std::ostream &os, const Vector< T, M, Dims... > &v)
 
static void printSpace (std::ostream &os, int count)
 
template<typename T , int N>
void printMemRefShape (StridedMemRefType< T, N > &m)
 
template<typename T >
void printMemRefShape (UnrankedMemRefType< T > &m)
 
template<typename T >
void printMemRef (const DynamicMemRefType< T > &m)
 
template<typename T , int N>
void printMemRef (StridedMemRefType< T, N > &m)
 
template<typename T >
void printMemRef (UnrankedMemRefType< T > &m)
 
template<typename T >
int64_t verifyMemRef (const DynamicMemRefType< T > &actual, const DynamicMemRefType< T > &expected)
 Verify the equivalence of two dynamic memrefs and return the number of errors or -1 if the shape of the memrefs do not match. More...
 
template<typename T >
int64_t verifyMemRef (UnrankedMemRefType< T > &actual, UnrankedMemRefType< T > &expected)
 Verify the equivalence of two unranked memrefs and return the number of errors or -1 if the shape of the memrefs do not match. More...
 

Function Documentation

◆ operator<<()

template<typename T , int M, int... Dims>
std::ostream & impl::operator<< ( std::ostream &  os,
const Vector< T, M, Dims... > &  v 
)

Definition at line 127 of file RunnerUtils.h.

References impl::VectorDataPrinter< T, M, Dims >::print().

◆ printMemRef() [1/3]

template<typename T >
void impl::printMemRef ( const DynamicMemRefType< T > &  m)

◆ printMemRef() [2/3]

template<typename T , int N>
void impl::printMemRef ( StridedMemRefType< T, N > &  m)

Definition at line 221 of file RunnerUtils.h.

References printMemRef().

◆ printMemRef() [3/3]

template<typename T >
void impl::printMemRef ( UnrankedMemRefType< T > &  m)

Definition at line 227 of file RunnerUtils.h.

References printMemRef().

◆ printMemRefShape() [1/2]

template<typename T , int N>
void impl::printMemRefShape ( StridedMemRefType< T, N > &  m)

Definition at line 196 of file RunnerUtils.h.

References printMemRefMetaData().

◆ printMemRefShape() [2/2]

template<typename T >
void impl::printMemRefShape ( UnrankedMemRefType< T > &  m)

Definition at line 202 of file RunnerUtils.h.

References printMemRefMetaData().

◆ printSpace()

static void impl::printSpace ( std::ostream &  os,
int  count 
)
inlinestatic

◆ verifyMemRef() [1/2]

template<typename T >
int64_t impl::verifyMemRef ( const DynamicMemRefType< T > &  actual,
const DynamicMemRefType< T > &  expected 
)

◆ verifyMemRef() [2/2]

template<typename T >
int64_t impl::verifyMemRef ( UnrankedMemRefType< T > &  actual,
UnrankedMemRefType< T > &  expected 
)