This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fold acc_on_device
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: Bernd Schmidt <bschmidt at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 30 Sep 2015 10:07:59 +0200
- Subject: Re: Fold acc_on_device
- Authentication-results: sourceware.org; auth=none
- References: <560AD6A6 dot 4050109 at acm dot org>
On Tue, Sep 29, 2015 at 8:21 PM, Nathan Sidwell <nathan@acm.org> wrote:
> This patch folds acc_on_device as a regular builtin, but postponed until we
> know which compiler we're in. As suggested by Bernd, we use the existing
> builtin folding machinery.
>
> Trunk is still using the older PTX runtime scheme (Thomas is working on
> that), so the only change there is in the host-side libgomp piece.
>
> Ok for trunk?
Please don't add any new GENERIC based builtin folders. Instead add to
gimple-fold.c:gimple_fold_builtin
Otherwise you're just generating more work for us who move foldings from
builtins.c to gimple-fold.c.
Thanks,
Richard.
> nathan