[llvm-commits] Patch: add doInitialization and doFinalization to module passes

Pedro Artigas partigas at apple.com
Wed Nov 14 14:40:50 PST 2012


Hello All,

Yesterday's e-mail caused some concerns, therefore we improved the patch to re-write all in-tree projects to use the doInitialization/run/doFinalization scheme for module passes just like it is done for function passes.

Right now no passes follow this model but the skeleton should make it clear how the model operates and how to adapt module passes to follow the model, the idea is that a pass would do basic immutable allocation and variable set up in the constructor, would do minimal variable set up on the doInitialization and doFinalization would free all the extra memory allocated to store the state of the prior module, bringing the module pass to the state right after construction so it can be reused for a future module.

Hope this is clear now,

Thanks

Pedro

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121114/ad1265c4/attachment.txt>


More information about the llvm-commits mailing list