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

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 12:05:48 PST 2024


================
@@ -271,53 +246,70 @@ struct BuiltinTypeDeclBuilder {
     return *this;
   }
 
+  FieldDecl *getResourceHandleField() {
+    FieldDecl *FD = Fields["h"];
----------------
hekota wrote:

Both [] operator and lookup will add the field if it is not already there. I will update it to use "find".

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


More information about the cfe-commits mailing list