This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Finalizer after pass?


Paulo J. Matos wrote on 02/28/07 11:07:

Is there a way to install a finalizing function? (to be called after
all functions in the pass have been processed)
Or to know if the current function being processed is the last one?
(maybe if I know the number of times my pass will be called!)

Perhaps it's easier to implement your feature as an IPA pass. For IPA passes, you are not called with a specific function. Instead, you get to traverse the callgraph yourself. See passes like ipa-cp.c for details.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]