gallium/hud: add an option to rename each data source
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_misc.h
index 847894bb0351b86d798136491aa54daf25dd4fa0..c499a6f51ebbea43b7f3decf02586c11b1f1c83b 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "lp_bld.h"
 #include <llvm-c/ExecutionEngine.h>
+#include <llvm-c/Target.h>
 
 
 #ifdef __cplusplus
@@ -41,23 +42,24 @@ extern "C" {
 
 struct lp_generated_code;
 
-
 extern void
-lp_set_target_options(void);
+gallivm_init_llvm_targets(void);
 
+extern LLVMTargetLibraryInfoRef
+gallivm_create_target_library_info(const char *triple);
 
 extern void
-lp_func_delete_body(LLVMValueRef func);
+gallivm_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);
 
+extern void
+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);
@@ -65,6 +67,23 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
 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 void
+lp_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes);
+
+extern LLVMValueRef
+lp_get_called_value(LLVMValueRef call);
+
+extern bool
+lp_is_function(LLVMValueRef v);
+
+extern LLVMBuilderRef
+lp_create_builder(LLVMContextRef ctx, bool unsafe_fpmath);
 
 #ifdef __cplusplus
 }