[OpenCL] Move most _explicit atomics into multiclass; NFC
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 3 Feb 2022 11:09:41 +0000 (11:09 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 3 Feb 2022 11:09:41 +0000 (11:09 +0000)
commitd97a4dfea6c2781494f6fe54ce265128f5c08dc2
tree2abaf39fcfb222ea8cbf264e7c726ec4f558e648
parent413e47ecd4476aec29699bcbd8425461a8821c80
[OpenCL] Move most _explicit atomics into multiclass; NFC

This will simplify future conditionalization for OpenCL 3.0
optionality of atomic features.

The only set of atomic functions not using the multiclass is
atomic_compare_exchange_strong/weak, as these don't fit the common
pattern due to having 2 MemoryOrder arguments.
clang/lib/Sema/OpenCLBuiltins.td