[PATCH][PM] Add pass run listeners to the pass manager.

Juergen Ributzka juergen at apple.com
Sat Apr 26 16:20:34 PDT 2014


Hi @ll,

this patch 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.

Cheers,
Juergen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PM-Add-pass-run-listeners-to-the-pass-manager.patch
Type: application/octet-stream
Size: 14546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140426/2a939594/attachment.obj>


More information about the llvm-commits mailing list