diff options
author | Samuel Pitoiset <[email protected]> | 2018-01-15 14:51:43 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-01-16 21:39:53 +0100 |
commit | 2091206ad3764c94317bd700cc551f9c31a2847d (patch) | |
tree | fa545fd9f22e95bc2ab5938a38d5713b30be44e9 /src/amd/common/ac_llvm_util.h | |
parent | ad2b3b2a9cefc28f8bd78a116ab549a08d35ec35 (diff) |
ac: import lp_create_builder() from gallivm
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r-- | src/amd/common/ac_llvm_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h index 61bcc4e54ed..84fcbf111cf 100644 --- a/src/amd/common/ac_llvm_util.h +++ b/src/amd/common/ac_llvm_util.h @@ -62,6 +62,12 @@ enum ac_target_machine_options { AC_TM_PROMOTE_ALLOCA_TO_SCRATCH = (1 << 4), }; +enum ac_float_mode { + AC_FLOAT_MODE_DEFAULT, + AC_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH, + AC_FLOAT_MODE_UNSAFE_FP_MATH, +}; + 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); @@ -77,6 +83,9 @@ void ac_dump_module(LLVMModuleRef module); LLVMValueRef ac_llvm_get_called_value(LLVMValueRef call); bool ac_llvm_is_function(LLVMValueRef v); +LLVMBuilderRef ac_create_builder(LLVMContextRef ctx, + enum ac_float_mode float_mode); + void ac_llvm_add_target_dep_function_attr(LLVMValueRef F, const char *name, int value); |