llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit.
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_misc.h
index 847894bb0351b86d798136491aa54daf25dd4fa0..363fbded728be51cfe44841b8f2fadd1236f9859 100644 (file)
@@ -31,7 +31,9 @@
 
 
 #include "lp_bld.h"
+#include <llvm/Config/llvm-config.h>
 #include <llvm-c/ExecutionEngine.h>
+#include <llvm-c/Target.h>
 
 
 #ifdef __cplusplus
@@ -41,30 +43,38 @@ extern "C" {
 
 struct lp_generated_code;
 
+extern LLVMTargetLibraryInfoRef
+gallivm_create_target_library_info(const char *triple);
 
 extern void
-lp_set_target_options(void);
-
+gallivm_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);
 
 extern void
-lp_func_delete_body(LLVMValueRef func);
-
+lp_set_target_options(void);
 
-extern LLVMValueRef
-lp_build_load_volatile(LLVMBuilderRef B, LLVMValueRef PointerVal,
-                       const char *Name);
 
 extern int
 lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
                                         struct lp_generated_code **OutCode,
                                         LLVMModuleRef M,
+                                        LLVMMCJITMemoryManagerRef MM,
                                         unsigned OptLevel,
-                                        int useMCJIT,
                                         char **OutError);
 
 extern void
 lp_free_generated_code(struct lp_generated_code *code);
 
+extern LLVMMCJITMemoryManagerRef
+lp_get_default_memory_manager();
+
+extern void
+lp_free_memory_manager(LLVMMCJITMemoryManagerRef memorymgr);
+
+extern LLVMValueRef
+lp_get_called_value(LLVMValueRef call);
+
+extern bool
+lp_is_function(LLVMValueRef v);
 
 #ifdef __cplusplus
 }