[mlir] mlir-cpu-runner test's cblas_interface should export functions on Windows
authorKern Handa <kern.handa@gmail.com>
Thu, 9 Jan 2020 21:55:31 +0000 (22:55 +0100)
committerAlex Zinenko <zinenko@google.com>
Thu, 9 Jan 2020 21:55:46 +0000 (22:55 +0100)
commitea67737b166fc6cb5fd98874fbd2b4639b2d7ecd
tree8d0c29f4d127f0098c1d89675ca3bf6938ae6d92
parent8c387cbea76b169f1f8ecc7693797e96567ed896
[mlir] mlir-cpu-runner test's cblas_interface should export functions on Windows

This change fixes the build on Windows, so that cblas_interface.dll
exports functions correctly and an implib is created and installed
correctly.

Currently, LLVM cannot be consumed on Windows after it has been
installed in a location because cblas_interface.lib is not
created/installed, thus failing the import check in `LLVMExports.cmake`.

Differential Revision: https://reviews.llvm.org/D72384
mlir/test/mlir-cpu-runner/CMakeLists.txt
mlir/test/mlir-cpu-runner/cblas_interface.cpp
mlir/test/mlir-cpu-runner/include/cblas.h
mlir/test/mlir-cpu-runner/include/cblas_interface.h [new file with mode: 0644]
mlir/test/mlir-cpu-runner/include/mlir_runner_utils.h