xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/omp-offload.h (revision 4c3eb207d36f67d31994830c0a694161fc1ca39b)
13ad841b2Smrg /* Bits of OpenMP and OpenACC handling that is specific to device offloading
23ad841b2Smrg    and a lowering pass for OpenACC device directives.
33ad841b2Smrg 
4*4c3eb207Smrg    Copyright (C) 2005-2020 Free Software Foundation, Inc.
53ad841b2Smrg 
63ad841b2Smrg This file is part of GCC.
73ad841b2Smrg 
83ad841b2Smrg GCC is free software; you can redistribute it and/or modify it under
93ad841b2Smrg the terms of the GNU General Public License as published by the Free
103ad841b2Smrg Software Foundation; either version 3, or (at your option) any later
113ad841b2Smrg version.
123ad841b2Smrg 
133ad841b2Smrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
143ad841b2Smrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
153ad841b2Smrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
163ad841b2Smrg for more details.
173ad841b2Smrg 
183ad841b2Smrg You should have received a copy of the GNU General Public License
193ad841b2Smrg along with GCC; see the file COPYING3.  If not see
203ad841b2Smrg <http://www.gnu.org/licenses/>.  */
213ad841b2Smrg 
223ad841b2Smrg #ifndef GCC_OMP_DEVICE_H
233ad841b2Smrg #define GCC_OMP_DEVICE_H
243ad841b2Smrg 
25627f7eb2Smrg extern int oacc_get_default_dim (int dim);
26627f7eb2Smrg extern int oacc_get_min_dim (int dim);
27627f7eb2Smrg extern int oacc_fn_attrib_level (tree attr);
28627f7eb2Smrg 
293ad841b2Smrg extern GTY(()) vec<tree, va_gc> *offload_funcs;
303ad841b2Smrg extern GTY(()) vec<tree, va_gc> *offload_vars;
313ad841b2Smrg 
323ad841b2Smrg extern void omp_finish_file (void);
333ad841b2Smrg 
343ad841b2Smrg #endif /* GCC_OMP_DEVICE_H */
35