diff options
| author | Juergen Ributzka <juergen@apple.com> | 2014-04-28 18:19:25 +0000 |
|---|---|---|
| committer | Juergen Ributzka <juergen@apple.com> | 2014-04-28 18:19:25 +0000 |
| commit | 4e0cc51d7974029aa2bbffce08e2c878f529f98a (patch) | |
| tree | e4a77f03d3c3cce1cf840ca93491a4d4244d2222 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | c430d3ffcde596bad10e1d089cfd15ba8d915204 (diff) | |
| download | llvm-4e0cc51d7974029aa2bbffce08e2c878f529f98a.tar.gz llvm-4e0cc51d7974029aa2bbffce08e2c878f529f98a.tar.bz2 llvm-4e0cc51d7974029aa2bbffce08e2c878f529f98a.tar.xz | |
[PM] Add pass run listeners to the pass manager.
This commit provides the necessary C/C++ APIs and infastructure to enable fine-
grain progress report and safe suspension points after each pass in the pass
manager.
Clients can provide a callback function to the pass manager to call after each
pass. This can be used in a variety of ways (progress report, dumping of IR
between passes, safe suspension of threads, etc).
The run listener list is maintained in the LLVMContext, which allows a multi-
threaded client to be only informed for it's own thread. This of course assumes
that the client created a LLVMContext for each thread.
This fixes <rdar://problem/16728690>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
