[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

Justin Bogner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 13 00:05:40 PST 2025


================
@@ -162,5 +219,371 @@ std::optional<RootSignatureToken> RootSignatureLexer::PeekNextToken() {
   return Result;
 }
 
+// Parser Definitions
+
+RootSignatureParser::RootSignatureParser(SmallVector<RootElement> &Elements,
+                                         RootSignatureLexer &Lexer,
+                                         DiagnosticsEngine &Diags)
+    : Elements(Elements), Lexer(Lexer), Diags(Diags) {}
+
+bool RootSignatureParser::Parse() {
+  // Handle edge-case of empty RootSignature()
----------------
bogner wrote:

"A completely empty root signature is invalid"

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


More information about the llvm-branch-commits mailing list