TODO
- PrintIRInstrumentation and TimePassesHandler would be using this new callback.
- "Running pass" logging will also be moved to use this callback.
Paths
| Differential D84772
[NewPM][PassInstrument] Add a new kind of before-pass callback that only get called if the pass is not skipped ClosedPublic Authored by ychen on Jul 28 2020, 10:33 AM.
Details Summary TODO
Diff Detail
Event Timelineychen added a child revision: D84773: [NewPM][PassInstrument] Make PrintIR and TimePasses to use before-pass-run callback.
Comment Actions ahh, naming is hard. I was thinking of required to run. Yes, it could also be required pass which is misleading. I'll go with BeforePassIsNotSkippedFunc which is not ambiguous. Comment Actions What about unit tests?
This revision is now accepted and ready to land.Jul 28 2020, 4:04 PM This revision was landed with ongoing or failed builds.Jul 29 2020, 8:27 AM Closed by commit rG5cf0c2e67b80: [NewPM][PassInstrument] Add a new kind of before-pass callback that only get… (authored by Yuanfang Chen <yuanfang.chen@sony.com>). · Explain Why This revision was automatically updated to reflect the committed changes. ychen marked an inline comment as not done.
Revision Contents
Diff 281607 llvm/include/llvm/IR/PassInstrumentation.h
llvm/unittests/IR/PassBuilderCallbacksTest.cpp
|
Rather than this sentence, I think there should be a comment that we call all BeforePassFuncs to determine if the pass should run or not.