diff options
| author | Michal Rostecki <vadorovsky@gmail.com> | 2023-01-16 19:13:52 +0800 |
|---|---|---|
| committer | Michal Rostecki <vadorovsky@gmail.com> | 2023-01-25 10:44:03 +0800 |
| commit | 1cd7dbfbf85599d764c403cb5fee555da16c003a (patch) | |
| tree | 61351af86b24a69da06cbd6c2f0428ef65bb215c /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff | |
| parent | c8e6a9e8b6251bbc8276cb78cabe1998deecbed7 (diff) | |
| download | rust-1cd7dbfbf85599d764c403cb5fee555da16c003a.tar.gz rust-1cd7dbfbf85599d764c403cb5fee555da16c003a.zip | |
Add `target_has_atomic*` symbols if any atomic width is supported
Atomic operations for different widths (8-bit, 16-bit, 32-bit etc.) are guarded by `target_has_atomic = "value"` symbol (i.e. `target_has_atomic = "8"`) (and the other derivatives), but before this change, there was no width-agnostic symbol indicating a general availability of atomic operations. This change introduces: * `target_has_atomic_load_store` symbol when atomics for any integer width are supported by the target. * `target_has_atomic` symbol when also CAS is supported. Fixes #106845 Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
