This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING: Fwd: Re: [patch] implement Cilk Plus simd loops on trunk
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- Date: Fri, 15 Nov 2013 22:49:50 +0100
- Subject: Re: PING: Fwd: Re: [patch] implement Cilk Plus simd loops on trunk
- Authentication-results: sourceware.org; auth=none
- References: <52618287 dot 8010705 at redhat dot com> <52740D59 dot 50104 at redhat dot com> <5284FF25 dot 7020401 at redhat dot com> <20131114170553 dot GD27813 at tucnak dot zalov dot cz> <52850AB6 dot 2070408 at redhat dot com> <20131114180147 dot GE27813 at tucnak dot zalov dot cz> <5285790E dot 9050000 at redhat dot com> <20131115073757 dot GA892 at tucnak dot redhat dot com> <52863CB4 dot 50900 at redhat dot com> <528695CD dot 5080705 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
> --- a/gcc/gimple.h
> +++ b/gcc/gimple.h
> @@ -102,12 +102,13 @@ enum gf_mask {
> GF_CALL_ALLOCA_FOR_VAR = 1 << 5,
> GF_CALL_INTERNAL = 1 << 6,
> GF_OMP_PARALLEL_COMBINED = 1 << 0,
> - GF_OMP_FOR_KIND_MASK = 3 << 0,
> + GF_OMP_FOR_KIND_MASK = 7,
> GF_OMP_FOR_KIND_FOR = 0 << 0,
> - GF_OMP_FOR_KIND_SIMD = 1 << 0,
> - GF_OMP_FOR_KIND_DISTRIBUTE = 2 << 0,
> - GF_OMP_FOR_COMBINED = 1 << 2,
> - GF_OMP_FOR_COMBINED_INTO = 1 << 3,
> + GF_OMP_FOR_KIND_SIMD = 2 << 0,
> + GF_OMP_FOR_KIND_CILKSIMD = 3 << 0,
> + GF_OMP_FOR_KIND_DISTRIBUTE = 1 << 2,
> + GF_OMP_FOR_COMBINED = 1 << 3,
> + GF_OMP_FOR_COMBINED_INTO = 1 << 4,
Why all this, and not keep everything but
GF_OMP_FOR_KIND_SIMD and GF_OMP_FOR_KIND_DISTRIBUTE
as they were, and just use:
GF_OMP_FOR_KIND_DISTIRBUTE = 1 << 0,
GF_OMP_FOR_KIND_SIMD = 2 << 0,
GF_OMP_FOR_KIND_CILKSIMD = 3 << 0,
?
Jakub