summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-07-03 09:51:42 +1000
committerDave Airlie <[email protected]>2018-07-04 10:29:03 +1000
commitd853d3a59bd5f8720a5b021bcd64a193d370b623 (patch)
tree2ccdf575546420a285d616f4203254df6faa5997 /src/amd/common/ac_llvm_util.h
parent35c82af5399fd5d31572098f7aaf760c1d750dc8 (diff)
ac/radeonsi: port compiler init/destroy out of radeonsi.
We want to share this code with radv in the future, so port it out of radeonsi. Add a return value as radv will want that to know if this succeeds Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r--src/amd/common/ac_llvm_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h
index 2a8f6911365..cd56ff5f41c 100644
--- a/src/amd/common/ac_llvm_util.h
+++ b/src/amd/common/ac_llvm_util.h
@@ -125,6 +125,12 @@ LLVMTargetLibraryInfoRef ac_create_target_library_info(const char *triple);
void ac_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);
void ac_init_llvm_once(void);
+
+bool ac_init_llvm_compiler(struct ac_llvm_compiler *compiler,
+ enum radeon_family family,
+ enum ac_target_machine_options tm_options);
+void ac_destroy_llvm_compiler(struct ac_llvm_compiler *compiler);
+
#ifdef __cplusplus
}
#endif