Introduce __hip_atomic_load, __hip_atomic_store and __hip_atomic_compare_exchange_weak
builtins in HIP.
should have atomic, syncscope and monotonic. same as below
the signature of __hip_atomic_compare_exchange_weak is the same as __hip_atomic_compare_exchange_strong and should be called with the same arguments. It should end up with one atomic cmpxchg instruction in IR. same as below
should use predefined macros for memory order, e.g. __ATOMIC_RELAXED. same as below
signature is wrong. see above comments.