summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-02-16 03:42:56 +0000
committerDave Airlie <[email protected]>2017-02-16 22:57:15 +0000
commitcae1ff1a4b1f696fc6c2496d281c2548a097e753 (patch)
tree1caddae6ee3494c53476f20f9930f29d23a6e252 /src/amd/common/ac_llvm_build.h
parent40bf7ba023a3a9b2027aa0b51adb6a591e472d59 (diff)
radeon/ac: add ac_emit_imsb helper.
We want to use a different intrinsic on newer llvm, so move this code to a shared area. Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r--src/amd/common/ac_llvm_build.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index e88874ad46b..0ff04e4c703 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -182,6 +182,10 @@ void ac_emit_sendmsg(struct ac_llvm_context *ctx,
uint32_t msg,
LLVMValueRef wave_id);
+LLVMValueRef ac_emit_imsb(struct ac_llvm_context *ctx,
+ LLVMValueRef arg,
+ LLVMTypeRef dst_type);
+
#ifdef __cplusplus
}
#endif