Expose oacc_fn_attrib_level to be used in backends.
2018-12-19 Tom de Vries <tdevries@suse.de>
* omp-offload.c (oacc_fn_attrib_level): Remove static.
* omp-offload.h (oacc_fn_attrib_level): Declare.
From-SVN: r267275
+2018-12-19 Tom de Vries <tdevries@suse.de>
+
+ * omp-offload.c (oacc_fn_attrib_level): Remove static.
+ * omp-offload.h (oacc_fn_attrib_level): Declare.
+
2018-12-19 Tom de Vries <tdevries@suse.de>
* omp-offload.c (oacc_get_default_dim): New function.
/* Return level at which oacc routine may spawn a partitioned loop, or
-1 if it is not a routine (i.e. is an offload fn). */
-static int
+int
oacc_fn_attrib_level (tree attr)
{
tree pos = TREE_VALUE (attr);
#define GCC_OMP_DEVICE_H
extern int oacc_get_default_dim (int dim);
+extern int oacc_fn_attrib_level (tree attr);
extern GTY(()) vec<tree, va_gc> *offload_funcs;
extern GTY(()) vec<tree, va_gc> *offload_vars;