//===- mlir_test_cblas_interface.h - Simple Blas subset interface ---------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef MLIR_CPU_RUNNER_MLIR_TEST_CBLAS_INTERFACE_H_ #define MLIR_CPU_RUNNER_MLIR_TEST_CBLAS_INTERFACE_H_ #include "mlir/ExecutionEngine/RunnerUtils.h" #ifdef _WIN32 #ifndef MLIR_TEST_CBLAS_INTERFACE_EXPORT #ifdef mlir_test_cblas_interface_EXPORTS // We are building this library #define MLIR_TEST_CBLAS_INTERFACE_EXPORT __declspec(dllexport) #else // We are using this library #define MLIR_TEST_CBLAS_INTERFACE_EXPORT __declspec(dllimport) #endif // mlir_test_cblas_interface_EXPORTS #endif // MLIR_TEST_CBLAS_INTERFACE_EXPORT #else #define MLIR_TEST_CBLAS_INTERFACE_EXPORT #endif // _WIN32 extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_fill_viewf32_f32(StridedMemRefType *X, float f); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_fill_viewsxf32_f32(StridedMemRefType *X, float f); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_fill_viewsxsxf32_f32(StridedMemRefType *X, float f); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_copy_viewf32_viewf32(StridedMemRefType *I, StridedMemRefType *O); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_copy_viewsxf32_viewsxf32(StridedMemRefType *I, StridedMemRefType *O); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_copy_viewsxsxf32_viewsxsxf32( StridedMemRefType *I, StridedMemRefType *O); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_dot_viewsxf32_viewsxf32_viewf32( StridedMemRefType *X, StridedMemRefType *Y, StridedMemRefType *Z); extern "C" MLIR_TEST_CBLAS_INTERFACE_EXPORT void _mlir_ciface_linalg_matmul_viewsxsxf32_viewsxsxf32_viewsxsxf32( StridedMemRefType *A, StridedMemRefType *B, StridedMemRefType *C); #endif // MLIR_CPU_RUNNER_MLIR_TEST_CBLAS_INTERFACE_H_