LLVM 20.0.0git
ClauseT.h
Go to the documentation of this file.
1//===- ClauseT.h -- clause template definitions ---------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8// This file contains template classes that represent OpenMP clauses, as
9// described in the OpenMP API specification.
10//
11// The general structure of any specific clause class is that it is either
12// empty, or it consists of a single data member, which can take one of these
13// three forms:
14// - a value member, named `v`, or
15// - a tuple of values, named `t`, or
16// - a variant (i.e. union) of values, named `u`.
17// To assist with generic visit algorithms, classes define one of the following
18// traits:
19// - EmptyTrait: the class has no data members.
20// - WrapperTrait: the class has a single member `v`
21// - TupleTrait: the class has a tuple member `t`
22// - UnionTrait the class has a variant member `u`
23// - IncompleteTrait: the class is a placeholder class that is currently empty,
24// but will be completed at a later time.
25// Note: This structure follows the one used in flang parser.
26//
27// The types used in the class definitions follow the names used in the spec
28// (there are a few exceptions to this). For example, given
29// Clause `foo`
30// - foo-modifier : description...
31// - list : list of variables
32// the corresponding class would be
33// template <...>
34// struct FooT {
35// using FooModifier = type that can represent the modifier
36// using List = ListT<ObjectT<...>>;
37// using TupleTrait = std::true_type;
38// std::tuple<std::optional<FooModifier>, List> t;
39// };
40//===----------------------------------------------------------------------===//
41#ifndef LLVM_FRONTEND_OPENMP_CLAUSET_H
42#define LLVM_FRONTEND_OPENMP_CLAUSET_H
43
44#include "llvm/ADT/ArrayRef.h"
45#include "llvm/ADT/DenseMap.h"
46#include "llvm/ADT/DenseSet.h"
47#include "llvm/ADT/STLExtras.h"
52
53#include <algorithm>
54#include <iterator>
55#include <optional>
56#include <tuple>
57#include <type_traits>
58#include <utility>
59#include <variant>
60
61#define ENUM(Name, ...) enum class Name { __VA_ARGS__ }
62#define OPT(x) std::optional<x>
63
64// A number of OpenMP clauses contain values that come from a given set of
65// possibilities. In the IR these are usually represented by enums. Both
66// clang and flang use different types for the enums, and the enum elements
67// representing the same thing may have different values between clang and
68// flang.
69// Since the representation below tries to adhere to the spec, and be source
70// language agnostic, it defines its own enums, independent from any language
71// frontend. As a consequence, when instantiating the templates below,
72// frontend-specific enums need to be translated into the representation
73// used here. The macros below are intended to assist with the conversion.
74
75// Helper macro for enum-class conversion.
76#define CLAUSET_SCOPED_ENUM_MEMBER_CONVERT(Ov, Tv) \
77 if (v == OtherEnum::Ov) { \
78 return ThisEnum::Tv; \
79 }
80
81// Helper macro for enum (non-class) conversion.
82#define CLAUSET_UNSCOPED_ENUM_MEMBER_CONVERT(Ov, Tv) \
83 if (v == Ov) { \
84 return ThisEnum::Tv; \
85 }
86
87#define CLAUSET_ENUM_CONVERT(func, OtherE, ThisE, Maps) \
88 auto func = [](OtherE v) -> ThisE { \
89 using ThisEnum = ThisE; \
90 using OtherEnum = OtherE; \
91 (void)sizeof(OtherEnum); /*Avoid "unused local typedef" warning*/ \
92 Maps; \
93 llvm_unreachable("Unexpected value in " #OtherE); \
94 }
95
96// Usage:
97//
98// Given two enums,
99// enum class Other { o1, o2 };
100// enum class This { t1, t2 };
101// generate conversion function "Func : Other -> This" with
102// CLAUSET_ENUM_CONVERT(
103// Func, Other, This,
104// CLAUSET_ENUM_MEMBER_CONVERT(o1, t1) // <- No comma
105// CLAUSET_ENUM_MEMBER_CONVERT(o2, t2)
106// ...
107// )
108//
109// Note that the sequence of M(other-value, this-value) is separated
110// with _spaces_, not commas.
111
112namespace detail {
113// Type trait to determine whether T is a specialization of std::variant.
114template <typename T> struct is_variant {
115 static constexpr bool value = false;
116};
117
118template <typename... Ts> struct is_variant<std::variant<Ts...>> {
119 static constexpr bool value = true;
120};
121
122template <typename T> constexpr bool is_variant_v = is_variant<T>::value;
123
124// Helper utility to create a type which is a union of two given variants.
125template <typename...> struct UnionOfTwo;
126
127template <typename... Types1, typename... Types2>
128struct UnionOfTwo<std::variant<Types1...>, std::variant<Types2...>> {
129 using type = std::variant<Types1..., Types2...>;
130};
131} // namespace detail
132
133namespace tomp {
134namespace type {
135
136// Helper utility to create a type which is a union of an arbitrary number
137// of variants.
138template <typename...> struct Union;
139
140template <> struct Union<> {
141 // Legal to define, illegal to instantiate.
142 using type = std::variant<>;
143};
144
145template <typename T, typename... Ts> struct Union<T, Ts...> {
146 static_assert(detail::is_variant_v<T>);
147 using type =
148 typename detail::UnionOfTwo<T, typename Union<Ts...>::type>::type;
149};
150
151template <typename T> using ListT = llvm::SmallVector<T, 0>;
152
153// The ObjectT class represents a variable or a locator (as defined in
154// the OpenMP spec).
155// Note: the ObjectT template is not defined. Any user of it is expected to
156// provide their own specialization that conforms to the requirements listed
157// below.
158//
159// Let ObjectS be any specialization of ObjectT:
160//
161// ObjectS must provide the following definitions:
162// {
163// using IdTy = Id;
164// using ExprTy = Expr;
165//
166// auto id() const -> IdTy {
167// // Return a value such that a.id() == b.id() if and only if:
168// // (1) both `a` and `b` represent the same variable or location, or
169// // (2) bool(a.id()) == false and bool(b.id()) == false
170// }
171// }
172//
173// The type IdTy should be hashable (usable as key in unordered containers).
174//
175// Values of type IdTy should be contextually convertible to `bool`.
176//
177// If S is an object of type ObjectS, then `bool(S.id())` is `false` if
178// and only if S does not represent any variable or location.
179//
180// ObjectS should be copyable, movable, and default-constructible.
181template <typename IdType, typename ExprType> struct ObjectT;
182
183// By default, object equality is only determined by its identity.
184template <typename I, typename E>
185bool operator==(const ObjectT<I, E> &o1, const ObjectT<I, E> &o2) {
186 return o1.id() == o2.id();
187}
188
189template <typename I, typename E> using ObjectListT = ListT<ObjectT<I, E>>;
190
191using DirectiveName = llvm::omp::Directive;
192
193template <typename I, typename E> //
196 using WrapperTrait = std::true_type;
198 };
199 ENUM(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat, LT,
200 LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV, Min, Max);
201 using UnionTrait = std::true_type;
202 std::variant<DefinedOpName, IntrinsicOperator> u;
203};
204
205// V5.2: [3.2.6] `iterator` modifier
206template <typename E> //
207struct RangeT {
208 // range-specification: begin : end[: step]
209 using TupleTrait = std::true_type;
210 std::tuple<E, E, OPT(E)> t;
211};
212
213// V5.2: [3.2.6] `iterator` modifier
214template <typename TypeType, typename IdType, typename ExprType> //
216 // iterators-specifier: [ iterator-type ] identifier = range-specification
217 using TupleTrait = std::true_type;
219};
220
221// Note:
222// For motion or map clauses the OpenMP spec allows a unique mapper modifier.
223// In practice, since these clauses apply to multiple objects, there can be
224// multiple effective mappers applicable to these objects (due to overloads,
225// etc.). Because of that store a list of mappers every time a mapper modifier
226// is allowed. If the mapper list contains a single element, it applies to
227// all objects in the clause, otherwise there should be as many mappers as
228// there are objects.
229// V5.2: [5.8.2] Mapper identifiers and `mapper` modifiers
230template <typename I, typename E> //
231struct MapperT {
233 using WrapperTrait = std::true_type;
235};
236
237// V5.2: [15.8.1] `memory-order` clauses
238// When used as arguments for other clauses, e.g. `fail`.
239ENUM(MemoryOrder, AcqRel, Acquire, Relaxed, Release, SeqCst);
240ENUM(MotionExpectation, Present);
241// Union of `dependence-type` and `task-depenence-type`.
242// V5.2: [15.9.1] `task-dependence-type` modifier
243ENUM(DependenceType, Depobj, In, Inout, Inoutset, Mutexinoutset, Out, Sink,
244 Source);
245ENUM(Prescriptiveness, Strict);
246
247template <typename I, typename E> //
249 struct Distance {
250 using TupleTrait = std::true_type;
251 std::tuple<DefinedOperatorT<I, E>, E> t;
252 };
253 using TupleTrait = std::true_type;
254 std::tuple<ObjectT<I, E>, OPT(Distance)> t;
255};
256
257template <typename I, typename E> //
259 using WrapperTrait = std::true_type;
261};
262
263// Note:
264// For reduction clauses the OpenMP spec allows a unique reduction identifier.
265// For reasons analogous to those listed for the MapperT type, clauses that
266// according to the spec contain a reduction identifier will contain a list of
267// reduction identifiers. The same constraints apply: there is either a single
268// identifier that applies to all objects, or there are as many identifiers
269// as there are objects.
270template <typename I, typename E> //
272 using UnionTrait = std::true_type;
273 std::variant<DefinedOperatorT<I, E>, ProcedureDesignatorT<I, E>> u;
274};
275
276template <typename T, typename I, typename E> //
278
279template <typename T>
280std::enable_if_t<T::EmptyTrait::value, bool> operator==(const T &a,
281 const T &b) {
282 return true;
283}
284template <typename T>
285std::enable_if_t<T::IncompleteTrait::value, bool> operator==(const T &a,
286 const T &b) {
287 return true;
288}
289template <typename T>
290std::enable_if_t<T::WrapperTrait::value, bool> operator==(const T &a,
291 const T &b) {
292 return a.v == b.v;
293}
294template <typename T>
295std::enable_if_t<T::TupleTrait::value, bool> operator==(const T &a,
296 const T &b) {
297 return a.t == b.t;
298}
299template <typename T>
300std::enable_if_t<T::UnionTrait::value, bool> operator==(const T &a,
301 const T &b) {
302 return a.u == b.u;
303}
304} // namespace type
305
306template <typename T> using ListT = type::ListT<T>;
307
308template <typename I, typename E> using ObjectT = type::ObjectT<I, E>;
309template <typename I, typename E> using ObjectListT = type::ObjectListT<I, E>;
310
311template <typename T, typename I, typename E>
313
314template <
315 typename ContainerTy, typename FunctionTy,
316 typename ElemTy = typename llvm::remove_cvref_t<ContainerTy>::value_type,
317 typename ResultTy = std::invoke_result_t<FunctionTy, ElemTy>>
318ListT<ResultTy> makeList(ContainerTy &&container, FunctionTy &&func) {
320 llvm::transform(container, std::back_inserter(v), func);
321 return v;
322}
323
324namespace clause {
325using type::operator==;
326
327// V5.2: [8.3.1] `assumption` clauses
328template <typename T, typename I, typename E> //
329struct AbsentT {
331 using WrapperTrait = std::true_type;
333};
334
335// V5.2: [15.8.1] `memory-order` clauses
336template <typename T, typename I, typename E> //
337struct AcqRelT {
338 using EmptyTrait = std::true_type;
339};
340
341// V5.2: [15.8.1] `memory-order` clauses
342template <typename T, typename I, typename E> //
343struct AcquireT {
344 using EmptyTrait = std::true_type;
345};
346
347// V5.2: [7.5.2] `adjust_args` clause
348template <typename T, typename I, typename E> //
350 using IncompleteTrait = std::true_type;
351};
352
353// V5.2: [12.5.1] `affinity` clause
354template <typename T, typename I, typename E> //
355struct AffinityT {
358
359 using TupleTrait = std::true_type;
360 std::tuple<OPT(Iterator), LocatorList> t;
361};
362
363// V5.2: [6.3] `align` clause
364template <typename T, typename I, typename E> //
365struct AlignT {
366 using Alignment = E;
367
368 using WrapperTrait = std::true_type;
370};
371
372// V5.2: [5.11] `aligned` clause
373template <typename T, typename I, typename E> //
374struct AlignedT {
375 using Alignment = E;
377
378 using TupleTrait = std::true_type;
379 std::tuple<OPT(Alignment), List> t;
380};
381
382template <typename T, typename I, typename E> //
383struct AllocatorT;
384
385// V5.2: [6.6] `allocate` clause
386template <typename T, typename I, typename E> //
387struct AllocateT {
388 // AllocatorSimpleModifier is same as AllocatorComplexModifier.
392
393 using TupleTrait = std::true_type;
395};
396
397// V5.2: [6.4] `allocator` clause
398template <typename T, typename I, typename E> //
400 using Allocator = E;
401 using WrapperTrait = std::true_type;
403};
404
405// V5.2: [7.5.3] `append_args` clause
406template <typename T, typename I, typename E> //
408 using IncompleteTrait = std::true_type;
409};
410
411// V5.2: [8.1] `at` clause
412template <typename T, typename I, typename E> //
413struct AtT {
414 ENUM(ActionTime, Compilation, Execution);
415 using WrapperTrait = std::true_type;
416 ActionTime v;
417};
418
419// V5.2: [8.2.1] `requirement` clauses
420template <typename T, typename I, typename E> //
422 using MemoryOrder = type::MemoryOrder;
423 using WrapperTrait = std::true_type;
424 MemoryOrder v; // Name not provided in spec
425};
426
427// V5.2: [11.7.1] `bind` clause
428template <typename T, typename I, typename E> //
429struct BindT {
430 ENUM(Binding, Teams, Parallel, Thread);
431 using WrapperTrait = std::true_type;
432 Binding v;
433};
434
435// V5.2: [15.8.3] `extended-atomic` clauses
436template <typename T, typename I, typename E> //
437struct CaptureT {
438 using EmptyTrait = std::true_type;
439};
440
441// V5.2: [4.4.3] `collapse` clause
442template <typename T, typename I, typename E> //
443struct CollapseT {
444 using N = E;
445 using WrapperTrait = std::true_type;
447};
448
449// V5.2: [15.8.3] `extended-atomic` clauses
450template <typename T, typename I, typename E> //
451struct CompareT {
452 using EmptyTrait = std::true_type;
453};
454
455// V5.2: [8.3.1] `assumption` clauses
456template <typename T, typename I, typename E> //
457struct ContainsT {
459 using WrapperTrait = std::true_type;
461};
462
463// V5.2: [5.7.1] `copyin` clause
464template <typename T, typename I, typename E> //
465struct CopyinT {
467 using WrapperTrait = std::true_type;
469};
470
471// V5.2: [5.7.2] `copyprivate` clause
472template <typename T, typename I, typename E> //
475 using WrapperTrait = std::true_type;
477};
478
479// V5.2: [5.4.1] `default` clause
480template <typename T, typename I, typename E> //
481struct DefaultT {
482 ENUM(DataSharingAttribute, Firstprivate, None, Private, Shared);
483 using WrapperTrait = std::true_type;
484 DataSharingAttribute v;
485};
486
487// V5.2: [5.8.7] `defaultmap` clause
488template <typename T, typename I, typename E> //
490 ENUM(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None, Default,
491 Present);
492 ENUM(VariableCategory, All, Scalar, Aggregate, Pointer, Allocatable);
493 using TupleTrait = std::true_type;
494 std::tuple<ImplicitBehavior, OPT(VariableCategory)> t;
495};
496
497template <typename T, typename I, typename E> //
498struct DoacrossT;
499
500// V5.2: [15.9.5] `depend` clause
501template <typename T, typename I, typename E> //
502struct DependT {
505 using DependenceType = tomp::type::DependenceType;
506
507 struct TaskDep { // The form with task dependence type.
508 using TupleTrait = std::true_type;
509 // Empty LocatorList means "omp_all_memory".
511 };
512
514 using UnionTrait = std::true_type;
515 std::variant<Doacross, TaskDep> u; // Doacross form is legacy
516};
517
518// V5.2: [3.5] `destroy` clause
519template <typename T, typename I, typename E> //
520struct DestroyT {
522 using WrapperTrait = std::true_type;
523 // DestroyVar can be ommitted in "depobj destroy".
525};
526
527// V5.2: [12.5.2] `detach` clause
528template <typename T, typename I, typename E> //
529struct DetachT {
531 using WrapperTrait = std::true_type;
533};
534
535// V5.2: [13.2] `device` clause
536template <typename T, typename I, typename E> //
537struct DeviceT {
539 ENUM(DeviceModifier, Ancestor, DeviceNum);
540 using TupleTrait = std::true_type;
541 std::tuple<OPT(DeviceModifier), DeviceDescription> t;
542};
543
544// V5.2: [13.1] `device_type` clause
545template <typename T, typename I, typename E> //
547 ENUM(DeviceTypeDescription, Any, Host, Nohost);
548 using WrapperTrait = std::true_type;
549 DeviceTypeDescription v;
550};
551
552// V5.2: [11.6.1] `dist_schedule` clause
553template <typename T, typename I, typename E> //
555 ENUM(Kind, Static);
556 using ChunkSize = E;
557 using TupleTrait = std::true_type;
558 std::tuple<Kind, OPT(ChunkSize)> t;
559};
560
561// V5.2: [15.9.6] `doacross` clause
562template <typename T, typename I, typename E> //
563struct DoacrossT {
565 using DependenceType = tomp::type::DependenceType;
566 using TupleTrait = std::true_type;
567 // Empty Vector means "omp_cur_iteration"
568 std::tuple<DependenceType, Vector> t;
569};
570
571// V5.2: [8.2.1] `requirement` clauses
572template <typename T, typename I, typename E> //
574 using EmptyTrait = std::true_type;
575};
576
577// V5.2: [5.8.4] `enter` clause
578template <typename T, typename I, typename E> //
579struct EnterT {
581 using WrapperTrait = std::true_type;
583};
584
585// V5.2: [5.6.2] `exclusive` clause
586template <typename T, typename I, typename E> //
588 using WrapperTrait = std::true_type;
591};
592
593// V5.2: [15.8.3] `extended-atomic` clauses
594template <typename T, typename I, typename E> //
595struct FailT {
596 using MemoryOrder = type::MemoryOrder;
597 using WrapperTrait = std::true_type;
599};
600
601// V5.2: [10.5.1] `filter` clause
602template <typename T, typename I, typename E> //
603struct FilterT {
604 using ThreadNum = E;
605 using WrapperTrait = std::true_type;
607};
608
609// V5.2: [12.3] `final` clause
610template <typename T, typename I, typename E> //
611struct FinalT {
612 using Finalize = E;
613 using WrapperTrait = std::true_type;
615};
616
617// V5.2: [5.4.4] `firstprivate` clause
618template <typename T, typename I, typename E> //
621 using WrapperTrait = std::true_type;
623};
624
625// V5.2: [5.9.2] `from` clause
626template <typename T, typename I, typename E> //
627struct FromT {
629 using Expectation = type::MotionExpectation;
631 // See note at the definition of the MapperT type.
632 using Mappers = ListT<type::MapperT<I, E>>; // Not a spec name
633
634 using TupleTrait = std::true_type;
636};
637
638// V5.2: [9.2.1] `full` clause
639template <typename T, typename I, typename E> //
640struct FullT {
641 using EmptyTrait = std::true_type;
642};
643
644// V5.2: [12.6.1] `grainsize` clause
645template <typename T, typename I, typename E> //
647 using Prescriptiveness = type::Prescriptiveness;
648 using GrainSize = E;
649 using TupleTrait = std::true_type;
651};
652
653// V5.2: [5.4.9] `has_device_addr` clause
654template <typename T, typename I, typename E> //
657 using WrapperTrait = std::true_type;
659};
660
661// V5.2: [15.1.2] `hint` clause
662template <typename T, typename I, typename E> //
663struct HintT {
664 using HintExpr = E;
665 using WrapperTrait = std::true_type;
667};
668
669// V5.2: [8.3.1] Assumption clauses
670template <typename T, typename I, typename E> //
671struct HoldsT {
672 using WrapperTrait = std::true_type;
673 E v; // No argument name in spec 5.2
674};
675
676// V5.2: [3.4] `if` clause
677template <typename T, typename I, typename E> //
678struct IfT {
681 using TupleTrait = std::true_type;
683};
684
685// V5.2: [7.7.1] `branch` clauses
686template <typename T, typename I, typename E> //
687struct InbranchT {
688 using EmptyTrait = std::true_type;
689};
690
691// V5.2: [5.6.1] `exclusive` clause
692template <typename T, typename I, typename E> //
695 using WrapperTrait = std::true_type;
697};
698
699// V5.2: [7.8.3] `indirect` clause
700template <typename T, typename I, typename E> //
701struct IndirectT {
703 using WrapperTrait = std::true_type;
705};
706
707// V5.2: [14.1.2] `init` clause
708template <typename T, typename I, typename E> //
709struct InitT {
713 ENUM(InteropType, Target, Targetsync); // Repeatable
714 using InteropTypes = ListT<InteropType>; // Not a spec name
715
716 using TupleTrait = std::true_type;
718};
719
720// V5.2: [5.5.4] `initializer` clause
721template <typename T, typename I, typename E> //
724 using WrapperTrait = std::true_type;
726};
727
728// V5.2: [5.5.10] `in_reduction` clause
729template <typename T, typename I, typename E> //
732 // See note at the definition of the ReductionIdentifierT type.
733 // The name ReductionIdentifiers is not a spec name.
735 using TupleTrait = std::true_type;
736 std::tuple<ReductionIdentifiers, List> t;
737};
738
739// V5.2: [5.4.7] `is_device_ptr` clause
740template <typename T, typename I, typename E> //
743 using WrapperTrait = std::true_type;
745};
746
747// V5.2: [5.4.5] `lastprivate` clause
748template <typename T, typename I, typename E> //
751 ENUM(LastprivateModifier, Conditional);
752 using TupleTrait = std::true_type;
753 std::tuple<OPT(LastprivateModifier), List> t;
754};
755
756// V5.2: [5.4.6] `linear` clause
757template <typename T, typename I, typename E> //
758struct LinearT {
759 // std::get<type> won't work here due to duplicate types in the tuple.
761 // StepSimpleModifier is same as StepComplexModifier.
763 ENUM(LinearModifier, Ref, Val, Uval);
764
765 using TupleTrait = std::true_type;
766 // Step == nullopt means 1.
767 std::tuple<OPT(StepComplexModifier), OPT(LinearModifier), List> t;
768};
769
770// V5.2: [5.8.5] `link` clause
771template <typename T, typename I, typename E> //
772struct LinkT {
774 using WrapperTrait = std::true_type;
776};
777
778// V5.2: [5.8.3] `map` clause
779template <typename T, typename I, typename E> //
780struct MapT {
782 ENUM(MapType, To, From, Tofrom, Alloc, Release, Delete);
783 ENUM(MapTypeModifier, Always, Close, Present, OmpxHold);
784 // See note at the definition of the MapperT type.
785 using Mappers = ListT<type::MapperT<I, E>>; // Not a spec name
787 using MapTypeModifiers = ListT<MapTypeModifier>; // Not a spec name
788
789 using TupleTrait = std::true_type;
790 std::tuple<OPT(MapType), OPT(MapTypeModifiers), OPT(Mappers), OPT(Iterator),
793};
794
795// V5.2: [7.5.1] `match` clause
796template <typename T, typename I, typename E> //
797struct MatchT {
798 using IncompleteTrait = std::true_type;
799};
800
801// V5.2: [12.2] `mergeable` clause
802template <typename T, typename I, typename E> //
804 using EmptyTrait = std::true_type;
805};
806
807// V5.2: [8.5.2] `message` clause
808template <typename T, typename I, typename E> //
809struct MessageT {
810 using MsgString = E;
811 using WrapperTrait = std::true_type;
813};
814
815// V5.2: [7.6.2] `nocontext` clause
816template <typename T, typename I, typename E> //
819 using WrapperTrait = std::true_type;
821};
822
823// V5.2: [15.7] `nowait` clause
824template <typename T, typename I, typename E> //
825struct NogroupT {
826 using EmptyTrait = std::true_type;
827};
828
829// V5.2: [10.4.1] `nontemporal` clause
830template <typename T, typename I, typename E> //
833 using WrapperTrait = std::true_type;
835};
836
837// V5.2: [8.3.1] `assumption` clauses
838template <typename T, typename I, typename E> //
839struct NoOpenmpT {
840 using EmptyTrait = std::true_type;
841};
842
843// V5.2: [8.3.1] `assumption` clauses
844template <typename T, typename I, typename E> //
846 using EmptyTrait = std::true_type;
847};
848
849// V5.2: [8.3.1] `assumption` clauses
850template <typename T, typename I, typename E> //
852 using EmptyTrait = std::true_type;
853};
854
855// V5.2: [7.7.1] `branch` clauses
856template <typename T, typename I, typename E> //
858 using EmptyTrait = std::true_type;
859};
860
861// V5.2: [7.6.1] `novariants` clause
862template <typename T, typename I, typename E> //
865 using WrapperTrait = std::true_type;
867};
868
869// V5.2: [15.6] `nowait` clause
870template <typename T, typename I, typename E> //
871struct NowaitT {
872 using EmptyTrait = std::true_type;
873};
874
875// V5.2: [12.6.2] `num_tasks` clause
876template <typename T, typename I, typename E> //
877struct NumTasksT {
878 using Prescriptiveness = type::Prescriptiveness;
879 using NumTasks = E;
880 using TupleTrait = std::true_type;
882};
883
884// V5.2: [10.2.1] `num_teams` clause
885template <typename T, typename I, typename E> //
886struct NumTeamsT {
887 using LowerBound = E;
888 using UpperBound = E;
889
890 // The name Range is not a spec name.
891 struct Range {
892 using TupleTrait = std::true_type;
893 std::tuple<OPT(LowerBound), UpperBound> t;
894 };
895
896 // The name List is not a spec name. The list is an extension to allow
897 // specifying a grid with connection with the ompx_bare clause.
899 using WrapperTrait = std::true_type;
901};
902
903// V5.2: [10.1.2] `num_threads` clause
904template <typename T, typename I, typename E> //
906 using Nthreads = E;
907 using WrapperTrait = std::true_type;
909};
910
911template <typename T, typename I, typename E> //
913 using EmptyTrait = std::true_type;
914};
915
916template <typename T, typename I, typename E> //
917struct OmpxBareT {
918 using EmptyTrait = std::true_type;
919};
920
921template <typename T, typename I, typename E> //
923 using WrapperTrait = std::true_type;
925};
926
927// V5.2: [10.3] `order` clause
928template <typename T, typename I, typename E> //
929struct OrderT {
930 ENUM(OrderModifier, Reproducible, Unconstrained);
931 ENUM(Ordering, Concurrent);
932 using TupleTrait = std::true_type;
933 std::tuple<OPT(OrderModifier), Ordering> t;
934};
935
936// V5.2: [4.4.4] `ordered` clause
937template <typename T, typename I, typename E> //
938struct OrderedT {
939 using N = E;
940 using WrapperTrait = std::true_type;
941 OPT(N) v;
942};
943
944// V5.2: [7.4.2] `otherwise` clause
945template <typename T, typename I, typename E> //
947 using IncompleteTrait = std::true_type;
948};
949
950// V5.2: [9.2.2] `partial` clause
951template <typename T, typename I, typename E> //
952struct PartialT {
954 using WrapperTrait = std::true_type;
956};
957
958// V6.0: `permutation` clause
959template <typename T, typename I, typename E> //
962 using WrapperTrait = std::true_type;
964};
965
966// V5.2: [12.4] `priority` clause
967template <typename T, typename I, typename E> //
968struct PriorityT {
970 using WrapperTrait = std::true_type;
972};
973
974// V5.2: [5.4.3] `private` clause
975template <typename T, typename I, typename E> //
976struct PrivateT {
978 using WrapperTrait = std::true_type;
980};
981
982// V5.2: [10.1.4] `proc_bind` clause
983template <typename T, typename I, typename E> //
984struct ProcBindT {
985 ENUM(AffinityPolicy, Close, Master, Spread, Primary);
986 using WrapperTrait = std::true_type;
987 AffinityPolicy v;
988};
989
990// V5.2: [15.8.2] Atomic clauses
991template <typename T, typename I, typename E> //
992struct ReadT {
993 using EmptyTrait = std::true_type;
994};
995
996// V5.2: [5.5.8] `reduction` clause
997template <typename T, typename I, typename E> //
1000 // See note at the definition of the ReductionIdentifierT type.
1001 // The name ReductionIdentifiers is not a spec name.
1003 ENUM(ReductionModifier, Default, Inscan, Task);
1004 using TupleTrait = std::true_type;
1005 std::tuple<OPT(ReductionModifier), ReductionIdentifiers, List> t;
1006};
1007
1008// V5.2: [15.8.1] `memory-order` clauses
1009template <typename T, typename I, typename E> //
1010struct RelaxedT {
1011 using EmptyTrait = std::true_type;
1012};
1013
1014// V5.2: [15.8.1] `memory-order` clauses
1015template <typename T, typename I, typename E> //
1016struct ReleaseT {
1017 using EmptyTrait = std::true_type;
1018};
1019
1020// V5.2: [8.2.1] `requirement` clauses
1021template <typename T, typename I, typename E> //
1023 using EmptyTrait = std::true_type;
1024};
1025
1026// V5.2: [10.4.2] `safelen` clause
1027template <typename T, typename I, typename E> //
1028struct SafelenT {
1029 using Length = E;
1030 using WrapperTrait = std::true_type;
1032};
1033
1034// V5.2: [11.5.3] `schedule` clause
1035template <typename T, typename I, typename E> //
1037 ENUM(Kind, Static, Dynamic, Guided, Auto, Runtime);
1038 using ChunkSize = E;
1039 ENUM(OrderingModifier, Monotonic, Nonmonotonic);
1040 ENUM(ChunkModifier, Simd);
1041 using TupleTrait = std::true_type;
1042 std::tuple<Kind, OPT(OrderingModifier), OPT(ChunkModifier), OPT(ChunkSize)> t;
1043};
1044
1045// V5.2: [15.8.1] Memory-order clauses
1046template <typename T, typename I, typename E> //
1047struct SeqCstT {
1048 using EmptyTrait = std::true_type;
1049};
1050
1051// V5.2: [8.5.1] `severity` clause
1052template <typename T, typename I, typename E> //
1054 ENUM(SevLevel, Fatal, Warning);
1055 using WrapperTrait = std::true_type;
1056 SevLevel v;
1057};
1058
1059// V5.2: [5.4.2] `shared` clause
1060template <typename T, typename I, typename E> //
1061struct SharedT {
1063 using WrapperTrait = std::true_type;
1065};
1066
1067// V5.2: [15.10.3] `parallelization-level` clauses
1068template <typename T, typename I, typename E> //
1069struct SimdT {
1070 using EmptyTrait = std::true_type;
1071};
1072
1073// V5.2: [10.4.3] `simdlen` clause
1074template <typename T, typename I, typename E> //
1075struct SimdlenT {
1076 using Length = E;
1077 using WrapperTrait = std::true_type;
1079};
1080
1081// V5.2: [9.1.1] `sizes` clause
1082template <typename T, typename I, typename E> //
1083struct SizesT {
1085 using WrapperTrait = std::true_type;
1087};
1088
1089// V5.2: [5.5.9] `task_reduction` clause
1090template <typename T, typename I, typename E> //
1093 // See note at the definition of the ReductionIdentifierT type.
1094 // The name ReductionIdentifiers is not a spec name.
1096 using TupleTrait = std::true_type;
1097 std::tuple<ReductionIdentifiers, List> t;
1098};
1099
1100// V5.2: [13.3] `thread_limit` clause
1101template <typename T, typename I, typename E> //
1103 using Threadlim = E;
1104 using WrapperTrait = std::true_type;
1106};
1107
1108// V5.2: [15.10.3] `parallelization-level` clauses
1109template <typename T, typename I, typename E> //
1110struct ThreadsT {
1111 using EmptyTrait = std::true_type;
1112};
1113
1114// V5.2: [5.9.1] `to` clause
1115template <typename T, typename I, typename E> //
1116struct ToT {
1118 using Expectation = type::MotionExpectation;
1119 // See note at the definition of the MapperT type.
1120 using Mappers = ListT<type::MapperT<I, E>>; // Not a spec name
1122
1123 using TupleTrait = std::true_type;
1125};
1126
1127// V5.2: [8.2.1] `requirement` clauses
1128template <typename T, typename I, typename E> //
1130 using EmptyTrait = std::true_type;
1131};
1132
1133// V5.2: [8.2.1] `requirement` clauses
1134template <typename T, typename I, typename E> //
1136 using EmptyTrait = std::true_type;
1137};
1138
1139// V5.2: [5.10] `uniform` clause
1140template <typename T, typename I, typename E> //
1141struct UniformT {
1143 using WrapperTrait = std::true_type;
1145};
1146
1147template <typename T, typename I, typename E> //
1148struct UnknownT {
1149 using EmptyTrait = std::true_type;
1150};
1151
1152// V5.2: [12.1] `untied` clause
1153template <typename T, typename I, typename E> //
1154struct UntiedT {
1155 using EmptyTrait = std::true_type;
1156};
1157
1158// Both of the following
1159// V5.2: [15.8.2] `atomic` clauses
1160// V5.2: [15.9.3] `update` clause
1161template <typename T, typename I, typename E> //
1162struct UpdateT {
1163 using DependenceType = tomp::type::DependenceType;
1164 using WrapperTrait = std::true_type;
1166};
1167
1168// V5.2: [14.1.3] `use` clause
1169template <typename T, typename I, typename E> //
1170struct UseT {
1172 using WrapperTrait = std::true_type;
1174};
1175
1176// V5.2: [5.4.10] `use_device_addr` clause
1177template <typename T, typename I, typename E> //
1180 using WrapperTrait = std::true_type;
1182};
1183
1184// V5.2: [5.4.8] `use_device_ptr` clause
1185template <typename T, typename I, typename E> //
1188 using WrapperTrait = std::true_type;
1190};
1191
1192// V5.2: [6.8] `uses_allocators` clause
1193template <typename T, typename I, typename E> //
1195 using MemSpace = E;
1197 using Allocator = E;
1198 struct AllocatorSpec { // Not a spec name
1199 using TupleTrait = std::true_type;
1201 };
1202 using Allocators = ListT<AllocatorSpec>; // Not a spec name
1203 using WrapperTrait = std::true_type;
1205};
1206
1207// V5.2: [15.8.3] `extended-atomic` clauses
1208template <typename T, typename I, typename E> //
1209struct WeakT {
1210 using EmptyTrait = std::true_type;
1211};
1212
1213// V5.2: [7.4.1] `when` clause
1214template <typename T, typename I, typename E> //
1215struct WhenT {
1216 using IncompleteTrait = std::true_type;
1217};
1218
1219// V5.2: [15.8.2] Atomic clauses
1220template <typename T, typename I, typename E> //
1221struct WriteT {
1222 using EmptyTrait = std::true_type;
1223};
1224
1225// ---
1226
1227template <typename T, typename I, typename E>
1229 std::variant<OmpxAttributeT<T, I, E>, OmpxBareT<T, I, E>,
1231
1232template <typename T, typename I, typename E>
1233using EmptyClausesT = std::variant<
1243
1244template <typename T, typename I, typename E>
1246 std::variant<AdjustArgsT<T, I, E>, AppendArgsT<T, I, E>, MatchT<T, I, E>,
1248
1249template <typename T, typename I, typename E>
1251 std::variant<AffinityT<T, I, E>, AlignedT<T, I, E>, AllocateT<T, I, E>,
1258
1259template <typename T, typename I, typename E>
1260using UnionClausesT = std::variant<DependT<T, I, E>>;
1261
1262template <typename T, typename I, typename E>
1263using WrapperClausesT = std::variant<
1280
1281template <typename T, typename I, typename E>
1289 >::type;
1290} // namespace clause
1291
1292using type::operator==;
1293
1294// The variant wrapper that encapsulates all possible specific clauses.
1295// The `Extras` arguments are additional types representing local extensions
1296// to the clause set, e.g.
1297//
1298// using Clause = ClauseT<Type, Id, Expr,
1299// MyClause1, MyClause2>;
1300//
1301// The member Clause::u will be a variant containing all specific clauses
1302// defined above, plus MyClause1 and MyClause2.
1303//
1304// Note: Any derived class must be constructible from the base class
1305// ClauseT<...>.
1306template <typename TypeType, typename IdType, typename ExprType,
1307 typename... Extras>
1308struct ClauseT {
1309 using TypeTy = TypeType;
1310 using IdTy = IdType;
1311 using ExprTy = ExprType;
1312
1313 // Type of "self" to specify this type given a derived class type.
1314 using BaseT = ClauseT<TypeType, IdType, ExprType, Extras...>;
1315
1316 using VariantTy = typename type::Union<
1318 std::variant<Extras...>>::type;
1319
1320 llvm::omp::Clause id; // The numeric id of the clause
1321 using UnionTrait = std::true_type;
1323};
1324
1325template <typename ClauseType> struct DirectiveWithClauses {
1326 llvm::omp::Directive id = llvm::omp::Directive::OMPD_unknown;
1328};
1329
1330} // namespace tomp
1331
1332#undef OPT
1333#undef ENUM
1334
1335#endif // LLVM_FRONTEND_OPENMP_CLAUSET_H
BlockVerifier::State From
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
#define ENUM(Name,...)
Definition: ClauseT.h:61
#define OPT(x)
Definition: ClauseT.h:62
This file defines the DenseMap class.
This file defines the DenseSet and SmallDenseSet classes.
@ Default
Definition: DwarfDebug.cpp:87
global merge func
#define T
uint64_t Thread
Definition: Profile.cpp:48
This file contains some templates that are useful if you are working with the STL at all.
This file defines the SmallVector class.
@ None
static constexpr int Concat[]
constexpr bool is_variant_v
Definition: ClauseT.h:122
OutputIt transform(R &&Range, OutputIt d_first, UnaryFunction F)
Wrapper function around std::transform to apply a function to a range and store the result elsewhere.
Definition: STLExtras.h:1952
typename llvm::remove_cvref< T >::type remove_cvref_t
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858
std::variant< DependT< T, I, E > > UnionClausesT
Definition: ClauseT.h:1260
std::variant< AcqRelT< T, I, E >, AcquireT< T, I, E >, CaptureT< T, I, E >, CompareT< T, I, E >, DynamicAllocatorsT< T, I, E >, FullT< T, I, E >, InbranchT< T, I, E >, MergeableT< T, I, E >, NogroupT< T, I, E >, NoOpenmpRoutinesT< T, I, E >, NoOpenmpT< T, I, E >, NoParallelismT< T, I, E >, NotinbranchT< T, I, E >, NowaitT< T, I, E >, ReadT< T, I, E >, RelaxedT< T, I, E >, ReleaseT< T, I, E >, ReverseOffloadT< T, I, E >, SeqCstT< T, I, E >, SimdT< T, I, E >, ThreadsT< T, I, E >, UnifiedAddressT< T, I, E >, UnifiedSharedMemoryT< T, I, E >, UnknownT< T, I, E >, UntiedT< T, I, E >, UseT< T, I, E >, WeakT< T, I, E >, WriteT< T, I, E > > EmptyClausesT
Definition: ClauseT.h:1242
typename type::Union< EmptyClausesT< T, I, E >, ExtensionClausesT< T, I, E >, IncompleteClausesT< T, I, E >, TupleClausesT< T, I, E >, UnionClausesT< T, I, E >, WrapperClausesT< T, I, E > >::type UnionOfAllClausesT
Definition: ClauseT.h:1289
std::variant< AbsentT< T, I, E >, AlignT< T, I, E >, AllocatorT< T, I, E >, AtomicDefaultMemOrderT< T, I, E >, AtT< T, I, E >, BindT< T, I, E >, CollapseT< T, I, E >, ContainsT< T, I, E >, CopyinT< T, I, E >, CopyprivateT< T, I, E >, DefaultT< T, I, E >, DestroyT< T, I, E >, DetachT< T, I, E >, DeviceTypeT< T, I, E >, EnterT< T, I, E >, ExclusiveT< T, I, E >, FailT< T, I, E >, FilterT< T, I, E >, FinalT< T, I, E >, FirstprivateT< T, I, E >, HasDeviceAddrT< T, I, E >, HintT< T, I, E >, HoldsT< T, I, E >, InclusiveT< T, I, E >, IndirectT< T, I, E >, InitializerT< T, I, E >, IsDevicePtrT< T, I, E >, LinkT< T, I, E >, MessageT< T, I, E >, NocontextT< T, I, E >, NontemporalT< T, I, E >, NovariantsT< T, I, E >, NumTeamsT< T, I, E >, NumThreadsT< T, I, E >, OrderedT< T, I, E >, PartialT< T, I, E >, PriorityT< T, I, E >, PrivateT< T, I, E >, ProcBindT< T, I, E >, SafelenT< T, I, E >, SeverityT< T, I, E >, SharedT< T, I, E >, SimdlenT< T, I, E >, SizesT< T, I, E >, PermutationT< T, I, E >, ThreadLimitT< T, I, E >, UniformT< T, I, E >, UpdateT< T, I, E >, UseDeviceAddrT< T, I, E >, UseDevicePtrT< T, I, E >, UsesAllocatorsT< T, I, E > > WrapperClausesT
Definition: ClauseT.h:1279
std::variant< OmpxAttributeT< T, I, E >, OmpxBareT< T, I, E >, OmpxDynCgroupMemT< T, I, E > > ExtensionClausesT
Definition: ClauseT.h:1230
std::variant< AdjustArgsT< T, I, E >, AppendArgsT< T, I, E >, MatchT< T, I, E >, OtherwiseT< T, I, E >, WhenT< T, I, E > > IncompleteClausesT
Definition: ClauseT.h:1247
std::variant< AffinityT< T, I, E >, AlignedT< T, I, E >, AllocateT< T, I, E >, DefaultmapT< T, I, E >, DeviceT< T, I, E >, DistScheduleT< T, I, E >, DoacrossT< T, I, E >, FromT< T, I, E >, GrainsizeT< T, I, E >, IfT< T, I, E >, InitT< T, I, E >, InReductionT< T, I, E >, LastprivateT< T, I, E >, LinearT< T, I, E >, MapT< T, I, E >, NumTasksT< T, I, E >, OrderT< T, I, E >, ReductionT< T, I, E >, ScheduleT< T, I, E >, TaskReductionT< T, I, E >, ToT< T, I, E > > TupleClausesT
Definition: ClauseT.h:1257
llvm::omp::Directive DirectiveName
Definition: ClauseT.h:191
Definition: ClauseT.h:133
ListT< ResultTy > makeList(ContainerTy &&container, FunctionTy &&func)
Definition: ClauseT.h:318
#define EQ(a, b)
Definition: regexec.c:112
static constexpr bool value
Definition: ClauseT.h:115
IdType IdTy
Definition: ClauseT.h:1310
std::true_type UnionTrait
Definition: ClauseT.h:1321
ExprType ExprTy
Definition: ClauseT.h:1311
typename type::Union< clause::UnionOfAllClausesT< TypeType, IdType, ExprType >, std::variant< Extras... > >::type VariantTy
Definition: ClauseT.h:1318
VariantTy u
Definition: ClauseT.h:1322
llvm::omp::Clause id
Definition: ClauseT.h:1320
TypeType TypeTy
Definition: ClauseT.h:1309
tomp::type::ListT< ClauseType > clauses
Definition: ClauseT.h:1327
std::true_type WrapperTrait
Definition: ClauseT.h:331
std::true_type EmptyTrait
Definition: ClauseT.h:338
std::true_type EmptyTrait
Definition: ClauseT.h:344
std::true_type IncompleteTrait
Definition: ClauseT.h:350
std::tuple< OPT(Iterator), LocatorList > t
Definition: ClauseT.h:360
std::true_type TupleTrait
Definition: ClauseT.h:359
std::true_type WrapperTrait
Definition: ClauseT.h:368
std::tuple< OPT(Alignment), List > t
Definition: ClauseT.h:379
std::true_type TupleTrait
Definition: ClauseT.h:378
std::true_type TupleTrait
Definition: ClauseT.h:393
std::tuple< OPT(AllocatorComplexModifier), OPT(AlignModifier), List > t
Definition: ClauseT.h:394
std::true_type WrapperTrait
Definition: ClauseT.h:401
std::true_type IncompleteTrait
Definition: ClauseT.h:408
ActionTime v
Definition: ClauseT.h:416
ENUM(ActionTime, Compilation, Execution)
std::true_type WrapperTrait
Definition: ClauseT.h:415
ENUM(Binding, Teams, Parallel, Thread)
std::true_type WrapperTrait
Definition: ClauseT.h:431
std::true_type EmptyTrait
Definition: ClauseT.h:438
std::true_type WrapperTrait
Definition: ClauseT.h:445
std::true_type EmptyTrait
Definition: ClauseT.h:452
std::true_type WrapperTrait
Definition: ClauseT.h:459
std::true_type WrapperTrait
Definition: ClauseT.h:467
std::true_type WrapperTrait
Definition: ClauseT.h:475
DataSharingAttribute v
Definition: ClauseT.h:484
std::true_type WrapperTrait
Definition: ClauseT.h:483
ENUM(DataSharingAttribute, Firstprivate, None, Private, Shared)
ENUM(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None, Default, Present)
ENUM(VariableCategory, All, Scalar, Aggregate, Pointer, Allocatable)
std::tuple< ImplicitBehavior, OPT(VariableCategory)> t
Definition: ClauseT.h:494
std::true_type TupleTrait
Definition: ClauseT.h:493
std::true_type TupleTrait
Definition: ClauseT.h:508
std::tuple< DependenceType, OPT(Iterator), LocatorList > t
Definition: ClauseT.h:510
tomp::type::DependenceType DependenceType
Definition: ClauseT.h:505
std::true_type UnionTrait
Definition: ClauseT.h:514
std::variant< Doacross, TaskDep > u
Definition: ClauseT.h:515
std::true_type WrapperTrait
Definition: ClauseT.h:522
EventHandle v
Definition: ClauseT.h:532
std::true_type WrapperTrait
Definition: ClauseT.h:531
std::tuple< OPT(DeviceModifier), DeviceDescription > t
Definition: ClauseT.h:541
std::true_type TupleTrait
Definition: ClauseT.h:540
ENUM(DeviceModifier, Ancestor, DeviceNum)
DeviceTypeDescription v
Definition: ClauseT.h:549
std::true_type WrapperTrait
Definition: ClauseT.h:548
ENUM(DeviceTypeDescription, Any, Host, Nohost)
std::tuple< Kind, OPT(ChunkSize)> t
Definition: ClauseT.h:558
std::true_type TupleTrait
Definition: ClauseT.h:557
std::true_type TupleTrait
Definition: ClauseT.h:566
tomp::type::DependenceType DependenceType
Definition: ClauseT.h:565
std::tuple< DependenceType, Vector > t
Definition: ClauseT.h:568
std::true_type WrapperTrait
Definition: ClauseT.h:581
std::true_type WrapperTrait
Definition: ClauseT.h:588
MemoryOrder v
Definition: ClauseT.h:598
std::true_type WrapperTrait
Definition: ClauseT.h:597
type::MemoryOrder MemoryOrder
Definition: ClauseT.h:596
std::true_type WrapperTrait
Definition: ClauseT.h:605
std::true_type WrapperTrait
Definition: ClauseT.h:613
std::true_type WrapperTrait
Definition: ClauseT.h:621
std::true_type TupleTrait
Definition: ClauseT.h:634
std::tuple< OPT(Expectation), OPT(Mappers), OPT(Iterator), LocatorList > t
Definition: ClauseT.h:635
type::MotionExpectation Expectation
Definition: ClauseT.h:629
std::true_type EmptyTrait
Definition: ClauseT.h:641
type::Prescriptiveness Prescriptiveness
Definition: ClauseT.h:647
std::true_type TupleTrait
Definition: ClauseT.h:649
std::tuple< OPT(Prescriptiveness), GrainSize > t
Definition: ClauseT.h:650
std::true_type WrapperTrait
Definition: ClauseT.h:657
std::true_type WrapperTrait
Definition: ClauseT.h:665
std::true_type WrapperTrait
Definition: ClauseT.h:672
std::tuple< OPT(DirectiveNameModifier), IfExpression > t
Definition: ClauseT.h:682
std::true_type TupleTrait
Definition: ClauseT.h:681
type::DirectiveName DirectiveNameModifier
Definition: ClauseT.h:679
std::tuple< ReductionIdentifiers, List > t
Definition: ClauseT.h:736
std::true_type TupleTrait
Definition: ClauseT.h:735
std::true_type EmptyTrait
Definition: ClauseT.h:688
std::true_type WrapperTrait
Definition: ClauseT.h:695
std::true_type WrapperTrait
Definition: ClauseT.h:703
InvokedByFptr v
Definition: ClauseT.h:704
ListT< InteropType > InteropTypes
Definition: ClauseT.h:714
std::tuple< OPT(InteropPreference), InteropTypes, InteropVar > t
Definition: ClauseT.h:717
ENUM(InteropType, Target, Targetsync)
std::true_type TupleTrait
Definition: ClauseT.h:716
InitializerExpr v
Definition: ClauseT.h:725
std::true_type WrapperTrait
Definition: ClauseT.h:724
std::true_type WrapperTrait
Definition: ClauseT.h:743
std::tuple< OPT(LastprivateModifier), List > t
Definition: ClauseT.h:753
ENUM(LastprivateModifier, Conditional)
std::true_type TupleTrait
Definition: ClauseT.h:752
std::true_type TupleTrait
Definition: ClauseT.h:765
std::tuple< OPT(StepComplexModifier), OPT(LinearModifier), List > t
Definition: ClauseT.h:767
ENUM(LinearModifier, Ref, Val, Uval)
std::true_type WrapperTrait
Definition: ClauseT.h:774
ENUM(MapTypeModifier, Always, Close, Present, OmpxHold)
ENUM(MapType, To, From, Tofrom, Alloc, Release, Delete)
std::tuple< OPT(MapType), OPT(MapTypeModifiers), OPT(Mappers), OPT(Iterator), LocatorList > t
Definition: ClauseT.h:792
std::true_type TupleTrait
Definition: ClauseT.h:789
std::true_type IncompleteTrait
Definition: ClauseT.h:798
std::true_type EmptyTrait
Definition: ClauseT.h:804
std::true_type WrapperTrait
Definition: ClauseT.h:811
std::true_type EmptyTrait
Definition: ClauseT.h:840
std::true_type EmptyTrait
Definition: ClauseT.h:852
std::true_type WrapperTrait
Definition: ClauseT.h:819
DoNotUpdateContext v
Definition: ClauseT.h:820
std::true_type EmptyTrait
Definition: ClauseT.h:826
std::true_type WrapperTrait
Definition: ClauseT.h:833
std::true_type EmptyTrait
Definition: ClauseT.h:858
std::true_type WrapperTrait
Definition: ClauseT.h:865
DoNotUseVariant v
Definition: ClauseT.h:866
std::true_type EmptyTrait
Definition: ClauseT.h:872
std::tuple< OPT(Prescriptiveness), NumTasks > t
Definition: ClauseT.h:881
type::Prescriptiveness Prescriptiveness
Definition: ClauseT.h:878
std::true_type TupleTrait
Definition: ClauseT.h:880
std::true_type TupleTrait
Definition: ClauseT.h:892
std::tuple< OPT(LowerBound), UpperBound > t
Definition: ClauseT.h:893
std::true_type WrapperTrait
Definition: ClauseT.h:899
std::true_type WrapperTrait
Definition: ClauseT.h:907
std::true_type EmptyTrait
Definition: ClauseT.h:913
std::true_type EmptyTrait
Definition: ClauseT.h:918
std::true_type WrapperTrait
Definition: ClauseT.h:923
std::tuple< OPT(OrderModifier), Ordering > t
Definition: ClauseT.h:933
ENUM(OrderModifier, Reproducible, Unconstrained)
std::true_type TupleTrait
Definition: ClauseT.h:932
ENUM(Ordering, Concurrent)
std::true_type WrapperTrait
Definition: ClauseT.h:940
std::true_type IncompleteTrait
Definition: ClauseT.h:947
std::true_type WrapperTrait
Definition: ClauseT.h:954
OPT(UnrollFactor) v
std::true_type WrapperTrait
Definition: ClauseT.h:962
std::true_type WrapperTrait
Definition: ClauseT.h:970
PriorityValue v
Definition: ClauseT.h:971
std::true_type WrapperTrait
Definition: ClauseT.h:978
AffinityPolicy v
Definition: ClauseT.h:987
std::true_type WrapperTrait
Definition: ClauseT.h:986
ENUM(AffinityPolicy, Close, Master, Spread, Primary)
std::true_type EmptyTrait
Definition: ClauseT.h:993
std::true_type TupleTrait
Definition: ClauseT.h:1004
std::tuple< OPT(ReductionModifier), ReductionIdentifiers, List > t
Definition: ClauseT.h:1005
ENUM(ReductionModifier, Default, Inscan, Task)
ListT< type::ReductionIdentifierT< I, E > > ReductionIdentifiers
Definition: ClauseT.h:1002
std::true_type EmptyTrait
Definition: ClauseT.h:1011
std::true_type EmptyTrait
Definition: ClauseT.h:1017
std::true_type EmptyTrait
Definition: ClauseT.h:1023
std::true_type WrapperTrait
Definition: ClauseT.h:1030
std::true_type TupleTrait
Definition: ClauseT.h:1041
std::tuple< Kind, OPT(OrderingModifier), OPT(ChunkModifier), OPT(ChunkSize)> t
Definition: ClauseT.h:1042
ENUM(OrderingModifier, Monotonic, Nonmonotonic)
ENUM(ChunkModifier, Simd)
ENUM(Kind, Static, Dynamic, Guided, Auto, Runtime)
std::true_type EmptyTrait
Definition: ClauseT.h:1048
ENUM(SevLevel, Fatal, Warning)
std::true_type WrapperTrait
Definition: ClauseT.h:1055
std::true_type WrapperTrait
Definition: ClauseT.h:1063
std::true_type EmptyTrait
Definition: ClauseT.h:1070
std::true_type WrapperTrait
Definition: ClauseT.h:1077
std::true_type WrapperTrait
Definition: ClauseT.h:1085
std::true_type TupleTrait
Definition: ClauseT.h:1096
std::tuple< ReductionIdentifiers, List > t
Definition: ClauseT.h:1097
std::true_type WrapperTrait
Definition: ClauseT.h:1104
std::true_type EmptyTrait
Definition: ClauseT.h:1111
std::true_type TupleTrait
Definition: ClauseT.h:1123
type::MotionExpectation Expectation
Definition: ClauseT.h:1118
std::tuple< OPT(Expectation), OPT(Mappers), OPT(Iterator), LocatorList > t
Definition: ClauseT.h:1124
std::true_type EmptyTrait
Definition: ClauseT.h:1130
std::true_type WrapperTrait
Definition: ClauseT.h:1143
ParameterList v
Definition: ClauseT.h:1144
std::true_type EmptyTrait
Definition: ClauseT.h:1149
std::true_type EmptyTrait
Definition: ClauseT.h:1155
OPT(DependenceType) v
std::true_type WrapperTrait
Definition: ClauseT.h:1164
tomp::type::DependenceType DependenceType
Definition: ClauseT.h:1163
std::true_type WrapperTrait
Definition: ClauseT.h:1180
std::true_type WrapperTrait
Definition: ClauseT.h:1188
InteropVar v
Definition: ClauseT.h:1173
std::true_type WrapperTrait
Definition: ClauseT.h:1172
std::tuple< OPT(MemSpace), OPT(TraitsArray), Allocator > t
Definition: ClauseT.h:1200
std::true_type WrapperTrait
Definition: ClauseT.h:1203
std::true_type EmptyTrait
Definition: ClauseT.h:1210
std::true_type IncompleteTrait
Definition: ClauseT.h:1216
std::true_type EmptyTrait
Definition: ClauseT.h:1222
std::true_type UnionTrait
Definition: ClauseT.h:201
std::variant< DefinedOpName, IntrinsicOperator > u
Definition: ClauseT.h:202
ENUM(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat, LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV, Min, Max)
std::true_type TupleTrait
Definition: ClauseT.h:217
std::tuple< OPT(TypeType), ObjectT< IdType, ExprType >, RangeT< ExprType > > t
Definition: ClauseT.h:218
std::tuple< DefinedOperatorT< I, E >, E > t
Definition: ClauseT.h:251
std::tuple< ObjectT< I, E >, OPT(Distance)> t
Definition: ClauseT.h:254
std::true_type TupleTrait
Definition: ClauseT.h:253
MapperIdentifier v
Definition: ClauseT.h:234
std::true_type WrapperTrait
Definition: ClauseT.h:233
std::true_type TupleTrait
Definition: ClauseT.h:209
std::tuple< E, E, OPT(E)> t
Definition: ClauseT.h:210
std::variant< DefinedOperatorT< I, E >, ProcedureDesignatorT< I, E > > u
Definition: ClauseT.h:273
typename detail::UnionOfTwo< T, typename Union< Ts... >::type >::type type
Definition: ClauseT.h:148
std::variant<> type
Definition: ClauseT.h:142