diff options
| author | Arthur Eubanks <aeubanks@google.com> | 2020-10-30 09:35:32 -0700 |
|---|---|---|
| committer | Arthur Eubanks <aeubanks@google.com> | 2020-11-04 22:27:16 -0800 |
| commit | ae38540042668675dd16c642d850115f217ea59f (patch) | |
| tree | b23a4966741c99d7840d4aaa77dc903baf07f0a8 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | |
| parent | 61e59ebfa645caa3b89baaf51dd26a56625bc39f (diff) | |
[NewPM] Provide method to run all pipeline callbacks, used for -O0
Some targets may add required passes via
TargetMachine::registerPassBuilderCallbacks(). We need to run those even
under -O0. As an example, BPFTargetMachine adds
BPFAbstractMemberAccessPass, a required pass.
This also allows us to clean up BackendUtil.cpp (and out-of-tree Rust
usage of the NPM) by allowing us to share added passes like coroutines
and sanitizers between -O0 and other optimization levels.
Tests are a continuation of those added in
https://reviews.llvm.org/D89083.
In order to prevent TargetMachines from adding unnecessary optimization
passes at -O0, TargetMachine::registerPassBuilderCallbacks() will be
changed to take an OptimizationLevel, but that will be done separately.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D89158
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions
