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

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 13:56:01 PDT 2024


================
@@ -528,8 +719,13 @@ void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
                     ResourceKind::TypedBuffer, /*IsROV=*/false,
                     /*RawBuffer=*/true)
         .addArraySubscriptOperators()
+        .addIncrementCounterMethod(*SemaPtr)
----------------
llvm-beanz wrote:

Should we make the BuiltinTypeDeclBuilder store a reference to Sema to avoid needing to pass these pointers around?

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


More information about the cfe-commits mailing list