[clang] Add clang atomic control options and attribute (PR #114841)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 29 15:29:48 PST 2025


================
@@ -305,6 +305,13 @@ def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
 def err_drv_invalid_value_with_suggestion : Error<
     "invalid value '%1' in '%0', expected one of: %2">;
 def err_drv_alignment_not_power_of_two : Error<"alignment is not a power of 2 in '%0'">;
+
+def err_drv_invalid_atomic_option : Error<
+  "invalid argument '%0' to -fatomic=; must be a "
+  "comma-separated list of key:value pairs, where allowed keys are "
+  "'no_fine_grained_memory', 'no_remote_memory', 'ignore_denormal_mode', "
+  "and values are 'on' or 'off', and each key must be unique">;
----------------
Artem-B wrote:

Another naming nit. Could the value be generalized as a bool-ish and accept true/false/0/1 as well?

https://github.com/llvm/llvm-project/pull/114841


More information about the cfe-commits mailing list