MachO use generic code to detect atomic support.
authorTim Northover <tnorthover@apple.com>
Tue, 4 Apr 2023 10:55:19 +0000 (11:55 +0100)
committerTim Northover <tnorthover@apple.com>
Tue, 4 Apr 2023 12:44:45 +0000 (13:44 +0100)
commitd3aed4f401fa35ea986d3967c529f4d2b24e2bb6
tree8b8a751b7c172a6223d77103d0bc00f6ba521d8b
parentf2563bc111ba8e0a0e23d8fa312b055cdc353845
MachO use generic code to detect atomic support.

The default code can detect what width of atomic instructions are supported
based on the targeted architecture profile, version etc so there's no need to
hard-code 64 on Darwin targets (especially as it's wrong in most M-class
cases).
clang/lib/Basic/Targets/ARM.cpp
clang/test/CodeGen/atomic-arm.c [new file with mode: 0644]