[llvm-branch-commits] [clang] [llvm] [HLSL][DirectX] Add support for `rootsig` as a target environment (PR #156373)

Farzon Lotfi via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 5 08:31:58 PDT 2025


================
@@ -381,6 +381,20 @@ void CGHLSLRuntime::addBuffer(const HLSLBufferDecl *BufDecl) {
   }
 }
 
+void CGHLSLRuntime::addRootSignature(
+    const HLSLRootSignatureDecl *SignatureDecl) {
+  llvm::Module &M = CGM.getModule();
+  Triple T(M.getTargetTriple());
+
+  // If we are not targeting a root signature enviornment then this decl will
+  // be generated when the function decl it is attached is handled
----------------
farzonl wrote:

Comment feels a little vebose would this be the same as saying
```suggestion
  // Generated later with the function decl if not targeting root signature
```

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


More information about the llvm-branch-commits mailing list