summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/include
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2019-05-15 13:45:36 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2019-05-15 13:45:36 +0000
commit22405f3097c10f04cbe19bcfc6efcaff9ab28d9a (patch)
tree38852d72b22763ccc6cc28fed87a2b69e37d372f /openmp/runtime/src/include
parent0d02f2ff4fbe969f56a115464792b3898379018b (diff)
downloadbcm5719-llvm-22405f3097c10f04cbe19bcfc6efcaff9ab28d9a.tar.gz
bcm5719-llvm-22405f3097c10f04cbe19bcfc6efcaff9ab28d9a.zip
Introduce new OpenMP 5.0 depend object type.
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
Diffstat (limited to 'openmp/runtime/src/include')
-rw-r--r--openmp/runtime/src/include/50/omp.h.var1
-rw-r--r--openmp/runtime/src/include/50/omp_lib.f.var1
-rw-r--r--openmp/runtime/src/include/50/omp_lib.f90.var1
-rw-r--r--openmp/runtime/src/include/50/omp_lib.h.var2
4 files changed, 5 insertions, 0 deletions
diff --git a/openmp/runtime/src/include/50/omp.h.var b/openmp/runtime/src/include/50/omp.h.var
index 05dc26672b2..11c32733f66 100644
--- a/openmp/runtime/src/include/50/omp.h.var
+++ b/openmp/runtime/src/include/50/omp.h.var
@@ -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);
diff --git a/openmp/runtime/src/include/50/omp_lib.f.var b/openmp/runtime/src/include/50/omp_lib.f.var
index 17d0a2a81e9..8981f39bd9a 100644
--- a/openmp/runtime/src/include/50/omp_lib.f.var
+++ b/openmp/runtime/src/include/50/omp_lib.f.var
@@ -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
diff --git a/openmp/runtime/src/include/50/omp_lib.f90.var b/openmp/runtime/src/include/50/omp_lib.f90.var
index a971577e39c..2776c66f1c7 100644
--- a/openmp/runtime/src/include/50/omp_lib.f90.var
+++ b/openmp/runtime/src/include/50/omp_lib.f90.var
@@ -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
diff --git a/openmp/runtime/src/include/50/omp_lib.h.var b/openmp/runtime/src/include/50/omp_lib.h.var
index cf861834421..6bfd8ce9696 100644
--- a/openmp/runtime/src/include/50/omp_lib.h.var
+++ b/openmp/runtime/src/include/50/omp_lib.h.var
@@ -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@)
OpenPOWER on IntegriCloud