[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-16 Thread Tarun Prabhu via llvm-branch-commits
@@ -644,6 +648,12 @@ class CompilerInstance : public ModuleLoader { /// the compiler instance takes ownership of \p Value. void setCodeCompletionConsumer(CodeCompleteConsumer *Value); + /// } + /// @name Back-end Pass Plugins + /// @{ + + std::vector &getPassPlugins()

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-16 Thread Tarun Prabhu via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-16 Thread Tarun Prabhu via llvm-branch-commits
@@ -131,6 +132,9 @@ class CompilerInstance : public ModuleLoader { /// The semantic analysis object. std::unique_ptr TheSema; + /// Back-end pass plugins. + std::vector PassPlugins; tarunprabhu wrote: Why does the CompilerInstance not own the loaded `ll

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-16 Thread Tarun Prabhu via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-16 Thread Tarun Prabhu via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +