[llvm] [DirectX] use DXILMetadataAnalysis to build PSVRuntimeInfo (PR #107101)
S. Bharadwaj Yadavalli via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 09:12:33 PDT 2024
================
@@ -149,15 +151,27 @@ void DXContainerGlobals::addPipelineStateValidationInfo(
PSV.BaseData.ShaderStage =
static_cast<uint8_t>(TT.getEnvironment() - Triple::Pixel);
+ dxil::ModuleMetadataInfo &MMI =
+ getAnalysis<DXILMetadataAnalysisWrapperPass>().getModuleMetadata();
+ assert(MMI.EntryPropertyVec.size() != 0 ||
+ TT.getEnvironment() == Triple::Library);
----------------
bharadwajy wrote:
Can the shader stage from `MMI` viz., `MMI.ShaderStage` be used instead of once again getting the triple from module and getting the shader stage from the triple throughout this function?
https://github.com/llvm/llvm-project/pull/107101
More information about the llvm-commits
mailing list