[Ada] Gigi support for OpenACC pragmas
authorOlivier Hainque <hainque@adacore.com>
Mon, 3 Dec 2018 15:47:57 +0000 (15:47 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 3 Dec 2018 15:47:57 +0000 (15:47 +0000)
commit7beb2b9dd2cb4adfab630231badae2517c138461
tree362b005cf64ce4ddd1e4878dc7c7823606f57a73
parente663d4d985b60ba445f140df2481af573073cbc7
[Ada] Gigi support for OpenACC pragmas

Matching front-end bits to support Acc_Kernels, Acc_Parallel,
Acc_Loop and Acc_Data.

2018-12-03  Olivier Hainque  <hainque@adacore.com>

gcc/ada/

* gcc-interface/lang.opt (fopenacc): New option for Ada.
* gcc-interface/misc.c (gnat_handle_option): Handle it.
* gcc-interface/trans.c (struct loop_info_d): Add OMP
attributes.
(Iterate_Acc_Clause_Arg, Acc_gnat_to_gnu): New functions,
helpers for OpenACC pragmas processing in Pragma_to_gnu.
(Acc_Var_to_gnu, Acc_Reduc_Var_to_gnu, Acc_Reduc_to_gnu):
Likewise.
(Acc_Size_Expr_to_gnu, Acc_Size_List_to_gnu): Likewise.
(Pragma_Acc_Data_to_gnu): Likewise.
(Pragma_to_gnu): Handle Pragma_Acc_Loop, Pragma_Acc_Data,
Pragma_Acc_Kernels and Pragma_Acc_Parallel.
(Acc_Loop_to_gnu, Regular_Loop_to_gnu): New functions. Helpers
for ...
(Loop_Statement_to_gnu): Rework to handle OpenACC loops.

From-SVN: r266748
gcc/ada/ChangeLog
gcc/ada/gcc-interface/lang.opt
gcc/ada/gcc-interface/misc.c
gcc/ada/gcc-interface/trans.c