[all-commits] [llvm/llvm-project] 6fd9e5: [mlir] Fix exports in mlir_async_runtime

Paul LiƩtar via All-commits all-commits at lists.llvm.org
Wed Nov 11 06:11:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fd9e59e1b3ac15430eccd4011e063605f58039c
      https://github.com/llvm/llvm-project/commit/6fd9e59e1b3ac15430eccd4011e063605f58039c
  Author: Paul Lietar <paul at lietar.net>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

  Changed paths:
    M mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
    M mlir/lib/ExecutionEngine/AsyncRuntime.cpp

  Log Message:
  -----------
  [mlir] Fix exports in mlir_async_runtime

The MLIR_ASYNCRUNTIME_EXPORT macro was being defined to be either
__declspec(dllexport) or __declspec(dllimport), depending on whether
mlir_c_runner_utils_EXPORTS is defined. The latter was a copy/paste
error and should have been mlir_async_runtime_EXPORTS.

Additionally, the uses of that macro in the .cpp file were unnecessary,
as only function declarations need to be exported, not their definitions.

Differential Revision: https://reviews.llvm.org/D91196




More information about the All-commits mailing list