[PATCH] D84772: [NewPM][PassInstrument] Add a new kind of before-pass callback that only get called if the pass is not skipped
Yevgeny Rouban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 02:00:59 PDT 2020
yrouban added inline comments.
================
Comment at: llvm/include/llvm/IR/PassInstrumentation.h:76
+ // useful instrumentation that needs it.
using BeforePassFunc = bool(StringRef, Any);
+ using BeforeNonSkippedPassFunc = void(StringRef, Any);
----------------
I would rename //BeforePass// to //ShouldRun//.
then //BeforeNonSkippedPass// to //BeforePass//.
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