MLIR 22.0.0git
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

Typedefs

using index_type = uint64_t
using complex64 = std::complex<double>
using complex32 = std::complex<float>

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.
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.

Typedef Documentation

◆ complex32

using impl::complex32 = std::complex<float>

Definition at line 83 of file RunnerUtils.h.

◆ complex64

using impl::complex64 = std::complex<double>

Definition at line 82 of file RunnerUtils.h.

◆ index_type

using impl::index_type = uint64_t

Definition at line 81 of file RunnerUtils.h.

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 137 of file RunnerUtils.h.

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

◆ printMemRef() [1/3]

◆ printMemRef() [2/3]

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

Definition at line 231 of file RunnerUtils.h.

References printMemRef().

◆ printMemRef() [3/3]

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

Definition at line 237 of file RunnerUtils.h.

References printMemRef().

◆ printMemRefShape() [1/2]

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

Definition at line 206 of file RunnerUtils.h.

References printMemRefMetaData().

◆ printMemRefShape() [2/2]

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

Definition at line 212 of file RunnerUtils.h.

References printMemRefMetaData().

◆ printSpace()

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

◆ verifyMemRef() [1/2]

◆ verifyMemRef() [2/2]

template<typename T>
int64_t impl::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.

Definition at line 342 of file RunnerUtils.h.

References verifyMemRef().