aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-03-21 10:14:10 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-03-21 10:14:10 +0000
commita79b7ec516a40f54db581dc4223ef4ebaa8e6884 (patch)
tree3e31088bf1f5cd99f298747e11fb859e37c8927f /gcc/cgraph.h
parent2691415b63b472998f128ef2299146e7950918fc (diff)
downloadgcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.zip
gcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.tar.gz
gcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.tar.bz2
Mark omp thread functions as parallelized
2015-03-21 Tom de Vries <tom@codesourcery.com> PR tree-optimization/65458 * cgraph.c (cgraph_node::dump): Handle parallelized_function field. * cgraph.h (cgraph_node): Add parallelized_function field. * lto-cgraph.c (lto_output_node): Write parallelized_function field. (input_overwrite_node): Read parallelized_function field. * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set parallelized_function on cgraph_node for child_fn. * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h. Remove include of gt-tree-parloops.h. (parallelized_functions): Remove static variable. (parallelized_function_p): Rewrite using parallelized_function field of cgraph_node. (create_loop_fn): Remove adding to parallelized_functions. * Makefile.in (GTFILES): Remove tree-parloops.c From-SVN: r221551
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 52b15c5..650e689 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -1317,6 +1317,8 @@ public:
unsigned nonfreeing_fn : 1;
/* True if there was multiple COMDAT bodies merged by lto-symtab. */
unsigned merged : 1;
+ /* True if function was created to be executed in parallel. */
+ unsigned parallelized_function : 1;
private:
/* Worker for call_for_symbol_and_aliases. */