From: Jakub Jelinek <jakub@redhat.com>
To: Ilya Verbin <iverbin@gmail.com>
Cc: Richard Biener <richard.guenther@gmail.com>,
Uday Khedker <uday@cse.iitb.ac.in>,
hubicka@ucw.cz, rth@redhat.com, kirill.yukhin@gmail.com,
"Michael V. Zolotukhin" <michael.v.zolotukhin@gmail.com>,
gcc@gcc.gnu.org
Subject: Re: Questions about LTO infrastructure and pragma omp target
Date: Fri, 23 Aug 2013 14:38:00 -0000 [thread overview]
Message-ID: <20130823111731.GK1814@tucnak.redhat.com> (raw)
In-Reply-To: <20130823105527.GA6976@msticlxl57.ims.intel.com>
On Fri, Aug 23, 2013 at 02:55:27PM +0400, Ilya Verbin wrote:
> I'm trying to implement the approach with modified lto-wrapper.
> Suppose we have a bytecode of the routine foo, streamed during ompexp pass into some section, say .gnu.omptarget_foo.
> In function lto.c:do_whole_program_analysis() an extra partition should be created, that will contain bytecode from .gnu.omptarget_foo, right?
> As far as I understood, in addition to the bytecode of foo, we should also stream extra symtab_nodes, and read them somewhere in lto-cgraph.c:input_symtab().
> This means we should maintain 2 symtabs inside WPA stage - original for host and new for target?
I don't think we should stream into more than one target section.
There should be just .gnu.target_lto section (or whatever other suitable
name) and should stream into it:
1) all functions and variables with "omp declare target" attribute
2) the outlined bodies of #pragma omp target turned into *.ompfn functions
3) all the types, symtab etc. needed for that
If compiling with -flto, you'll also get everything from the CU streamed
into the normal LTO section, otherwise you'll get assembly for the host
variables/functions/etc.
Then the question is what the plugin should perform with these sections,
whether it will compile each input .gnu.target_lto section hunk separately
(as in non-LTO mode), or with -flto also LTO them together.
Jakub
next prev parent reply other threads:[~2013-08-23 11:19 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-15 13:44 Ilya Verbin
2013-08-15 15:00 ` Jakub Jelinek
2013-08-15 19:19 ` Richard Biener
2013-08-23 13:15 ` Ilya Verbin
2013-08-23 14:38 ` Jakub Jelinek [this message]
2013-08-28 9:59 ` Basile Starynkevitch
2013-08-23 15:05 ` Richard Biener
2013-08-23 15:06 ` Jakub Jelinek
2013-08-25 22:36 ` Ilya Verbin
2013-08-26 7:32 ` Jakub Jelinek
2013-09-03 14:00 ` Michael V. Zolotukhin
2013-09-03 14:19 ` Jakub Jelinek
2013-09-03 15:18 ` Michael V. Zolotukhin
2013-09-03 17:39 ` Thomas Schwinge
2013-09-03 18:30 ` Michael V. Zolotukhin
2013-09-03 18:54 ` Jakub Jelinek
2013-09-03 19:09 ` Michael V. Zolotukhin
2013-09-16 17:14 ` Ilya Verbin
2013-09-17 8:12 ` Richard Biener
2013-09-17 11:31 ` Ilya Verbin
2013-09-17 11:54 ` Jakub Jelinek
2013-09-17 11:56 ` Richard Biener
2013-09-17 12:15 ` Jakub Jelinek
2013-09-19 10:45 ` Ilya Verbin
2013-09-19 10:50 ` Jakub Jelinek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130823111731.GK1814@tucnak.redhat.com \
--to=jakub@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=iverbin@gmail.com \
--cc=kirill.yukhin@gmail.com \
--cc=michael.v.zolotukhin@gmail.com \
--cc=richard.guenther@gmail.com \
--cc=rth@redhat.com \
--cc=uday@cse.iitb.ac.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).