Loading...
Searching...
No Matches
Go to the documentation of this file.
24#ifndef TVM_RUNTIME_BASE_H_
25#define TVM_RUNTIME_BASE_H_
29#include <tvm/ffi/c_api.h>
33#ifndef TVM_TIRX_VERSION
34#define TVM_TIRX_VERSION "0.1.0.dev0"
41#include <emscripten/emscripten.h>
46#if defined(__EMSCRIPTEN__)
47#define TVM_TIRX_DLL EMSCRIPTEN_KEEPALIVE
48#elif defined(_MSC_VER)
49#ifdef TVM_TIRX_EXPORTS
50#define TVM_TIRX_DLL __declspec(dllexport)
52#define TVM_TIRX_DLL __declspec(dllimport)
55#define TVM_TIRX_DLL __attribute__((visibility("default")))
60#if !defined(TVM_RUNTIME_DLL) && defined(__EMSCRIPTEN__)
61#define TVM_RUNTIME_DLL EMSCRIPTEN_KEEPALIVE
62#define TVM_RUNTIME_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
64#if !defined(TVM_RUNTIME_DLL) && defined(_MSC_VER)
65#ifdef TVM_RUNTIME_EXPORTS
66#define TVM_RUNTIME_DLL __declspec(dllexport)
68#define TVM_RUNTIME_DLL __declspec(dllimport)
70#define TVM_RUNTIME_DLL_EXPORT __declspec(dllexport)
72#ifndef TVM_RUNTIME_DLL
73#define TVM_RUNTIME_DLL __attribute__((visibility("default")))
74#define TVM_RUNTIME_DLL_EXPORT __attribute__((visibility("default")))