Mneme
Mneme a tool allowing recording the execution of a GPU (CUDA/HIP) kernel and replaying that kernel as an independent executable.
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1#ifndef LLVMPY_CORE_H_
2#define LLVMPY_CORE_H_
3
4#include "llvm-c/Core.h"
5#include <cstdlib>
6#include <cstring>
7
8#if defined(_MSC_VER)
9#define HAVE_DECLSPEC_DLL
10#endif
11
12#if defined(HAVE_DECLSPEC_DLL)
13#define API_EXPORT(RTYPE) __declspec(dllexport) RTYPE
14#else
15#define API_EXPORT(RTYPE) RTYPE
16#endif
17
18extern "C" {
19
20API_EXPORT(const char *)
21LLVMPY_CreateString(const char *msg);
22
23API_EXPORT(const char *)
24LLVMPY_CreateByteString(const char *buf, size_t len);
25
26API_EXPORT(void)
27LLVMPY_DisposeString(const char *msg);
28
29API_EXPORT(LLVMContextRef)
31
32API_EXPORT(LLVMContextRef)
34
35} /* end extern "C" */
36
37#endif /* LLVMPY_CORE_H_ */
LLVMPY_CreateByteString(const char *buf, size_t len)
Definition core.cpp:11
LLVMPY_CreateString(const char *msg)
Definition core.cpp:8
LLVMPY_DisposeString(const char *msg)
Definition core.cpp:21
#define API_EXPORT(RTYPE)
Definition core.h:15
LLVMPY_ContextCreate()
Definition core.cpp:27
LLVMPY_GetGlobalContext()
Definition core.cpp:24