[llvm-branch-commits] [Clang] Make NewPM switch respect shouldDefaultToNewPM (PR #214571)
Alexis Engelke via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 6 22:54:04 PDT 2026
aengelke wrote:
Duplicating from #214572: I'd still prefer to have some (non-virtual) function in TargetMachine that just "compiles this module", which internally respects shouldDefaultToNewPM and a new cl::opt that can be used to override the decision. I think the driver also supports setting LLVM command line options (e.g. -mllvm -enable-codegen-newpm).
I don't think front-ends should meddle this deep with codegen internals and this seems to be a good opportunity to add a proper abstraction for simply compiling a module into an object.
https://github.com/llvm/llvm-project/pull/214571
More information about the llvm-branch-commits
mailing list