Since opt no longer supports to run default (O0/O1/O2/O3/Os/Oz)
pipelines using the legacy PM, there are no in-tree uses of
TargetMachine::adjustPassManager remaining. This patch removes the
no longer used adjustPassManager functions.
Details
- Reviewers
aeubanks jholewinski - Commits
- rG99c47d9e3113: Remove TargetMachine::adjustPassManager
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
could I have a couple days until submitting this? we have one more internal usage of this
llvm/docs/NewPassManager.rst | ||
---|---|---|
526 | Readers might think that they have to add code to do this. It was already mentioned above that PassBuilder automatically does this, but I think reiterating that this is done automatically would be good |
Sure. No hurry from my side really.
llvm/docs/NewPassManager.rst | ||
---|---|---|
526 | I guess the important thing here is to guide anyone that hasn't migrated yet, and suddenly realize that adjustPassManager is gone, that whatever was in adjustPassManager() needs to be added in registerPassBuilderCallbacks() instead. Maybe I just complicated things by trying to also mention that we now have removed the old adjustPassManager function. It was a bit weird to reference a function that no longer exists. One idea is to more or less restore the old text here, but add a note that adjustPassManager has been removed from the code base. Anyway, I'll try to rephrase this. |
Readers might think that they have to add code to do this. It was already mentioned above that PassBuilder automatically does this, but I think reiterating that this is done automatically would be good