This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING: Fwd: Re: [patch] implement Cilk Plus simd loops on trunk


> --- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]