ac: update llvm.amdgcn.icmp intrinsic name for LLVM 9+
LLVM r363339 changed llvm.amdgcn.icmp.i* to llvm.amdgcn.icmp.i64.i*. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
d72bbb2c89
commit
b5012a0518
|
@ -441,6 +441,7 @@ LLVMValueRef
|
||||||
ac_build_ballot(struct ac_llvm_context *ctx,
|
ac_build_ballot(struct ac_llvm_context *ctx,
|
||||||
LLVMValueRef value)
|
LLVMValueRef value)
|
||||||
{
|
{
|
||||||
|
const char *name = HAVE_LLVM >= 0x900 ? "llvm.amdgcn.icmp.i64.i32" : "llvm.amdgcn.icmp.i32";
|
||||||
LLVMValueRef args[3] = {
|
LLVMValueRef args[3] = {
|
||||||
value,
|
value,
|
||||||
ctx->i32_0,
|
ctx->i32_0,
|
||||||
|
@ -454,8 +455,7 @@ ac_build_ballot(struct ac_llvm_context *ctx,
|
||||||
|
|
||||||
args[0] = ac_to_integer(ctx, args[0]);
|
args[0] = ac_to_integer(ctx, args[0]);
|
||||||
|
|
||||||
return ac_build_intrinsic(ctx,
|
return ac_build_intrinsic(ctx, name,
|
||||||
"llvm.amdgcn.icmp.i32",
|
|
||||||
ctx->i64, args, 3,
|
ctx->i64, args, 3,
|
||||||
AC_FUNC_ATTR_NOUNWIND |
|
AC_FUNC_ATTR_NOUNWIND |
|
||||||
AC_FUNC_ATTR_READNONE |
|
AC_FUNC_ATTR_READNONE |
|
||||||
|
@ -465,6 +465,7 @@ ac_build_ballot(struct ac_llvm_context *ctx,
|
||||||
LLVMValueRef ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx,
|
LLVMValueRef ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx,
|
||||||
LLVMValueRef value)
|
LLVMValueRef value)
|
||||||
{
|
{
|
||||||
|
const char *name = HAVE_LLVM >= 0x900 ? "llvm.amdgcn.icmp.i64.i1" : "llvm.amdgcn.icmp.i1";
|
||||||
LLVMValueRef args[3] = {
|
LLVMValueRef args[3] = {
|
||||||
value,
|
value,
|
||||||
ctx->i1false,
|
ctx->i1false,
|
||||||
|
@ -472,7 +473,7 @@ LLVMValueRef ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx,
|
||||||
};
|
};
|
||||||
|
|
||||||
assert(HAVE_LLVM >= 0x0800);
|
assert(HAVE_LLVM >= 0x0800);
|
||||||
return ac_build_intrinsic(ctx, "llvm.amdgcn.icmp.i1", ctx->i64, args, 3,
|
return ac_build_intrinsic(ctx, name, ctx->i64, args, 3,
|
||||||
AC_FUNC_ATTR_NOUNWIND |
|
AC_FUNC_ATTR_NOUNWIND |
|
||||||
AC_FUNC_ATTR_READNONE |
|
AC_FUNC_ATTR_READNONE |
|
||||||
AC_FUNC_ATTR_CONVERGENT);
|
AC_FUNC_ATTR_CONVERGENT);
|
||||||
|
|
Loading…
Reference in New Issue