ldc
ldc copied to clipboard
Move to use new sanitizer passes
see #3961
I chose to enable them from LLVM13+ partly because that's when the old ones were deprecated and partly to ensure that the CI tests them. That can be easily changed if desired.
Still to go is replacement for createPGOIndirectCallPromotionLegacyPass
.
The sanitizers are probably just a minor aspect of switching to the 'new' pass manager (https://llvm.org/docs/NewPassManager.html). We also need to port our passes (https://forum.dlang.org/thread/[email protected], https://llvm.org/docs/WritingAnLLVMNewPMPass.html) before we can use it.
I think it is better to make new/old passmanager selectable through a runtime option (commandflag) in the transition period. Easier to investigate bugs that way.
superseded by https://github.com/ldc-developers/ldc/pull/4105