[clang] Add clang atomic control options and attribute (PR #114841)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 06:31:04 PST 2025
================
@@ -1107,6 +1113,66 @@ inline void FPOptions::applyChanges(FPOptionsOverride FPO) {
*this = FPO.applyOverrides(*this);
}
+// The three atomic code-generation options.
+// The canonical (positive) names are:
+// "remote_memory", "fine_grained_memory", and "ignore_denormal_mode".
+// In attribute or command-line parsing, a token prefixed with "no_" inverts its
+// value.
+enum class AtomicOptionKind {
+ RemoteMemory, // true means remote memory is enabled.
----------------
erichkeane wrote:
nit: just remove 'true means' from these three comments, it is implied. Perhaps reform to:
`enable remote memory.`
`enable fine-grained memory.`
`ignore floating-point denormals.`
https://github.com/llvm/llvm-project/pull/114841
More information about the cfe-commits
mailing list