summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-21 10:14:10 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-21 10:14:10 +0000
commit66460ec1ca00302fa8c2e2b4dbca1e9ea807ac9f (patch)
tree3e31088bf1f5cd99f298747e11fb859e37c8927f /gcc/cgraph.h
parent3c4e189973c43b7f3c2ebb27abf32e9cb175ba82 (diff)
downloadgcc-66460ec1ca00302fa8c2e2b4dbca1e9ea807ac9f.tar.gz
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221551 138bc75d-0d04-0410-961f-82ee72b054a4
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 52b15c57417..650e68921f3 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. */