how often doInitialization in Looppass is called?

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