diff options
| author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-07-10 10:57:55 +0000 |
|---|---|---|
| committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-07-10 10:57:55 +0000 |
| commit | 730f2f9bb622a4b72231628239fe607d26224a07 (patch) | |
| tree | a7c21e1550bda5b1293f5454daca7ac2d321fd37 /llvm/lib/CodeGen | |
| parent | fb3210aa057fb3f396289fdb110b9f80625c9eef (diff) | |
| download | bcm5719-llvm-730f2f9bb622a4b72231628239fe607d26224a07.tar.gz bcm5719-llvm-730f2f9bb622a4b72231628239fe607d26224a07.zip | |
[PM] Enable registration of out-of-tree passes with PassBuilder
Summary:
This patch adds a callback registration API to the PassBuilder,
enabling registering out-of-tree passes with it.
Through the Callback API, callers may register callbacks with the
various stages at which passes are added into pass managers, including
parsing of a pass pipeline as well as at extension points within the
default -O pipelines.
Registering utilities like `require<>` and `invalidate<>` needs to be
handled manually by the caller, but a helper is provided.
Additionally, adding passes at pipeline extension points is exposed
through the opt tool. This patch adds a `-passes-ep-X` commandline
option for every extension point X, which opt parses into pipelines
inserted into that extension point.
Reviewers: chandlerc
Reviewed By: chandlerc
Subscribers: lksbhm, grosser, davide, mehdi_amini, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D33464
llvm-svn: 307532
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions

