[clang] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 07:12:40 PDT 2025
================
@@ -5178,6 +5179,29 @@ class HLSLBufferDecl final : public NamedDecl, public DeclContext {
friend class ASTDeclWriter;
};
+class HLSLRootSignatureDecl final : public NamedDecl {
+ ArrayRef<llvm::hlsl::rootsig::RootElement> RootElements;
----------------
llvm-beanz wrote:
This should probably be a `TrailingObjects` instead of an `ArrayRef` so that it is allocated with the Decl (and in adjacent cache-friendly memory).
https://github.com/llvm/llvm-project/pull/137690
More information about the cfe-commits
mailing list