[llvm-branch-commits] [clang] [HLSL] Implement default constant buffer `$Globals` (PR #125807)

Sarah Spall via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 11 10:49:09 PST 2025


================
@@ -5072,6 +5080,20 @@ class HLSLBufferDecl final : public NamedDecl, public DeclContext {
     return static_cast<HLSLBufferDecl *>(const_cast<DeclContext *>(DC));
   }
 
+  // Iterator for the buffer decls. Concatenates the list of decls parented
----------------
spall wrote:

I just want to clarify what this comment says. The children decls of this hlslbufferdecl are concatenated with the list of default buffer decls? Does the order of this matter?

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


More information about the llvm-branch-commits mailing list