[PATCH] D16614: Use "long long int" when checking whether atomics are supported.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 01:36:44 PST 2016


On Wed, Jan 27, 2016 at 12:45:58AM +0000, Vasileios Kalintiris via llvm-commits wrote:
> Some targets implement 4-byte atomic related functions without calling
> into libatomic, while for 8-byte atomics they need to make a function
> call. By using a long long int we can identify such cases.

Why is this relevant for LLVM? I would call using 64bit atomics on 32bit
architectures a bug waiting to happen.

Joerg


More information about the llvm-commits mailing list