One of the problems we have in customization of compilation pipeline is inability to construct
a customized analysis. Currently the only way to customize is to use a global option.
This does not work when per-compilation-context or per-module customization is required
(say, in JIT scenario).
Our current downstream need is to customize MemoryDependenceAnalysis with a different
block scan limit (to make compile-time/run-time tradeoff choice per individual JIT compilation).
Plan is to register analysis normally (through e.g. PassBuilder) and then run:
FAM.setupAnalysis([](MemoryDependenceAnalysis& MDep) { MDep.setDefaultBlockScanLimit(NonDefaultBlockScanLimit); }