From a52907947d3883c63c37831d7d05ba7ded12ac26 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Tue, 15 Feb 2022 21:50:35 -0500 Subject: [PATCH] Document target_has_atomic --- src/conditional-compilation.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/conditional-compilation.md b/src/conditional-compilation.md index 8085cbfab..a94db5b57 100644 --- a/src/conditional-compilation.md +++ b/src/conditional-compilation.md @@ -191,6 +191,23 @@ Example values: * `"pc"` * `"unknown"` +### `target_has_atomic` + +Key-value option set for each bit width that the target supports +atomic loads, stores, and compare-and-swap operations. + +Notably, this does not mean that the alignment of atomics matches that of equal +bit width integers. + +Possible values: + +* `"8"` +* `"16"` +* `"32"` +* `"64"` +* `"128"` +* `"ptr"` + ### `test` Enabled when compiling the test harness. Done with `rustc` by using the