[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

Justin Bogner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 3 11:40:19 PDT 2025


================
@@ -29,6 +29,9 @@ using namespace llvm::hlsl::rootsig;
 
 namespace {
 
+static const llvm::dxbc::RootSignatureVersion DefVersion =
+    llvm::dxbc::RootSignatureVersion::V1_1;
----------------
bogner wrote:

I don't think this global makes the tests clearer. Maybe throw in a `using llvm::dxbc::RootSignatureVersion::V1_1` and just pass `V1_1` to the Parser constructors if you want to be concise?

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


More information about the llvm-branch-commits mailing list