GCC Middle and Back End API Reference
omp-selectors.h
Go to the documentation of this file.
1/* Data structures for OpenMP context selectors. This is in a separate file
2 from omp-general.h so that it may also be used in the Fortran parser
3 without reference to tree data structures.
4
5 Copyright (C) 2023-2024 Free Software Foundation, Inc.
6
7This file is part of GCC.
8
9GCC is free software; you can redistribute it and/or modify it under
10the terms of the GNU General Public License as published by the Free
11Software Foundation; either version 3, or (at your option) any later
12version.
13
14GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15WARRANTY; without even the implied warranty of MERCHANTABILITY or
16FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17for more details.
18
19You should have received a copy of the GNU General Public License
20along with GCC; see the file COPYING3. If not see
21<http://www.gnu.org/licenses/>. */
22
23
24#ifndef GCC_OMP_SELECTORS_H
25#define GCC_OMP_SELECTORS_H
26
27/* Trait set selector keywords. */
37
38/* Trait selector keywords. */
61
62/* All trait property forms. */
72
73/* Map trait set selector name keywords onto strings. */
74extern const char *omp_tss_map [];
75
76/* Map trait selector keywords onto strings, allowed contexts, and
77 allowed property names for OMP_TRAIT_PROPERTY_NAME_LIST and
78 OMP_TRAIT_PROPERTY_ID properties. If valid_properties is null,
79 it means that any required checking has to be done explicitly
80 somewhere instead of being driven by the table. Otherwise it's a
81 null-terminated array of strings. */
83 const char *name;
84 unsigned int tss_mask;
87 const char * const *valid_properties;
88};
89extern struct omp_ts_info omp_ts_map[];
90
91extern enum omp_tss_code omp_lookup_tss_code (const char *);
92extern enum omp_ts_code omp_lookup_ts_code (enum omp_tss_code, const char *);
93
94#endif /* GCC_OMP_SELECTORS_H */
omp_tp_type
Definition omp-selectors.h:63
@ OMP_TRAIT_PROPERTY_NONE
Definition omp-selectors.h:64
@ OMP_TRAIT_PROPERTY_NAME_LIST
Definition omp-selectors.h:66
@ OMP_TRAIT_PROPERTY_DEV_NUM_EXPR
Definition omp-selectors.h:67
@ OMP_TRAIT_PROPERTY_BOOL_EXPR
Definition omp-selectors.h:68
@ OMP_TRAIT_PROPERTY_EXTENSION
Definition omp-selectors.h:70
@ OMP_TRAIT_PROPERTY_ID
Definition omp-selectors.h:65
@ OMP_TRAIT_PROPERTY_CLAUSE_LIST
Definition omp-selectors.h:69
omp_tss_code
Definition omp-selectors.h:28
@ OMP_TRAIT_SET_DEVICE
Definition omp-selectors.h:30
@ OMP_TRAIT_SET_LAST
Definition omp-selectors.h:34
@ OMP_TRAIT_SET_CONSTRUCT
Definition omp-selectors.h:29
@ OMP_TRAIT_SET_IMPLEMENTATION
Definition omp-selectors.h:32
@ OMP_TRAIT_SET_INVALID
Definition omp-selectors.h:35
@ OMP_TRAIT_SET_TARGET_DEVICE
Definition omp-selectors.h:31
@ OMP_TRAIT_SET_USER
Definition omp-selectors.h:33
enum omp_ts_code omp_lookup_ts_code(enum omp_tss_code, const char *)
Definition omp-general.cc:2184
struct omp_ts_info omp_ts_map[]
Definition omp-general.cc:1147
const char * omp_tss_map[]
Definition omp-general.cc:1126
enum omp_tss_code omp_lookup_tss_code(const char *)
Definition omp-general.cc:2174
omp_ts_code
Definition omp-selectors.h:39
@ OMP_TRAIT_IMPLEMENTATION_UNIFIED_ADDRESS
Definition omp-selectors.h:48
@ OMP_TRAIT_IMPLEMENTATION_DYNAMIC_ALLOCATORS
Definition omp-selectors.h:50
@ OMP_TRAIT_IMPLEMENTATION_REQUIRES
Definition omp-selectors.h:47
@ OMP_TRAIT_DEVICE_NUM
Definition omp-selectors.h:43
@ OMP_TRAIT_CONSTRUCT_TEAMS
Definition omp-selectors.h:54
@ OMP_TRAIT_CONSTRUCT_TARGET
Definition omp-selectors.h:53
@ OMP_TRAIT_IMPLEMENTATION_ADMO
Definition omp-selectors.h:46
@ OMP_TRAIT_LAST
Definition omp-selectors.h:58
@ OMP_TRAIT_IMPLEMENTATION_UNIFIED_SHARED_MEMORY
Definition omp-selectors.h:49
@ OMP_TRAIT_DEVICE_ARCH
Definition omp-selectors.h:42
@ OMP_TRAIT_DEVICE_ISA
Definition omp-selectors.h:41
@ OMP_TRAIT_CONSTRUCT_PARALLEL
Definition omp-selectors.h:55
@ OMP_TRAIT_IMPLEMENTATION_REVERSE_OFFLOAD
Definition omp-selectors.h:51
@ OMP_TRAIT_IMPLEMENTATION_VENDOR
Definition omp-selectors.h:44
@ OMP_TRAIT_USER_CONDITION
Definition omp-selectors.h:52
@ OMP_TRAIT_INVALID
Definition omp-selectors.h:59
@ OMP_TRAIT_CONSTRUCT_SIMD
Definition omp-selectors.h:57
@ OMP_TRAIT_CONSTRUCT_FOR
Definition omp-selectors.h:56
@ OMP_TRAIT_IMPLEMENTATION_EXTENSION
Definition omp-selectors.h:45
@ OMP_TRAIT_DEVICE_KIND
Definition omp-selectors.h:40
Definition omp-selectors.h:82
bool allow_score
Definition omp-selectors.h:86
const char *const * valid_properties
Definition omp-selectors.h:87
enum omp_tp_type tp_type
Definition omp-selectors.h:85
const char * name
Definition omp-selectors.h:83
unsigned int tss_mask
Definition omp-selectors.h:84