[clang] Add clang atomic control options and attribute (PR #114841)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 09:50:52 PST 2025
================
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope.
a = b[i] * c[i] + e;
}
+Extensions for controlling atomic code generation
+=================================================
+
+The ``[[clang::atomic]]`` statement attribute enables users to control how
+atomic operations are lowered in LLVM IR by conveying additional metadata to
+the backend. The primary goal is to allow users to specify certain options,
+like whether atomic operations may be performed on specific types of memory or
----------------
hubert-reinterpretcast wrote:
whether atomic operations may be performed on specific types of memory
=>
whether the affected atomic operations might be used with specific types of memory
https://github.com/llvm/llvm-project/pull/114841
More information about the cfe-commits
mailing list