[clang] [HLSL] Add `InterlockedExchange` function and resource methods (PR #222161)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 21 20:54:28 PDT 2026


================
@@ -0,0 +1,46 @@
+// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header \
+// RUN:   -triple dxil-pc-shadermodel6.6-library %s -fsyntax-only -verify \
+// RUN:   -verify-ignore-unexpected=note,warning
+
+// Unlike the other interlocked methods, InterlockedExchange declares a single
+// overload per element type because the original value is required. There is
+// therefore no overload set to fail against, so Clang reports the argument
+// mismatch directly instead of 'no matching member function'.
----------------
hekota wrote:

Suggestion - remove this comment. No need to compare this test to the other ones.

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


More information about the cfe-commits mailing list