radeonsi: use SPI_SHADER_COL_FORMAT fields instead of export_16bpc
[mesa.git] / src / gallium / drivers / radeon / radeon_llvm_emit.h
index f78fc19faf7ce8e45036d9c0a4ad761bd122d0ba..45f05a9e0e1df6cf98f320ed5cc07af7eb742eb7 100644 (file)
 #define RADEON_LLVM_EMIT_H
 
 #include <llvm-c/Core.h>
+#include <llvm-c/TargetMachine.h>
+#include <stdbool.h>
 
-struct radeon_llvm_binary {
-       unsigned char *code;
-       unsigned code_size;
-       unsigned char *config;
-       unsigned config_size;
-};
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+struct pipe_debug_callback;
+struct radeon_shader_binary;
 
 void radeon_llvm_shader_type(LLVMValueRef F, unsigned type);
 
-unsigned radeon_llvm_bitcode_compile(
-   unsigned char * bitcode, unsigned bitcode_len,
-   unsigned char ** bytes, unsigned * byte_count,
-   const  char * gpu_family, unsigned dump);
-
-unsigned  radeon_llvm_compile(
-       LLVMModuleRef M,
-       struct radeon_llvm_binary *binary,
-       const char * gpu_family,
-       unsigned dump);
+LLVMTargetRef radeon_llvm_get_r600_target(const char *triple);
 
-#ifdef __cplusplus
-} /* Extern "C" */
-#endif
+unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_shader_binary *binary,
+                            const char *gpu_family,
+                            LLVMTargetMachineRef tm,
+                            struct pipe_debug_callback *debug);
 
 #endif /* RADEON_LLVM_EMIT_H */