radeonsi: use llvm.amdgcn.s.barrier instead of llvm.AMDGPU.barrier.local
The new name for the intrinsic was introduced in LLVM r258558. v2: use ternary operator instead of preprocessor Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1) Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -3465,7 +3465,9 @@ static void si_llvm_emit_barrier(const struct lp_build_tgsi_action *action,
|
|||||||
{
|
{
|
||||||
struct gallivm_state *gallivm = bld_base->base.gallivm;
|
struct gallivm_state *gallivm = bld_base->base.gallivm;
|
||||||
|
|
||||||
lp_build_intrinsic(gallivm->builder, "llvm.AMDGPU.barrier.local",
|
lp_build_intrinsic(gallivm->builder,
|
||||||
|
HAVE_LLVM >= 0x0309 ? "llvm.amdgcn.s.barrier"
|
||||||
|
: "llvm.AMDGPU.barrier.local",
|
||||||
LLVMVoidTypeInContext(gallivm->context), NULL, 0,
|
LLVMVoidTypeInContext(gallivm->context), NULL, 0,
|
||||||
LLVMNoUnwindAttribute);
|
LLVMNoUnwindAttribute);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user