[New PM][PassInstrumentation] Adding PassInstrumentation to the AnalysisManager runs
authorFedor Sergeev <fedor.sergeev@azul.com>
Fri, 21 Sep 2018 22:10:17 +0000 (22:10 +0000)
committerFedor Sergeev <fedor.sergeev@azul.com>
Fri, 21 Sep 2018 22:10:17 +0000 (22:10 +0000)
commit10febb0779ec74ed9090bcc11667567910a807d5
tree20622df00b0814c38af8f03d444ee54e30ced38b
parent5f6d527f091cb20c176817da9b052aa0840de128
[New PM][PassInstrumentation] Adding PassInstrumentation to the AnalysisManager runs

As a prerequisite to time-passes implementation which needs to time both passes
and analyses, adding instrumentation points to the Analysis Manager.
The are two functional differences between Pass and Analysis instrumentation:
  - the latter does not increment pass execution counter
  - it does not provide ability to skip execution of the corresponding analysis

Reviewers: chandlerc, philip.pfaffe
Differential Revision: https://reviews.llvm.org/D51275

llvm-svn: 342778
llvm/include/llvm/IR/PassInstrumentation.h
llvm/include/llvm/IR/PassManager.h
llvm/test/Other/new-pm-lto-defaults.ll
llvm/test/Other/new-pm-thinlto-defaults.ll
llvm/unittests/IR/PassBuilderCallbacksTest.cpp