summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-06-27 10:24:18 +1000
committerDave Airlie <[email protected]>2018-07-04 10:29:26 +1000
commit5b32b246cf6015054cd2b8901062d9e161188ebb (patch)
tree17d77e910b8f3c3e5d816c9060a058ae8acd13fd /src/amd/common/ac_llvm_util.c
parent7398913a62a59282e742758a7e789ed3df27e49c (diff)
ac: make some fns static
Some of the compiler functions are no longer called outside the util file. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.c')
-rw-r--r--src/amd/common/ac_llvm_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index 2be2edf1e6a..5e04452d5a8 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -67,7 +67,7 @@ void ac_init_llvm_once(void)
call_once(&ac_init_llvm_target_once_flag, ac_init_llvm_target);
}
-LLVMTargetRef ac_get_llvm_target(const char *triple)
+static LLVMTargetRef ac_get_llvm_target(const char *triple)
{
LLVMTargetRef target = NULL;
char *err_message = NULL;
@@ -133,9 +133,9 @@ const char *ac_get_llvm_processor_name(enum radeon_family family)
}
}
-LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family,
- enum ac_target_machine_options tm_options,
- const char **out_triple)
+static LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family,
+ enum ac_target_machine_options tm_options,
+ const char **out_triple)
{
assert(family >= CHIP_TAHITI);
char features[256];
@@ -165,8 +165,8 @@ LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family,
return tm;
}
-LLVMPassManagerRef ac_create_passmgr(LLVMTargetLibraryInfoRef target_library_info,
- bool check_ir)
+static LLVMPassManagerRef ac_create_passmgr(LLVMTargetLibraryInfoRef target_library_info,
+ bool check_ir)
{
LLVMPassManagerRef passmgr = LLVMCreatePassManager();
if (!passmgr)