aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_misc.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2016-02-04 19:36:50 +0000
committerTom Stellard <[email protected]>2016-02-17 19:06:41 +0000
commit77f4e1c7ffeb9c98957f0f22c872f8ca7f93970d (patch)
tree6a647f222663f444db301d53f1cb7f7159f67f82 /src/gallium/auxiliary/gallivm/lp_bld_misc.h
parentcfd1dd050073abbf7244f9986bfc6520f638cd0d (diff)
gallivm: Add helpers for creating and destroying TargetLibraryInfo
This functionality is not exposed via the LLVM C API. Tested-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_misc.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.h b/src/gallium/auxiliary/gallivm/lp_bld_misc.h
index 86d2f86ac45..30b7b1674af 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.h
@@ -32,6 +32,7 @@
#include "lp_bld.h"
#include <llvm-c/ExecutionEngine.h>
+#include <llvm-c/Target.h>
#ifdef __cplusplus
@@ -44,6 +45,12 @@ struct lp_generated_code;
extern void
gallivm_init_llvm_targets(void);
+extern LLVMTargetLibraryInfoRef
+gallivm_create_target_library_info(const char *triple);
+
+extern void
+gallivm_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);
+
extern void
lp_set_target_options(void);