MLIR
15.0.0git
|
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... | |
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().
void impl::printMemRef | ( | const DynamicMemRefType< T > & | m | ) |
Definition at line 208 of file RunnerUtils.h.
References DynamicMemRefType< T >::data, DynamicMemRefType< T >::offset, impl::MemRefDataPrinter< T >::print(), printMemRefMetaData(), DynamicMemRefType< T >::rank, DynamicMemRefType< T >::sizes, and DynamicMemRefType< T >::strides.
Referenced by _mlir_ciface_printMemref0dF32(), _mlir_ciface_printMemref1dF32(), _mlir_ciface_printMemref2dF32(), _mlir_ciface_printMemref3dF32(), _mlir_ciface_printMemref4dF32(), _mlir_ciface_printMemrefF32(), _mlir_ciface_printMemrefF64(), _mlir_ciface_printMemrefI32(), _mlir_ciface_printMemrefI64(), _mlir_ciface_printMemrefI8(), _mlir_ciface_printMemrefVector4x4xf32(), and printMemRef().
void impl::printMemRef | ( | StridedMemRefType< T, N > & | m | ) |
Definition at line 221 of file RunnerUtils.h.
References printMemRef().
void impl::printMemRef | ( | UnrankedMemRefType< T > & | m | ) |
Definition at line 227 of file RunnerUtils.h.
References printMemRef().
void impl::printMemRefShape | ( | StridedMemRefType< T, N > & | m | ) |
Definition at line 196 of file RunnerUtils.h.
References printMemRefMetaData().
void impl::printMemRefShape | ( | UnrankedMemRefType< T > & | m | ) |
Definition at line 202 of file RunnerUtils.h.
References printMemRefMetaData().
|
inlinestatic |
Definition at line 88 of file RunnerUtils.h.
Referenced by impl::VectorDataPrinter< T, M, Dims >::print(), impl::MemRefDataPrinter< T >::print(), impl::MemRefDataPrinter< T >::printLast(), and mlir::FlatAffineValueConstraints::printSpace().
int64_t impl::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.
Definition at line 310 of file RunnerUtils.h.
References DynamicMemRefType< T >::basePtr, DynamicMemRefType< T >::offset, printMemRefMetaData(), DynamicMemRefType< T >::rank, DynamicMemRefType< T >::sizes, DynamicMemRefType< T >::strides, and impl::MemRefDataVerifier< T >::verify().
Referenced by _mlir_ciface_verifyMemRefF32(), _mlir_ciface_verifyMemRefF64(), _mlir_ciface_verifyMemRefI32(), and verifyMemRef().
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 332 of file RunnerUtils.h.
References _mlir_ciface_nanoTime(), _mlir_ciface_printMemref0dF32(), _mlir_ciface_printMemref1dF32(), _mlir_ciface_printMemref2dF32(), _mlir_ciface_printMemref3dF32(), _mlir_ciface_printMemref4dF32(), _mlir_ciface_printMemrefF32(), _mlir_ciface_printMemrefF64(), _mlir_ciface_printMemrefI32(), _mlir_ciface_printMemrefI64(), _mlir_ciface_printMemrefI8(), _mlir_ciface_printMemrefShapeF32(), _mlir_ciface_printMemrefShapeF64(), _mlir_ciface_printMemrefShapeI32(), _mlir_ciface_printMemrefShapeI64(), _mlir_ciface_printMemrefShapeI8(), _mlir_ciface_printMemrefVector4x4xf32(), _mlir_ciface_verifyMemRefF32(), _mlir_ciface_verifyMemRefF64(), _mlir_ciface_verifyMemRefI32(), MLIR_RUNNERUTILS_EXPORT, printCString(), printMemrefF32(), printMemrefF64(), printMemrefI32(), printMemrefI64(), verifyMemRef(), verifyMemRefF32(), verifyMemRefF64(), and verifyMemRefI32().