[llvm] [DirectX] Infrastructure to collect shader flags for each function (PR #112967)
Damyan Pepper via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 15:23:06 PST 2024
================
@@ -120,16 +127,17 @@ class ShaderFlagsAnalysisPrinter
/// This is required because the passes that will depend on this are codegen
/// passes which run through the legacy pass manager.
class ShaderFlagsAnalysisWrapper : public ModulePass {
- DXILModuleShaderFlagsInfo MSFI;
+ std::unique_ptr<DXILModuleShaderFlagsInfo> MSFI;
----------------
damyanp wrote:
Out of interest, did you consider `std::optional` for this?
https://github.com/llvm/llvm-project/pull/112967
More information about the llvm-commits
mailing list