[Ada] Code and style cleanups for CUDA
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 23 Dec 2020 10:35:19 +0000 (11:35 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:21 +0000 (05:28 -0400)
commitd56fbda96a7c34ad897b9cc871242047fe19393c
tree00e553f774c6f5186c8213c090de80aba06a84a1
parent56adf813f4e23d95d92385dee9b31e5e0d476abd
[Ada] Code and style cleanups for CUDA

gcc/ada/

* exp_prag.adb (Expand_Pragma_CUDA_Execute): Refill comments;
remove periods after single-line comments; use procedural
variant of Next_Entity.
* gnat_cuda.adb: Refill comments; remove periods after
single-line comments; replace calls to UI_From_Int with
constants; change iteration bounds so they match the comments.
* sem_prag.adb (Analyze_Pragma): Add checks for malformed pragma
CUDA_Kernel aggregate; simplify processing of pragma CUDA_Global
with Check_Arg_Count; sync comment with code for CUDA_Global.
gcc/ada/exp_prag.adb
gcc/ada/gnat_cuda.adb
gcc/ada/sem_prag.adb