[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

Tex Riddell via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 16:15:04 PST 2024


================
@@ -4883,6 +4882,12 @@ def HLSLRadians : LangBuiltin<"HLSL_LANG"> {
   let Prototype = "void(...)";
 }
 
+def HLSLBufferUpdateCounter : LangBuiltin<"HLSL_LANG"> {
+  let Spellings = ["__builtin_hlsl_buffer_update_counter"];
+  let Attributes = [NoThrow];
+  let Prototype = "uint32_t(...)";
----------------
tex3d wrote:

Why does this look like it's overloaded?  Shouldn't this have a specific signature like `"uint32_t(__hlsl_resource_t, int)"`?

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


More information about the cfe-commits mailing list