[PATCH] D84772: [NewPM][PassInstrument] Add a new kind of before-pass callback that only get called if the pass is not skipped
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 11:03:33 PDT 2020
aeubanks added inline comments.
================
Comment at: llvm/include/llvm/IR/PassInstrumentation.h:77
using BeforePassFunc = bool(StringRef, Any);
+ using BeforePassRunFunc = void(StringRef, Any);
using AfterPassFunc = void(StringRef, Any);
----------------
asbirlea wrote:
> Perhaps `BeforePassRequiredFunc` (or similar) is more informative that these callbacks are run for required passes?
"required" is sort of misleading, these callbacks will run on passes that aren't "required" as long as nothing says the pass should be skipped.
`BeforePassIsNotSkippedFunc`? a little verbose
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84772/new/
https://reviews.llvm.org/D84772
More information about the llvm-commits
mailing list