From c998b99acdf498abb5ecb4fc7b7888468f9dfaaa Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 27 Feb 2020 11:28:29 -0800 Subject: [PATCH 1/2] [Runtime] Fixed TVM_DLL_EXPORT_TYPED_FUNC to work on Windows --- include/tvm/runtime/packed_func.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/tvm/runtime/packed_func.h b/include/tvm/runtime/packed_func.h index 1373f5f9cca1..a647207b6e78 100644 --- a/include/tvm/runtime/packed_func.h +++ b/include/tvm/runtime/packed_func.h @@ -916,6 +916,11 @@ class TVMRetValue : public TVMPODValue_ { #define TVM_DLL_EXPORT_PACKED_FUNC(ExportName, Function) \ extern "C" { \ TVM_DLL int ExportName(TVMValue* args, \ + int* type_code, \ + int num_args, \ + TVMValue* out_value, \ + int* out_type_code); \ + int ExportName(TVMValue* args, \ int* type_code, \ int num_args, \ TVMValue* out_value, \ From 6f3ba607d5f61e4f47207a82d5494806c1debdc8 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 27 Feb 2020 11:30:57 -0800 Subject: [PATCH 2/2] fix style --- include/tvm/runtime/packed_func.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tvm/runtime/packed_func.h b/include/tvm/runtime/packed_func.h index a647207b6e78..7e37b2aade90 100644 --- a/include/tvm/runtime/packed_func.h +++ b/include/tvm/runtime/packed_func.h @@ -921,10 +921,10 @@ class TVMRetValue : public TVMPODValue_ { TVMValue* out_value, \ int* out_type_code); \ int ExportName(TVMValue* args, \ - int* type_code, \ - int num_args, \ - TVMValue* out_value, \ - int* out_type_code) { \ + int* type_code, \ + int num_args, \ + TVMValue* out_value, \ + int* out_type_code) { \ try { \ ::tvm::runtime::TVMRetValue rv; \ Function(::tvm::runtime::TVMArgs( \