diff --git a/mlir/include/mlir/ExecutionEngine/RunnerUtils.h b/mlir/include/mlir/ExecutionEngine/RunnerUtils.h --- a/mlir/include/mlir/ExecutionEngine/RunnerUtils.h +++ b/mlir/include/mlir/ExecutionEngine/RunnerUtils.h @@ -220,11 +220,15 @@ _mlir_ciface_print_memref_i8(UnrankedMemRefType *M); extern "C" MLIR_RUNNERUTILS_EXPORT void _mlir_ciface_print_memref_f32(UnrankedMemRefType *M); +extern "C" MLIR_RUNNERUTILS_EXPORT void +_mlir_ciface_print_memref_f64(UnrankedMemRefType *M); extern "C" MLIR_RUNNERUTILS_EXPORT void print_memref_i32(int64_t rank, void *ptr); extern "C" MLIR_RUNNERUTILS_EXPORT void print_memref_f32(int64_t rank, void *ptr); +extern "C" MLIR_RUNNERUTILS_EXPORT void print_memref_f64(int64_t rank, + void *ptr); extern "C" MLIR_RUNNERUTILS_EXPORT void _mlir_ciface_print_memref_0d_f32(StridedMemRefType *M); diff --git a/mlir/lib/ExecutionEngine/RunnerUtils.cpp b/mlir/lib/ExecutionEngine/RunnerUtils.cpp --- a/mlir/lib/ExecutionEngine/RunnerUtils.cpp +++ b/mlir/lib/ExecutionEngine/RunnerUtils.cpp @@ -36,6 +36,10 @@ impl::printMemRef(*M); } +extern "C" void _mlir_ciface_print_memref_f64(UnrankedMemRefType *M) { + impl::printMemRef(*M); +} + extern "C" void print_memref_i32(int64_t rank, void *ptr) { UnrankedMemRefType descriptor = {rank, ptr}; _mlir_ciface_print_memref_i32(&descriptor); @@ -46,6 +50,11 @@ _mlir_ciface_print_memref_f32(&descriptor); } +extern "C" void print_memref_f64(int64_t rank, void *ptr) { + UnrankedMemRefType descriptor = {rank, ptr}; + _mlir_ciface_print_memref_f64(&descriptor); +} + extern "C" void _mlir_ciface_print_memref_0d_f32(StridedMemRefType *M) { impl::printMemRef(*M);