[OPENMP50]Codegen for 'depend' clause in depobj directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 4 Mar 2020 19:37:51 +0000 (14:37 -0500)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 4 Mar 2020 20:01:53 +0000 (15:01 -0500)
commite46f0fee3066240389e20dc847a281274dc81d2e
treec7e8a018c459db587cb67de3f42a5c31aeba5161
parent3712edb152ac9f6efb997484e3cc4e9141b61f1d
[OPENMP50]Codegen for 'depend' clause in depobj directive.

Added codegen for 'depend' clause in depobj directive. The depend clause
is emitted as kmp_depend_info <deps>[<number_of_items_in_clause> + 1]. The
first element in this array is reserved for storing the number of
elements in this array: <deps>[0].base_addr =
<number_of_items_in_clause>;

This extra element is required to implement 'update' and 'destroy'
clauses. It is required to know the size of array to destroy it
correctly and to update depency kind.
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/depobj_codegen.cpp [new file with mode: 0644]