Skip to content

Commit

Permalink
Introduce new OpenMP 5.0 depend object type.
Browse files Browse the repository at this point in the history
The implementation should be done by compiler, user can only declare
objects of this type and use them in OpenMP directives.

Differential Revision: https://reviews.llvm.org/D61860

llvm-svn: 360774
  • Loading branch information
AndreyChurbanov authored and MrSidims committed May 17, 2019
1 parent 30eb4e7 commit a98120a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions openmp/runtime/src/include/50/omp.h.var
Expand Up @@ -149,6 +149,7 @@

/* OpenMP 5.0 */
extern int __KAI_KMPC_CONVENTION omp_get_device_num (void);
typedef void * omp_depend_t;

/* kmp API functions */
extern int __KAI_KMPC_CONVENTION kmp_get_stacksize (void);
Expand Down
1 change: 1 addition & 0 deletions openmp/runtime/src/include/50/omp_lib.f.var
Expand Up @@ -44,6 +44,7 @@
end type omp_alloctrait

integer, parameter :: omp_pause_resource_kind = omp_integer_kind
integer, parameter :: omp_depend_kind = int_ptr_kind()

end module omp_lib_kinds

Expand Down
1 change: 1 addition & 0 deletions openmp/runtime/src/include/50/omp_lib.f90.var
Expand Up @@ -41,6 +41,7 @@
end type omp_alloctrait

integer, parameter :: omp_pause_resource_kind = omp_integer_kind
integer, parameter :: omp_depend_kind = c_intptr_t

end module omp_lib_kinds

Expand Down
2 changes: 2 additions & 0 deletions openmp/runtime/src/include/50/omp_lib.h.var
Expand Up @@ -48,6 +48,8 @@
parameter(omp_alloctrait_val_kind=int_ptr_kind())
integer omp_pause_resource_kind
parameter(omp_pause_resource_kind=omp_integer_kind)
integer omp_depend_kind
parameter(omp_depend_kind=int_ptr_kind())

integer(kind=omp_integer_kind)openmp_version
parameter(openmp_version=@LIBOMP_OMP_YEAR_MONTH@)
Expand Down

0 comments on commit a98120a

Please sign in to comment.