summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/llvm_wrapper.h
blob: 4b9b93f23c6b8d34f7c7fc76253bb854c38e01b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef LLVM_WRAPPER_H
#define LLVM_WRAPPER_H

#include <llvm-c/Core.h>

#ifdef __cplusplus
extern "C" {
#endif

LLVMModuleRef llvm_parse_bitcode(const unsigned char * bitcode, unsigned bitcode_len);
void llvm_strip_unused_kernels(LLVMModuleRef mod, const char *kernel_name);
unsigned llvm_get_num_kernels(const unsigned char *bitcode, unsigned bitcode_len);
LLVMModuleRef llvm_get_kernel_module(unsigned index,
			const unsigned char *bitcode, unsigned bitcode_len);

#ifdef __cplusplus
}
#endif

#endif