[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
Mon Feb 3 10:32:00 PST 2025


================
@@ -15,16 +15,21 @@
 
 #include "clang/AST/APValue.h"
 #include "clang/Basic/DiagnosticLex.h"
+#include "clang/Basic/DiagnosticParse.h"
 #include "clang/Lex/LiteralSupport.h"
 #include "clang/Lex/Preprocessor.h"
 
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/StringSwitch.h"
 
+#include "llvm/Frontend/HLSL/HLSLRootSignature.h"
+
 namespace clang {
 namespace hlsl {
 
+namespace rs = llvm::hlsl::root_signature;
----------------
bogner wrote:

I'm not convinced the brevity this affords later is really worth it, and since this is in a public header it introduces `llvm::hlsl::rs` into far more scopes than just this file, which IMO is just a recipe for confusion.

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


More information about the llvm-branch-commits mailing list