diff options
author | Samuel Pitoiset <[email protected]> | 2018-09-14 12:52:32 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-09-17 15:18:20 +0200 |
commit | 371c35e5bb19989953e371be924fb0b908407c47 (patch) | |
tree | c0d33f3af50eee06ca2fb1946dfed3bbe9ce3095 /src/amd/common/ac_llvm_build.h | |
parent | aec91514643c096ad98af9f36d7f33a74d103c7c (diff) |
ac: add ac_build_bit_count() helper
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r-- | src/amd/common/ac_llvm_build.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index 0d261bae097..98a61a24054 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -424,6 +424,8 @@ LLVMValueRef ac_build_isign(struct ac_llvm_context *ctx, LLVMValueRef src0, LLVMValueRef ac_build_fsign(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize); +LLVMValueRef ac_build_bit_count(struct ac_llvm_context *ctx, LLVMValueRef src0); + void ac_optimize_vs_outputs(struct ac_llvm_context *ac, LLVMValueRef main_fn, uint8_t *vs_output_param_offset, |