[LLVMdev] how often doInitialization in Looppass is called?

Yuanfang Chen cyfmxc at gmail.com
Wed Nov 16 11:48:32 PST 2011


Hi all

I want my Looppass add some global variables(only once) before processing
each loops(many times)in the module. Currently I add all global variables
in the doInitialization of Looppass. It seems that doInitialization is
called for each function of the module. Is it so?  How to make my pass
processing globals only once?

yuanfang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111116/0b868cf8/attachment.html>


More information about the llvm-dev mailing list