diff --git a/mlir/include/mlir/ExecutionEngine/CRunnerUtils.h b/mlir/include/mlir/ExecutionEngine/CRunnerUtils.h --- a/mlir/include/mlir/ExecutionEngine/CRunnerUtils.h +++ b/mlir/include/mlir/ExecutionEngine/CRunnerUtils.h @@ -167,6 +167,8 @@ //===----------------------------------------------------------------------===// // Small runtime support "lib" for vector.print lowering during codegen. //===----------------------------------------------------------------------===// +extern "C" MLIR_CRUNNERUTILS_EXPORT void print_i32(int32_t i); +extern "C" MLIR_CRUNNERUTILS_EXPORT void print_i64(int64_t l); extern "C" MLIR_CRUNNERUTILS_EXPORT void print_f32(float f); extern "C" MLIR_CRUNNERUTILS_EXPORT void print_f64(double d); extern "C" MLIR_CRUNNERUTILS_EXPORT void print_open(); diff --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp --- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp +++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp @@ -12,6 +12,8 @@ // //===----------------------------------------------------------------------===// +#include "mlir/ExecutionEngine/CRunnerUtils.h" + #include #include