diff options
author | Marek Olšák <[email protected]> | 2018-04-09 18:35:45 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 43f0a10051337c08d4c74e4c205dc75336d00ef9 (patch) | |
tree | 2b84ec2a165cccd7fbbfbeeb55ee6b03a72ef85d /src/amd/common/ac_llvm_util.c | |
parent | 87eb597758a1fe126a712675e8f15c4395c57143 (diff) |
radeonsi: add triple into si_compiler
Reviewed-by: Timothy Arceri <[email protected]>
Tested-by: Benedikt Schemmer <ben at besd.de>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.c')
-rw-r--r-- | src/amd/common/ac_llvm_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |