From 43f0a10051337c08d4c74e4c205dc75336d00ef9 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 9 Apr 2018 18:35:45 -0400 Subject: radeonsi: add triple into si_compiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Timothy Arceri Tested-by: Benedikt Schemmer Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_llvm_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/amd/common/ac_llvm_util.c') diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index 5b52381a7f1..a06c83a2963 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -123,7 +123,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) +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]; @@ -146,6 +148,8 @@ LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family, enum ac LLVMRelocDefault, LLVMCodeModelDefault); + if (out_triple) + *out_triple = triple; return tm; } -- cgit v1.2.3