Displaying 2 results from an estimated 2 matches for "flatatomicpat".
2016 Mar 28
0
RFC: atomic operations on SI+
...lt;0x31, 0x41>, "flat_atomic_cmpswap", VGPR_32, VReg_64
> + flat<0x31, 0x41>, "flat_atomic_cmpswap", VReg_64
> >;
> defm FLAT_ATOMIC_ADD : FLAT_ATOMIC <
> flat<0x32, 0x42>, "flat_atomic_add", VGPR_32
> @@ -322,6 +322,7 @@ def : FlatAtomicPat <FLAT_ATOMIC_SMIN_RTN, atomic_min_global, i32>;
> def : FlatAtomicPat <FLAT_ATOMIC_UMIN_RTN, atomic_umin_global, i32>;
> def : FlatAtomicPat <FLAT_ATOMIC_OR_RTN, atomic_or_global, i32>;
> def : FlatAtomicPat <FLAT_ATOMIC_SWAP_RTN, atomic_swap_global, i32>;
> +...
2016 Mar 25
2
RFC: atomic operations on SI+
Hi Tom, Matt,
I'm working on a project that needs few coherent atomic operations (HSA
mode: load, store, compare-and-swap) for std::atomic_uint in HCC.
the attached patch implements atomic compare and swap for SI+
(untested). I tried to stay within what was available, but there are
few issues that I was unsure how to address:
1.) it currently uses v2i32 for both input and output. This