public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* IPA and LTO
@ 2011-07-13 14:56 AJM-2
  2011-07-13 15:55 ` Diego Novillo
  0 siblings, 1 reply; 8+ messages in thread
From: AJM-2 @ 2011-07-13 14:56 UTC (permalink / raw)
  To: gcc


Hello,

I have written a simple ipa pass and would like to make use of Link time
optimisation.  My pass requires access to the function bodies and ideally I
would like the driver function to be called once at link time and have
access to functions in all of the files as if they were one compilation
unit.  The documentation would indicate that this is possible, but ad hoc
instrumentation of some of the other simple ipa passes seems to suggest
different behaviour.

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.

I am using GCC 4.6.0 with the gold linker plugin (binutils 2.21).

Andrew

-- 
View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052838p32052838.html
Sent from the gcc - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* IPA and LTO
@ 2011-07-13 13:47 AJM-2
  0 siblings, 0 replies; 8+ messages in thread
From: AJM-2 @ 2011-07-13 13:47 UTC (permalink / raw)
  To: gcc


Hello,

I have written a simple ipa pass and would like to make use of Link time
optimisation.  My pass requires access to the function bodies and ideally I
would like the driver function to be called once at link time and have
access to functions in all of the files as if they were one compilation
unit.  The documentation would indicate that this is possible, but ad hoc
instrumentation of some of the other simple ipa passes seems to suggest
different behaviour.

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.

I am using GCC 4.6.0 with the gold linker plugin (binutils 2.21).

Andrew
-- 
View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052768p32052768.html
Sent from the gcc - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-07-13 20:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 14:56 IPA and LTO AJM-2
2011-07-13 15:55 ` Diego Novillo
2011-07-13 16:23   ` AJM-2
2011-07-13 16:35     ` Pierre Vittet
2011-07-13 20:10     ` Richard Guenther
2011-07-13 20:40       ` AJM-2
2011-07-13 22:43         ` Richard Guenther
  -- strict thread matches above, loose matches on Subject: below --
2011-07-13 13:47 AJM-2

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).