summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_llvm.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-04-16 17:48:44 -0400
committerTom Stellard <[email protected]>2012-04-23 09:33:55 -0400
commit509ddb0a0414cfc83102c463da542d95d83eabad (patch)
treeccae3b1538a8f4714a81e21f64d503aa66648e38 /src/gallium/drivers/radeon/radeon_llvm.h
parent6e238bf27c34fa9d79c9f371c102a5423db86de8 (diff)
radeon: Move radeon_llvm_emit.cpp declarations into their own header
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_llvm.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm.h b/src/gallium/drivers/radeon/radeon_llvm.h
index 14c9ecbb865..9be7f90c3e6 100644
--- a/src/gallium/drivers/radeon/radeon_llvm.h
+++ b/src/gallium/drivers/radeon/radeon_llvm.h
@@ -24,8 +24,8 @@
*
*/
-#ifndef LLVM_GPU_H
-#define LLVM_GPU_H
+#ifndef RADEON_LLVM_H
+#define RADEON_LLVM_H
#include <llvm-c/Core.h>
#include "gallivm/lp_bld_init.h"
@@ -36,10 +36,6 @@
#define RADEON_LLVM_MAX_BRANCH_DEPTH 16
#define RADEON_LLVM_MAX_LOOP_DEPTH 16
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct radeon_llvm_branch {
LLVMBasicBlockRef endif_block;
LLVMBasicBlockRef if_block;
@@ -109,13 +105,6 @@ struct radeon_llvm_context {
struct gallivm_state gallivm;
};
-unsigned radeon_llvm_compile(
- LLVMModuleRef M,
- unsigned char ** bytes,
- unsigned * byte_count,
- const char * gpu_family,
- unsigned dump);
-
void radeon_llvm_context_init(struct radeon_llvm_context * ctx);
void radeon_llvm_dispose(struct radeon_llvm_context * ctx);
@@ -130,7 +119,4 @@ unsigned radeon_llvm_reg_index_soa(unsigned index, unsigned chan);
void radeon_llvm_finalize_module(struct radeon_llvm_context * ctx);
-#ifdef __cplusplus
-}
-#endif
-#endif /* LLVM_GPU_H */
+#endif /* RADEON_LLVM_H */