]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Just enumerate all GF_OMP_FOR_KIND_* and GF_OMP_TARGET_KIND_*.
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 23 May 2014 11:31:51 +0000 (13:31 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 23 May 2014 11:31:51 +0000 (13:31 +0200)
gcc/
* gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
GF_OMP_TARGET_KIND_UPDATE.

From-SVN: r210854

gcc/ChangeLog
gcc/gimple.h

index d351c0b29262e65573c954c1c932519315cff7a6..fa2f3c3cdeed6b4a455bfe1afe2d17154ce03135 100644 (file)
@@ -1,5 +1,12 @@
 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
+       for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
+       GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
+       GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
+       GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
+       GF_OMP_TARGET_KIND_UPDATE.
+
        * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
        Explicitly enumerate the expected region types.
 
index 9df45de94b6e24b1e48c0b83aecfd66ea182eba9..b1970e58f0459cde8659cc734c0984ec3200e5d0 100644 (file)
@@ -91,17 +91,17 @@ 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_FOR                = 0 << 0,
-    GF_OMP_FOR_KIND_DISTRIBUTE = 1 << 0,
-    GF_OMP_FOR_KIND_SIMD       = 2 << 0,
-    GF_OMP_FOR_KIND_CILKSIMD   = 3 << 0,
+    GF_OMP_FOR_KIND_MASK       = (1 << 2) - 1,
+    GF_OMP_FOR_KIND_FOR                = 0,
+    GF_OMP_FOR_KIND_DISTRIBUTE = 1,
+    GF_OMP_FOR_KIND_SIMD       = 2,
+    GF_OMP_FOR_KIND_CILKSIMD   = 3,
     GF_OMP_FOR_COMBINED                = 1 << 2,
     GF_OMP_FOR_COMBINED_INTO   = 1 << 3,
-    GF_OMP_TARGET_KIND_MASK    = 3 << 0,
-    GF_OMP_TARGET_KIND_REGION  = 0 << 0,
-    GF_OMP_TARGET_KIND_DATA    = 1 << 0,
-    GF_OMP_TARGET_KIND_UPDATE  = 2 << 0,
+    GF_OMP_TARGET_KIND_MASK    = (1 << 2) - 1,
+    GF_OMP_TARGET_KIND_REGION  = 0,
+    GF_OMP_TARGET_KIND_DATA    = 1,
+    GF_OMP_TARGET_KIND_UPDATE  = 2,
 
     /* True on an GIMPLE_OMP_RETURN statement if the return does not require
        a thread synchronization via some sort of barrier.  The exact barrier