r600g/llvm: Move llvm wrapper functions into the radeon directory
[mesa.git] / src / gallium / drivers / radeon / radeon_llvm_util.h
1 #ifndef RADEON_LLVM_UTIL_H
2 #define RADEON_LLVM_UTIL_H
3
4 #include <llvm-c/Core.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 LLVMModuleRef radeon_llvm_parse_bitcode(const unsigned char * bitcode, unsigned bitcode_len);
11 void radeon_llvm_strip_unused_kernels(LLVMModuleRef mod, const char *kernel_name);
12 unsigned radeon_llvm_get_num_kernels(const unsigned char *bitcode, unsigned bitcode_len);
13 LLVMModuleRef radeon_llvm_get_kernel_module(unsigned index,
14 const unsigned char *bitcode, unsigned bitcode_len);
15
16 #ifdef __cplusplus
17 }
18 #endif
19
20 #endif