5 #if defined R600_USE_LLVM || defined HAVE_OPENCL
7 #include "radeon_llvm.h"
8 #include <llvm-c/Core.h>
10 struct r600_shader_ctx
;
11 struct radeon_llvm_context
;
14 LLVMModuleRef
r600_tgsi_llvm(
15 struct radeon_llvm_context
* ctx
,
16 const struct tgsi_token
* tokens
);
18 const char * r600_llvm_gpu_string(enum radeon_family family
);
20 unsigned r600_llvm_compile(
22 unsigned char ** inst_bytes
,
23 unsigned * inst_byte_count
,
24 enum radeon_family family
,
27 #endif /* defined R600_USE_LLVM || defined HAVE_OPENCL */
29 #endif /* R600_LLVM_H */