5 #if defined R600_USE_LLVM || defined HAVE_OPENCL
7 #include "radeon_llvm.h"
8 #include <llvm-c/Core.h>
11 struct r600_shader_ctx
;
12 struct radeon_llvm_context
;
15 LLVMModuleRef
r600_tgsi_llvm(
16 struct radeon_llvm_context
* ctx
,
17 const struct tgsi_token
* tokens
);
19 unsigned r600_llvm_compile(
21 unsigned char ** inst_bytes
,
22 unsigned * inst_byte_count
,
23 enum radeon_family family
,
24 struct r600_bytecode
*bc
,
28 #endif /* defined R600_USE_LLVM || defined HAVE_OPENCL */
30 #endif /* R600_LLVM_H */