[clang] [clang][PAC] Sign and authenticate atomics on __ptrauth types (PR #240090)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 22:38:18 PST 2026
================
@@ -375,6 +375,78 @@ bool AtomicInfo::emitMemSetZeroIfNecessary() const {
return true;
}
+/// Compare-exchange on `__ptrauth`-qualified storage. The caller's expected
+/// value is never signed: that would mint a signature for a caller-chosen
+/// value, a signing oracle wherever the compiler spills it. The comparand is
+/// the object's own signed representation, authenticated and compared as a
+/// plain value. Leaves the builder in \p StoreExpectedBB and returns the plain
+/// value to write back there, with the block that reaches \p ContinueBB on
+/// success.
----------------
ojhunt wrote:
Ok, I'm ignoring the comments for now. LLM generated comments like this are not useful.
Plenty below are completely redundant.
https://github.com/llvm/llvm-project/pull/240090
More information about the cfe-commits
mailing list