From 2276f8f064ea0a67817d4deb7d553177575ccf4c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 13 Aug 2018 23:59:28 -0400 Subject: ac: add ac_build_s_barrier Reviewed-by: Samuel Pitoiset --- src/amd/common/ac_llvm_build.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/amd/common/ac_llvm_build.c') diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 87e36df6431..c89bdf49faf 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -348,6 +348,12 @@ ac_build_phi(struct ac_llvm_context *ctx, LLVMTypeRef type, return phi; } +void ac_build_s_barrier(struct ac_llvm_context *ctx) +{ + ac_build_intrinsic(ctx, "llvm.amdgcn.s.barrier", ctx->voidt, NULL, + 0, AC_FUNC_ATTR_CONVERGENT); +} + /* Prevent optimizations (at least of memory accesses) across the current * point in the program by emitting empty inline assembly that is marked as * having side effects. -- cgit v1.2.3