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

Eric Christopher echristo at gmail.com
Wed Nov 14 14:49:22 PST 2012


Thought Evan was saying something about a resetPass call maybe instead of
the doInit/run/doFini scheme? I'm not sure if there have been offline talks
in addition.

-eric


On Wed, Nov 14, 2012 at 2:40 PM, Pedro Artigas <partigas at apple.com> wrote:

> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121114/8d2771d6/attachment.html>


More information about the llvm-commits mailing list