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: IPA and LTO


On Wed, Jul 13, 2011 at 10:22, AJM-2 <mcpherson.aj@gmail.com> wrote:

> My question is whether LTO can be used in this way, to have a simple ipa
> pass called once at link time with access to the function bodies, and if so
> how is this achieved? Âcgraph_function_body_availability seems to only be
> half the story.

Yes, it can.  You seem to be describing what GCC calls "simple IPA
pass".  These are passes that cannot run in partitioned LTO mode, as
they require the function bodies to operate.  Look for passes like
pass_ipa_function_and_variable_visibility for an example of a simple
IPA pass.


Diego.


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