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 @@ -78,6 +78,10 @@ impl::printMemRef(*M); } +extern "C" void _mlir_ciface_print_string(UnrankedMemRefType *M) { + impl::printMemRef(*M); +} + extern "C" int64_t _mlir_ciface_nano_time() { auto now = std::chrono::high_resolution_clock::now(); auto duration = now.time_since_epoch(); @@ -106,6 +110,8 @@ _mlir_ciface_print_memref_f64(&descriptor); } +extern "C" void print_c_string(char *str) { printf("%s", str); } + extern "C" void _mlir_ciface_print_memref_0d_f32(StridedMemRefType *M) { impl::printMemRef(*M);