[PATCH 44/89] Introduce gimple_omp_teams

Jeff Law law@redhat.com
Mon May 12 17:19:00 GMT 2014


On 04/21/14 10:57, David Malcolm wrote:
> gcc/
> 	* coretypes.h (gimple_omp_teams): New typedef.
> 	(const_gimple_omp_teams): New typedef.
>
> 	* gimple.h (gimple_statement_base::as_a_gimple_omp_teams): New.
> 	(gimple_build_omp_teams): Return a gimple_omp_teams rather than a
> 	plain gimple.
> 	(gimple_omp_teams_set_clauses): Require a gimple_omp_teams rather
> 	than a plain gimple.
>
> 	* gimple-pretty-print.c (dump_gimple_omp_teams): Require a
> 	gimple_omp_teams rather than a plain gimple.
> 	(pp_gimple_stmt_1): Add checked cast to gimple_omp_teams within
> 	GIMPLE_OMP_TEAMS case of switch statement.
>
> 	* gimple.c (gimple_build_omp_teams): Return a gimple_omp_teams
> 	rather than a plain gimple.
>
> 	* omp-low.c (scan_omp_teams): Likewise.
> 	(scan_omp_1_stmt): Add checked cast to gimple_omp_teams within
> 	GIMPLE_OMP_TEAMS case of switch statement.
> 	(lower_omp_teams): Strengthen local "teams_stmt" from gimple to
> 	gimple_omp_teams.
OK with expected changes due to renaming/updates to const handling.

Please repost the final patch for archival purposes.

Jeff



More information about the Gcc-patches mailing list