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: OMP4/cilkplus: simd clone function mangling


+  /* To distinguish from an OpenMP simd clone, Cilk Plus functions to
+     be cloned have a distinctive artificial label in addition to "omp
+     declare simd".  */
+  bool cilk_clone = flag_enable_cilkplus
+    && lookup_attribute ("cilk plus elemental",
+			 DECL_ATTRIBUTES (new_node->symbol.decl));
+  if (cilk_clone)
+    remove_attribute ("cilk plus elemental",
+		      DECL_ATTRIBUTES (new_node->symbol.decl));

Oh yeah, rth had asked me why I remove the attribute. My initial thoughts were that whether or not a function is a simd clone can be accessed through the cgraph bits ("node->simdclone != NULL" for the clone, and "node->has_simd_clones" for the parent). No sense keeping the attribute. But I can leave it if you think it's better.

Aldy


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