[llvm] [DirectX] Add DXIL_MODULE_FLAG for ShaderFlags. (PR #83217)
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 07:29:10 PDT 2024
================
@@ -53,21 +53,24 @@ class DXContainerGlobals : public llvm::ModulePass {
bool DXContainerGlobals::runOnModule(Module &M) {
llvm::SmallVector<GlobalValue *> Globals;
- Globals.push_back(getShaderFlags(M));
+ Globals.push_back(getFeatureFlags(M));
Globals.push_back(computeShaderHash(M));
appendToCompilerUsed(M, Globals);
return true;
}
-GlobalVariable *DXContainerGlobals::getShaderFlags(Module &M) {
- const uint64_t Flags =
- (uint64_t)(getAnalysis<ShaderFlagsAnalysisWrapper>().getShaderFlags());
+GlobalVariable *DXContainerGlobals::getFeatureFlags(Module &M) {
+ const uint64_t FeatureFlags =
+ (uint64_t)(getAnalysis<ShaderFlagsAnalysisWrapper>()
----------------
python3kgae wrote:
Updated.
https://github.com/llvm/llvm-project/pull/83217
More information about the llvm-commits
mailing list