ac/nir: fix intrinsic names for atomic operations with LLVM 9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 8 Apr 2019 09:39:07 +0000 (11:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 8 Apr 2019 11:16:50 +0000 (13:16 +0200)
commit27b8f3ecc318a5773e1f189bbfb65f43ad5c2aa0
tree9f416c4b3b28034158db95404c9c4973804e15b4
parent4209a27c61ee4bda2efb63e080bde01545edb2b5
ac/nir: fix intrinsic names for atomic operations with LLVM 9+

This fixes the following LLVM error when using RADV_DEBUG=checkir:
Intrinsic name not mangled correctly for type arguments! Should be: llvm.amdgcn.buffer.atomic.add.i32
i32 (i32, <4 x i32>, i32, i32, i1)* @llvm.amdgcn.buffer.atomic.add

The cmpswap operation still uses the old intrinsic.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c