[clang] [llvm] Add InterlockedAdd resource methods (PR #208128)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 15:58:16 PDT 2026
================
@@ -1635,6 +1635,38 @@ BuiltinTypeDeclBuilder::addByteAddressBufferStoreMethods() {
return *this;
}
+BuiltinTypeDeclBuilder &
+BuiltinTypeDeclBuilder::addByteAddressBufferInterlockedMethods() {
+ assert(!Record->isCompleteDefinition() && "record is already complete");
+ ASTContext &AST = SemaRef.getASTContext();
+
+ // Each entry declares two overloads (with and without an out original-value
+ // parameter). Adding a new atomic here only requires a new line — the shared
+ // helper takes care of the composition.
----------------
farzonl wrote:
```suggestion
This is a helper that declares two overloads with and without an out original-value
```
https://github.com/llvm/llvm-project/pull/208128
More information about the cfe-commits
mailing list