1 2 #ifndef R600_LLVM_H 3 #define R600_LLVM_H 4 5 #if defined R600_USE_LLVM || defined HAVE_OPENCL 6 7 #include "radeon_llvm.h" 8 #include <llvm-c/Core.h> 9 10 struct r600_shader_ctx; 11 struct radeon_llvm_context; 12 enum radeon_family; 13 14 LLVMModuleRef r600_tgsi_llvm( 15 struct radeon_llvm_context * ctx, 16 const struct tgsi_token * tokens); 17 18 const char * r600_llvm_gpu_string(enum radeon_family family); 19 20 unsigned r600_llvm_compile( 21 LLVMModuleRef mod, 22 unsigned char ** inst_bytes, 23 unsigned * inst_byte_count, 24 enum radeon_family family, 25 unsigned dump); 26 27 #endif /* defined R600_USE_LLVM || defined HAVE_OPENCL */ 28 29 #endif /* R600_LLVM_H */ 30