diff options
author | Tobias Klausmann <[email protected]> | 2017-03-01 22:16:27 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-03-01 23:53:38 +0100 |
commit | 6d600cf632f83d7ffdd844e0b3a049605ae858cc (patch) | |
tree | 30c4f68232dc3ff5b6c8bac2952802e7f6937863 /src/amd/common/ac_llvm_util.h | |
parent | a1727aa75ed252cd19c296ccf83cb595be971744 (diff) |
amd/common: Fix build with new ac_add_function_attr()
Fix usage of ac_add_function_attr() and make it known!
common/ac_nir_to_llvm.c: In function 'create_llvm_function':
common/ac_nir_to_llvm.c:265:4: error: implicit declaration of function
'ac_add_function_attr' [-Werror=implicit-function-declaration]
ac_add_function_attr(main_function, i + 1, AC_FUNC_ATTR_BYVAL);
^~~~~~~~~~~~~~~~~~~~
Signed-off-by: Tobias Klausmann <[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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h index 4fe4ab4168b..805db771785 100644 --- a/src/amd/common/ac_llvm_util.h +++ b/src/amd/common/ac_llvm_util.h @@ -53,6 +53,8 @@ LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family, bool su void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes); bool ac_is_sgpr_param(LLVMValueRef param); +void ac_add_function_attr(LLVMContextRef ctx, LLVMValueRef function, + int attr_idx, enum ac_func_attr attr); void ac_add_func_attributes(LLVMContextRef ctx, LLVMValueRef function, unsigned attrib_mask); void ac_dump_module(LLVMModuleRef module); |