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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to