GCC Middle and Back End API Reference
|
Go to the source code of this file.
Functions | |
int | oacc_get_default_dim (int dim) |
int | oacc_get_min_dim (int dim) |
int | oacc_fn_attrib_level (tree attr) |
void | omp_finish_file (void) |
void | omp_discover_implicit_declare_target (void) |
Variables | |
vec< tree, va_gc > * | offload_funcs |
vec< tree, va_gc > * | offload_vars |
vec< tree, va_gc > * | offload_ind_funcs |
|
extern |
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).
References integer_zerop(), TREE_CHAIN, TREE_PURPOSE, and TREE_VALUE.
Referenced by execute_oacc_loop_designation(), new_oacc_loop_routine(), and omp_sese_active_worker_call().
|
extern |
Bits of OpenMP and OpenACC handling that is specific to device offloading and a lowering pass for OpenACC device directives. Copyright (C) 2005-2024 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
References gcc_assert, and oacc_default_dims.
|
extern |
References gcc_assert, and oacc_min_dims.
|
extern |
Perform the OpenMP implicit declare target to discovery.
References symtab_node::decl, DECL_ATTRIBUTES, DECL_SAVED_TREE, DECL_STRUCT_FUNCTION, lang_hooks::decls, first_nested_function(), FOR_EACH_DEFINED_FUNCTION, FOR_EACH_VARIABLE, lookup_attribute(), next_nested_function(), offload_ind_funcs, omp_declare_target_fn_p(), omp_declare_target_var_p(), omp_discover_declare_target_fn_r(), omp_discover_declare_target_tgt_fn_r(), omp_discover_declare_target_var_r(), lang_hooks_for_decls::omp_finish_decl_inits, lang_hooks_for_decls::omp_get_decl_init, VAR_P, vec_safe_push(), walk_tree_without_duplicates, and worklist.
Referenced by analyze_functions().
|
extern |
Create new symbols containing (address, size) pairs for global variables, marked with "omp declare target" attribute, as well as addresses for the functions, which are outlined offloading regions.
References add_decls_addresses_to_decl_constructor(), build_array_type_nelts(), build_constructor(), build_decl(), DECL_ATTRIBUTES, DECL_HAS_VALUE_EXPR_P, DECL_INITIAL, DECL_USER_ALIGN, DECL_VALUE_EXPR, varpool_node::finalize_decl(), symtab_node::get(), get_identifier(), i, lookup_attribute(), OFFLOAD_FUNC_TABLE_SECTION_NAME, offload_funcs, OFFLOAD_IND_FUNC_TABLE_SECTION_NAME, offload_ind_funcs, OFFLOAD_VAR_TABLE_SECTION_NAME, offload_vars, pointer_sized_int_node, SET_DECL_ALIGN, set_decl_section_name(), SET_TYPE_ALIGN, targetm, TREE_CONSTANT, TREE_OPERAND, TREE_STATIC, TYPE_ALIGN, UNKNOWN_LOCATION, vec_alloc(), and vec_safe_length().
Referenced by compile_file().
Holds offload tables with decls.
Referenced by execute_omp_device_lower(), expand_omp_target(), input_offload_tables(), omp_finish_file(), output_offload_tables(), and prune_offload_funcs().