[gomp] More IL work

Giovanni Bajo rasky@develer.com
Thu Jul 14 09:11:00 GMT 2005


Diego Novillo <dnovillo@redhat.com> wrote:

> * cgraph.c (cgraph_add_new_function): New.
> * cgraph.h (cgraph_add_new_function): Declare.
> * gimple-low.c (struct remap_locals_d): Declare.
> (add_decls_to_set): New.
> (build_remap_info): New.
> (remap_locals_r): New.
> (remap_locals_in_gomp_body): New.
> (create_gomp_fn): New.
> (create_gomp_parallel_start): New.
> (create_gomp_parallel_end): New.
> (lower_gomp_expr): New.
> (lower_stmt): Call it.
> * gimplify.c (gimplify_gomp_parallel): Remove.
> (gimplify_expr): Don't gimplify GOMP_PARALLEL.
> * tree-gimple.c (is_gimple_stmt): Consider GOMP_PARALLEL
> to be GIMPLE.
> * tree.def (GOMP_CLAUSE_SHARED, GOMP_CLAUSE_FIRSTPRIVATE,
> GOMP_CLAUSE_LASTPRIVATE, GOMP_CLAUSE_REDUCTION,
> GOMP_CLAUSE_COPYPRIVATE,): Define.

Why not separating things, instead of inflating current files more and more?
We could have a gomp.c for the create_gomp_* stuff, and a gomp.def for tree
definitions.
-- 
Giovanni Bajo



More information about the Gcc-patches mailing list