diff options
author | Kwok Cheung Yeung <kcyeung@baylibre.com> | 2025-05-03 20:38:10 +0000 |
---|---|---|
committer | Sandra Loosemore <sloosemore@baylibre.com> | 2025-05-15 20:25:53 +0000 |
commit | c97eaee945deaddfc5c14a2ef6102ff5599a91f3 (patch) | |
tree | f77bbe5877c19f221d7923f0eba5ac84559ebdde /gcc/tree-inline.cc | |
parent | eaa3e514e956c5e9c2c0b96dfc2a037f9e476a16 (diff) | |
download | gcc-c97eaee945deaddfc5c14a2ef6102ff5599a91f3.zip gcc-c97eaee945deaddfc5c14a2ef6102ff5599a91f3.tar.gz gcc-c97eaee945deaddfc5c14a2ef6102ff5599a91f3.tar.bz2 |
openmp: Add macros for iterator element access
gcc/c/
* c-parser.cc (c_parser_omp_iterators): Use macros for accessing
iterator elements.
(c_parser_omp_clause_affinity): Likewise.
(c_parser_omp_clause_depend): Likewise.
(c_parser_omp_clause_map): Likewise.
(c_parser_omp_clause_from_to): Likewise.
* c-typeck.cc (c_omp_finish_iterators): Likewise.
gcc/cp/
* parser.cc (cp_parser_omp_iterators): Use macros for accessing
iterator elements.
(cp_parser_omp_clause_affinity): Likewise.
(cp_parser_omp_clause_depend): Likewise.
(cp_parser_omp_clause_from_to): Likewise.
(cp_parser_omp_clause_map): Likewise.
* semantics.cc (cp_omp_finish_iterators): Likewise.
gcc/fortran/
* trans-openmp.cc (gfc_trans_omp_array_section): Use macros for
accessing iterator elements.
(handle_iterator): Likewise.
(gfc_trans_omp_clauses): Likewise.
gcc/
* gimplify.cc (gimplify_omp_affinity): Use macros for accessing
iterator elements.
(compute_omp_iterator_count): Likewise.
(build_omp_iterator_loop): Likewise.
(remove_unused_omp_iterator_vars): Likewise.
(build_omp_iterators_loops): Likewise.
(enter_omp_iterator_loop_context_1): Likewise.
(extract_base_bit_offset): Likewise.
* omp-low.cc (lower_omp_map_iterator_expr): Likewise.
(lower_omp_map_iterator_size): Likewise.
(allocate_omp_iterator_elems): Likewise.
(free_omp_iterator_elems): Likewise.
* tree-inline.cc (copy_tree_body_r): Likewise.
* tree-pretty-print.cc (dump_omp_iterators): Likewise.
* tree.h (OMP_ITERATORS_VAR, OMP_ITERATORS_BEGIN, OMP_ITERATORS_END,
OMP_ITERATORS_STEP, OMP_ITERATORS_ORIG_STEP, OMP_ITERATORS_BLOCK,
OMP_ITERATORS_LABEL, OMP_ITERATORS_INDEX, OMP_ITERATORS_ELEMS,
OMP_ITERATORS_COUNT, OMP_ITERATORS_EXPANDED_P): New macros.
Diffstat (limited to 'gcc/tree-inline.cc')
-rw-r--r-- | gcc/tree-inline.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc index 549a670..59a195e 100644 --- a/gcc/tree-inline.cc +++ b/gcc/tree-inline.cc @@ -1469,8 +1469,8 @@ copy_tree_body_r (tree *tp, int *walk_subtrees, void *data) for (int i = 0; i <= 4; i++) walk_tree (&TREE_VEC_ELT (TREE_PURPOSE (t), i), copy_tree_body_r, id, NULL); - if (TREE_VEC_ELT (TREE_PURPOSE (t), 5)) - remap_block (&TREE_VEC_ELT (TREE_PURPOSE (t), 5), id); + if (OMP_ITERATORS_BLOCK (TREE_PURPOSE (t))) + remap_block (&OMP_ITERATORS_BLOCK (TREE_PURPOSE (t)), id); walk_tree (&TREE_VALUE (t), copy_tree_body_r, id, NULL); } } |