summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_llvm.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-04-17 08:37:38 -0400
committerTom Stellard <[email protected]>2012-04-23 09:34:04 -0400
commit2da961056600d3f2d94a581c19bfcc1e636e8f41 (patch)
tree4b05293e11af0eb61519317e347f8076a27b95b1 /src/gallium/drivers/r600/r600_llvm.h
parent509ddb0a0414cfc83102c463da542d95d83eabad (diff)
r600g: Add TGSI->LLVM implementation v2
v2: Add case for ARUBA in r600_llvm_gpu_string() Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_llvm.h')
-rw-r--r--src/gallium/drivers/r600/r600_llvm.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_llvm.h b/src/gallium/drivers/r600/r600_llvm.h
new file mode 100644
index 00000000000..0f6a1f88341
--- /dev/null
+++ b/src/gallium/drivers/r600/r600_llvm.h
@@ -0,0 +1,29 @@
+
+#ifndef R600_LLVM_H
+#define R600_LLVM_H
+
+#ifdef R600_USE_LLVM
+
+#include "radeon_llvm.h"
+#include <llvm-c/Core.h>
+
+struct r600_shader_ctx;
+struct radeon_llvm_context;
+enum radeon_family;
+
+LLVMModuleRef r600_tgsi_llvm(
+ struct radeon_llvm_context * ctx,
+ const struct tgsi_token * tokens);
+
+const char * r600_llvm_gpu_string(enum radeon_family family);
+
+unsigned r600_llvm_compile(
+ LLVMModuleRef mod,
+ unsigned char ** inst_bytes,
+ unsigned * inst_byte_count,
+ enum radeon_family family,
+ unsigned dump);
+
+#endif /* R600_USE_LLVM */
+
+#endif /* R600_LLVM_H */