gallivm: fix issue with AtomicCmpXchg wrapper on llvm 3.5-3.8
authorRoland Scheidegger <sroland@vmware.com>
Tue, 30 Jul 2019 21:35:49 +0000 (23:35 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 2 Aug 2019 18:16:17 +0000 (20:16 +0200)
commit74baeacafc7c2e9bae0f4db9651b0c664d33f5ac
tree8effb31400a23b58636b43916fa3fb023f42f720
parentdcf9d91a80ee76f46e162afef9bd1b2ddb53ecc3
gallivm: fix issue with AtomicCmpXchg wrapper on llvm 3.5-3.8

These versions still need wrapper but already have both success and
failure ordering.
(Compile tested on llvm 3.3, 3.7, 3.8.)

v2: don't duplicate whole function (suggested by Brian).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111102

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp