[llvm] [Backend] Add clearSubtargetMap API for TargetMachine. (PR #112383)

weiwei chen via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 12:41:14 PDT 2024


weiweichen wrote:

> > They are mutable and being modified mostly in the same pattern [here](https://github.com/llvm/llvm-project/blob/b0a25468faca32d9db4d35e56fb120ed4eaeec09/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp#L467). Is there a plan to change that to make TargetMachine fully stateless as well?
> 
> No, I'm not aware of one. The other problematic piece is TargetOptions

Oof, the change in the mentioned PR won't solve the parallel compilation memory issue then 😭 

https://github.com/llvm/llvm-project/pull/112383


More information about the llvm-commits mailing list