[llvm] [DXIL] Add support for root signature flag element in DXContainer (PR #123147)
    Justin Bogner via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Feb 12 21:09:06 PST 2025
    
    
  
================
@@ -144,6 +150,39 @@ void DXContainerGlobals::addSignature(Module &M,
   Globals.emplace_back(buildSignature(M, OutputSig, "dx.osg1", "OSG1"));
 }
 
+void DXContainerGlobals::addRootSignature(Module &M,
+                                          SmallVector<GlobalValue *> &Globals) {
+
+  dxil::ModuleMetadataInfo &MMI =
+      getAnalysis<DXILMetadataAnalysisWrapperPass>().getModuleMetadata();
----------------
bogner wrote:
Not something that needs to be changed for this PR, but accessing analysis results here shows that it's a bit concerning how DXContainer is designed - we'll need to do a lot of work to port it to the new pass manager.
https://github.com/llvm/llvm-project/pull/123147
    
    
More information about the llvm-commits
mailing list