r600g: fix RSQ of negative value on Cayman
[mesa.git] / src / gallium / drivers / r600 / llvm_wrapper.h
1 #ifndef LLVM_WRAPPER_H
2 #define LLVM_WRAPPER_H
3
4 #include <llvm-c/Core.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 LLVMModuleRef llvm_parse_bitcode(const unsigned char * bitcode, unsigned bitcode_len);
11 void llvm_strip_unused_kernels(LLVMModuleRef mod, const char *kernel_name);
12 unsigned llvm_get_num_kernels(const unsigned char *bitcode, unsigned bitcode_len);
13 LLVMModuleRef llvm_get_kernel_module(unsigned index,
14 const unsigned char *bitcode, unsigned bitcode_len);
15
16 #ifdef __cplusplus
17 }
18 #endif
19
20 #endif