From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: Harald Anlauf <anlauf@gmx.de>
Cc: rep.dot.nop@gmail.com, fortran <fortran@gcc.gnu.org>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Fortran: annotations for DO CONCURRENT loops [PR113305]
Date: Fri, 12 Jan 2024 10:44:32 +0100 [thread overview]
Message-ID: <20240112104432.3466b1e9@nbbrfq.loc> (raw)
In-Reply-To: <trinity-80e5478a-8a63-4954-a58d-6a37b29fc223-1704925462311@3c-app-gmx-bap04>
On Wed, 10 Jan 2024 23:24:22 +0100
Harald Anlauf <anlauf@gmx.de> wrote:
> diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h
> index 82f388c05f8..88502c1e3f0 100644
> --- a/gcc/fortran/gfortran.h
> +++ b/gcc/fortran/gfortran.h
> @@ -2926,6 +2926,10 @@ gfc_dt;
> typedef struct gfc_forall_iterator
> {
> gfc_expr *var, *start, *end, *stride;
> + unsigned short unroll;
> + bool ivdep;
> + bool vector;
> + bool novector;
> struct gfc_forall_iterator *next;
> }
[]
> diff --git a/gcc/fortran/trans-stmt.cc b/gcc/fortran/trans-stmt.cc
> index a718dce237f..59a9cf99f9b 100644
> --- a/gcc/fortran/trans-stmt.cc
> +++ b/gcc/fortran/trans-stmt.cc
> @@ -41,6 +41,10 @@ typedef struct iter_info
> tree start;
> tree end;
> tree step;
> + unsigned short unroll;
> + bool ivdep;
> + bool vector;
> + bool novector;
> struct iter_info *next;
> }
Given that we already have in gfortran.h
> typedef struct
> {
> gfc_expr *var, *start, *end, *step;
> unsigned short unroll;
> bool ivdep;
> bool vector;
> bool novector;
> }
> gfc_iterator;
would it make sense to break out these loop annotation flags into its
own let's say struct gfc_iterator_flags and use pointers to that flags
instead?
LGTM otherwise.
Thanks for the patch!
next prev parent reply other threads:[~2024-01-12 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 22:24 Harald Anlauf
2024-01-12 9:44 ` Bernhard Reutner-Fischer [this message]
2024-01-12 19:23 ` [PATCH, v2] " Harald Anlauf
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=20240112104432.3466b1e9@nbbrfq.loc \
--to=rep.dot.nop@gmail.com \
--cc=anlauf@gmx.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/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).