15 #include "llvm/ADT/StringRef.h" 16 #include "llvm/ADT/StringSwitch.h" 17 #include "llvm/Support/ErrorHandling.h" 20 using namespace clang;
23 return llvm::StringSwitch<OpenMPDirectiveKind>(Str)
25 #define OPENMP_DIRECTIVE_EXT(Name, Str) .Case(Str, OMPD_##Name) 26 #include "clang/Basic/OpenMPKinds.def" 35 #define OPENMP_DIRECTIVE(Name) \ 38 #define OPENMP_DIRECTIVE_EXT(Name, Str) \ 41 #include "clang/Basic/OpenMPKinds.def" 44 llvm_unreachable(
"Invalid OpenMP directive kind");
54 return llvm::StringSwitch<OpenMPClauseKind>(Str)
56 #include "clang/Basic/OpenMPKinds.def" 66 #define OPENMP_CLAUSE(Name, Class) \ 69 #include "clang/Basic/OpenMPKinds.def" 73 return "threadprivate or thread local";
75 llvm_unreachable(
"Invalid OpenMP clause kind");
82 return llvm::StringSwitch<OpenMPDefaultClauseKind>(Str)
84 #include "clang/Basic/OpenMPKinds.def" 87 return llvm::StringSwitch<OpenMPProcBindClauseKind>(Str)
89 #include "clang/Basic/OpenMPKinds.def" 92 return llvm::StringSwitch<unsigned>(Str)
94 .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_##Name))
95 #define OPENMP_SCHEDULE_MODIFIER(Name) \ 96 .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_MODIFIER_##Name)) 97 #include "clang/Basic/OpenMPKinds.def" 100 return llvm::StringSwitch<OpenMPDependClauseKind>(Str)
102 #include "clang/Basic/OpenMPKinds.def" 105 return llvm::StringSwitch<OpenMPLinearClauseKind>(Str)
107 #include "clang/Basic/OpenMPKinds.def" 110 return llvm::StringSwitch<unsigned>(Str)
112 .Case(#Name, static_cast<unsigned>(OMPC_MAP_##Name))
113 #define OPENMP_MAP_MODIFIER_KIND(Name) \ 114 .Case(#Name, static_cast<unsigned>(OMPC_MAP_MODIFIER_##Name)) 115 #include "clang/Basic/OpenMPKinds.def" 118 return llvm::StringSwitch<unsigned>(Str)
120 .Case(#Name, static_cast<unsigned>(OMPC_TO_MODIFIER_##Name))
121 #include "clang/Basic/OpenMPKinds.def" 124 return llvm::StringSwitch<unsigned>(Str)
126 .Case(#Name, static_cast<unsigned>(OMPC_FROM_MODIFIER_##Name))
127 #include "clang/Basic/OpenMPKinds.def" 129 case OMPC_dist_schedule:
130 return llvm::StringSwitch<OpenMPDistScheduleClauseKind>(Str)
132 #include "clang/Basic/OpenMPKinds.def" 134 case OMPC_defaultmap:
135 return llvm::StringSwitch<unsigned>(Str)
137 .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_##Name))
138 #define OPENMP_DEFAULTMAP_MODIFIER(Name) \ 139 .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_MODIFIER_##Name)) 140 #include "clang/Basic/OpenMPKinds.def" 142 case OMPC_atomic_default_mem_order:
143 return llvm::StringSwitch<OpenMPAtomicDefaultMemOrderClauseKind>(Str)
145 .Case(#Name, OMPC_ATOMIC_DEFAULT_MEM_ORDER_##Name)
146 #include "clang/Basic/OpenMPKinds.def" 152 case OMPC_num_threads:
159 case OMPC_firstprivate:
160 case OMPC_lastprivate:
163 case OMPC_task_reduction:
164 case OMPC_in_reduction:
167 case OMPC_copyprivate:
182 case OMPC_thread_limit:
189 case OMPC_use_device_ptr:
190 case OMPC_is_device_ptr:
191 case OMPC_unified_address:
192 case OMPC_unified_shared_memory:
193 case OMPC_reverse_offload:
194 case OMPC_dynamic_allocators:
197 llvm_unreachable(
"Invalid OpenMP simple clause kind");
207 #define OPENMP_DEFAULT_KIND(Name) \ 208 case OMPC_DEFAULT_##Name: \ 210 #include "clang/Basic/OpenMPKinds.def" 212 llvm_unreachable(
"Invalid OpenMP 'default' clause type");
217 #define OPENMP_PROC_BIND_KIND(Name) \ 218 case OMPC_PROC_BIND_##Name: \ 220 #include "clang/Basic/OpenMPKinds.def" 222 llvm_unreachable(
"Invalid OpenMP 'proc_bind' clause type");
228 #define OPENMP_SCHEDULE_KIND(Name) \ 229 case OMPC_SCHEDULE_##Name: \ 231 #define OPENMP_SCHEDULE_MODIFIER(Name) \ 232 case OMPC_SCHEDULE_MODIFIER_##Name: \ 234 #include "clang/Basic/OpenMPKinds.def" 236 llvm_unreachable(
"Invalid OpenMP 'schedule' clause type");
241 #define OPENMP_DEPEND_KIND(Name) \ 242 case OMPC_DEPEND_##Name: \ 244 #include "clang/Basic/OpenMPKinds.def" 246 llvm_unreachable(
"Invalid OpenMP 'depend' clause type");
251 #define OPENMP_LINEAR_KIND(Name) \ 252 case OMPC_LINEAR_##Name: \ 254 #include "clang/Basic/OpenMPKinds.def" 256 llvm_unreachable(
"Invalid OpenMP 'linear' clause type");
262 #define OPENMP_MAP_KIND(Name) \ 263 case OMPC_MAP_##Name: \ 265 #define OPENMP_MAP_MODIFIER_KIND(Name) \ 266 case OMPC_MAP_MODIFIER_##Name: \ 268 #include "clang/Basic/OpenMPKinds.def" 272 llvm_unreachable(
"Invalid OpenMP 'map' clause type");
277 #define OPENMP_TO_MODIFIER_KIND(Name) \ 278 case OMPC_TO_MODIFIER_##Name: \ 280 #include "clang/Basic/OpenMPKinds.def" 284 llvm_unreachable(
"Invalid OpenMP 'to' clause type");
289 #define OPENMP_FROM_MODIFIER_KIND(Name) \ 290 case OMPC_FROM_MODIFIER_##Name: \ 292 #include "clang/Basic/OpenMPKinds.def" 296 llvm_unreachable(
"Invalid OpenMP 'from' clause type");
297 case OMPC_dist_schedule:
301 #define OPENMP_DIST_SCHEDULE_KIND(Name) \ 302 case OMPC_DIST_SCHEDULE_##Name: \ 304 #include "clang/Basic/OpenMPKinds.def" 306 llvm_unreachable(
"Invalid OpenMP 'dist_schedule' clause type");
307 case OMPC_defaultmap:
312 #define OPENMP_DEFAULTMAP_KIND(Name) \ 313 case OMPC_DEFAULTMAP_##Name: \ 315 #define OPENMP_DEFAULTMAP_MODIFIER(Name) \ 316 case OMPC_DEFAULTMAP_MODIFIER_##Name: \ 318 #include "clang/Basic/OpenMPKinds.def" 320 llvm_unreachable(
"Invalid OpenMP 'schedule' clause type");
321 case OMPC_atomic_default_mem_order:
325 #define OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND(Name) \ 326 case OMPC_ATOMIC_DEFAULT_MEM_ORDER_##Name: \ 328 #include "clang/Basic/OpenMPKinds.def" 330 llvm_unreachable(
"Invalid OpenMP 'atomic_default_mem_order' clause type");
335 case OMPC_num_threads:
342 case OMPC_firstprivate:
343 case OMPC_lastprivate:
346 case OMPC_task_reduction:
347 case OMPC_in_reduction:
350 case OMPC_copyprivate:
365 case OMPC_thread_limit:
372 case OMPC_use_device_ptr:
373 case OMPC_is_device_ptr:
374 case OMPC_unified_address:
375 case OMPC_unified_shared_memory:
376 case OMPC_reverse_offload:
377 case OMPC_dynamic_allocators:
380 llvm_unreachable(
"Invalid OpenMP simple clause kind");
390 #define OPENMP_PARALLEL_CLAUSE(Name) \ 393 #include "clang/Basic/OpenMPKinds.def" 400 #define OPENMP_SIMD_CLAUSE(Name) \ 403 #include "clang/Basic/OpenMPKinds.def" 410 #define OPENMP_FOR_CLAUSE(Name) \ 413 #include "clang/Basic/OpenMPKinds.def" 420 #define OPENMP_FOR_SIMD_CLAUSE(Name) \ 423 #include "clang/Basic/OpenMPKinds.def" 430 #define OPENMP_SECTIONS_CLAUSE(Name) \ 433 #include "clang/Basic/OpenMPKinds.def" 440 #define OPENMP_SINGLE_CLAUSE(Name) \ 443 #include "clang/Basic/OpenMPKinds.def" 448 case OMPD_parallel_for:
450 #define OPENMP_PARALLEL_FOR_CLAUSE(Name) \ 453 #include "clang/Basic/OpenMPKinds.def" 458 case OMPD_parallel_for_simd:
460 #define OPENMP_PARALLEL_FOR_SIMD_CLAUSE(Name) \ 463 #include "clang/Basic/OpenMPKinds.def" 468 case OMPD_parallel_sections:
470 #define OPENMP_PARALLEL_SECTIONS_CLAUSE(Name) \ 473 #include "clang/Basic/OpenMPKinds.def" 480 #define OPENMP_TASK_CLAUSE(Name) \ 483 #include "clang/Basic/OpenMPKinds.def" 489 return CKind == OMPC_flush;
493 #define OPENMP_ATOMIC_CLAUSE(Name) \ 496 #include "clang/Basic/OpenMPKinds.def" 503 #define OPENMP_TARGET_CLAUSE(Name) \ 506 #include "clang/Basic/OpenMPKinds.def" 513 #define OPENMP_REQUIRES_CLAUSE(Name) \ 516 #include "clang/Basic/OpenMPKinds.def" 521 case OMPD_target_data:
523 #define OPENMP_TARGET_DATA_CLAUSE(Name) \ 526 #include "clang/Basic/OpenMPKinds.def" 531 case OMPD_target_enter_data:
533 #define OPENMP_TARGET_ENTER_DATA_CLAUSE(Name) \ 536 #include "clang/Basic/OpenMPKinds.def" 541 case OMPD_target_exit_data:
543 #define OPENMP_TARGET_EXIT_DATA_CLAUSE(Name) \ 546 #include "clang/Basic/OpenMPKinds.def" 551 case OMPD_target_parallel:
553 #define OPENMP_TARGET_PARALLEL_CLAUSE(Name) \ 556 #include "clang/Basic/OpenMPKinds.def" 561 case OMPD_target_parallel_for:
563 #define OPENMP_TARGET_PARALLEL_FOR_CLAUSE(Name) \ 566 #include "clang/Basic/OpenMPKinds.def" 571 case OMPD_target_update:
573 #define OPENMP_TARGET_UPDATE_CLAUSE(Name) \ 576 #include "clang/Basic/OpenMPKinds.def" 583 #define OPENMP_TEAMS_CLAUSE(Name) \ 586 #include "clang/Basic/OpenMPKinds.def" 591 case OMPD_declare_simd:
595 #define OPENMP_CANCEL_CLAUSE(Name) \ 598 #include "clang/Basic/OpenMPKinds.def" 605 #define OPENMP_ORDERED_CLAUSE(Name) \ 608 #include "clang/Basic/OpenMPKinds.def" 615 #define OPENMP_TASKLOOP_CLAUSE(Name) \ 618 #include "clang/Basic/OpenMPKinds.def" 623 case OMPD_taskloop_simd:
625 #define OPENMP_TASKLOOP_SIMD_CLAUSE(Name) \ 628 #include "clang/Basic/OpenMPKinds.def" 635 #define OPENMP_CRITICAL_CLAUSE(Name) \ 638 #include "clang/Basic/OpenMPKinds.def" 643 case OMPD_distribute:
645 #define OPENMP_DISTRIBUTE_CLAUSE(Name) \ 648 #include "clang/Basic/OpenMPKinds.def" 653 case OMPD_distribute_parallel_for:
655 #define OPENMP_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name) \ 658 #include "clang/Basic/OpenMPKinds.def" 663 case OMPD_distribute_parallel_for_simd:
665 #define OPENMP_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name) \ 668 #include "clang/Basic/OpenMPKinds.def" 673 case OMPD_distribute_simd:
675 #define OPENMP_DISTRIBUTE_SIMD_CLAUSE(Name) \ 678 #include "clang/Basic/OpenMPKinds.def" 683 case OMPD_target_parallel_for_simd:
685 #define OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE(Name) \ 688 #include "clang/Basic/OpenMPKinds.def" 693 case OMPD_target_simd:
695 #define OPENMP_TARGET_SIMD_CLAUSE(Name) \ 698 #include "clang/Basic/OpenMPKinds.def" 703 case OMPD_teams_distribute:
705 #define OPENMP_TEAMS_DISTRIBUTE_CLAUSE(Name) \ 708 #include "clang/Basic/OpenMPKinds.def" 713 case OMPD_teams_distribute_simd:
715 #define OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(Name) \ 718 #include "clang/Basic/OpenMPKinds.def" 723 case OMPD_teams_distribute_parallel_for_simd:
725 #define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name) \ 728 #include "clang/Basic/OpenMPKinds.def" 733 case OMPD_teams_distribute_parallel_for:
735 #define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name) \ 738 #include "clang/Basic/OpenMPKinds.def" 743 case OMPD_target_teams:
745 #define OPENMP_TARGET_TEAMS_CLAUSE(Name) \ 748 #include "clang/Basic/OpenMPKinds.def" 753 case OMPD_target_teams_distribute:
755 #define OPENMP_TARGET_TEAMS_DISTRIBUTE_CLAUSE(Name) \ 758 #include "clang/Basic/OpenMPKinds.def" 763 case OMPD_target_teams_distribute_parallel_for:
765 #define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name) \ 768 #include "clang/Basic/OpenMPKinds.def" 773 case OMPD_target_teams_distribute_parallel_for_simd:
775 #define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name) \ 778 #include "clang/Basic/OpenMPKinds.def" 783 case OMPD_target_teams_distribute_simd:
785 #define OPENMP_TARGET_TEAMS_DISTRIBUTE_SIMD_CLAUSE(Name) \ 788 #include "clang/Basic/OpenMPKinds.def" 795 #define OPENMP_TASKGROUP_CLAUSE(Name) \ 798 #include "clang/Basic/OpenMPKinds.def" 803 case OMPD_declare_mapper:
805 #define OPENMP_DECLARE_MAPPER_CLAUSE(Name) \ 808 #include "clang/Basic/OpenMPKinds.def" 815 #define OPENMP_ALLOCATE_CLAUSE(Name) \ 818 #include "clang/Basic/OpenMPKinds.def" 823 case OMPD_declare_target:
824 case OMPD_end_declare_target:
826 case OMPD_threadprivate:
832 case OMPD_cancellation_point:
833 case OMPD_declare_reduction:
840 return DKind == OMPD_simd || DKind == OMPD_for || DKind == OMPD_for_simd ||
841 DKind == OMPD_parallel_for || DKind == OMPD_parallel_for_simd ||
842 DKind == OMPD_taskloop || DKind == OMPD_taskloop_simd ||
843 DKind == OMPD_distribute || DKind == OMPD_target_parallel_for ||
844 DKind == OMPD_distribute_parallel_for ||
845 DKind == OMPD_distribute_parallel_for_simd ||
846 DKind == OMPD_distribute_simd ||
847 DKind == OMPD_target_parallel_for_simd || DKind == OMPD_target_simd ||
848 DKind == OMPD_teams_distribute ||
849 DKind == OMPD_teams_distribute_simd ||
850 DKind == OMPD_teams_distribute_parallel_for_simd ||
851 DKind == OMPD_teams_distribute_parallel_for ||
852 DKind == OMPD_target_teams_distribute ||
853 DKind == OMPD_target_teams_distribute_parallel_for ||
854 DKind == OMPD_target_teams_distribute_parallel_for_simd ||
855 DKind == OMPD_target_teams_distribute_simd;
859 return DKind == OMPD_for || DKind == OMPD_for_simd ||
860 DKind == OMPD_sections || DKind == OMPD_section ||
861 DKind == OMPD_single || DKind == OMPD_parallel_for ||
862 DKind == OMPD_parallel_for_simd || DKind == OMPD_parallel_sections ||
863 DKind == OMPD_target_parallel_for ||
864 DKind == OMPD_distribute_parallel_for ||
865 DKind == OMPD_distribute_parallel_for_simd ||
866 DKind == OMPD_target_parallel_for_simd ||
867 DKind == OMPD_teams_distribute_parallel_for_simd ||
868 DKind == OMPD_teams_distribute_parallel_for ||
869 DKind == OMPD_target_teams_distribute_parallel_for ||
870 DKind == OMPD_target_teams_distribute_parallel_for_simd;
874 return DKind == OMPD_taskloop || DKind == OMPD_taskloop_simd;
878 return DKind == OMPD_parallel || DKind == OMPD_parallel_for ||
879 DKind == OMPD_parallel_for_simd || DKind == OMPD_parallel_sections ||
880 DKind == OMPD_target_parallel || DKind == OMPD_target_parallel_for ||
881 DKind == OMPD_distribute_parallel_for ||
882 DKind == OMPD_distribute_parallel_for_simd ||
883 DKind == OMPD_target_parallel_for_simd ||
884 DKind == OMPD_teams_distribute_parallel_for ||
885 DKind == OMPD_teams_distribute_parallel_for_simd ||
886 DKind == OMPD_target_teams_distribute_parallel_for ||
887 DKind == OMPD_target_teams_distribute_parallel_for_simd;
891 return DKind == OMPD_target || DKind == OMPD_target_parallel ||
892 DKind == OMPD_target_parallel_for ||
893 DKind == OMPD_target_parallel_for_simd || DKind == OMPD_target_simd ||
894 DKind == OMPD_target_teams || DKind == OMPD_target_teams_distribute ||
895 DKind == OMPD_target_teams_distribute_parallel_for ||
896 DKind == OMPD_target_teams_distribute_parallel_for_simd ||
897 DKind == OMPD_target_teams_distribute_simd;
901 return DKind == OMPD_target_data || DKind == OMPD_target_enter_data ||
902 DKind == OMPD_target_exit_data || DKind == OMPD_target_update;
906 return DKind == OMPD_teams || DKind == OMPD_teams_distribute ||
907 DKind == OMPD_teams_distribute_simd ||
908 DKind == OMPD_teams_distribute_parallel_for_simd ||
909 DKind == OMPD_teams_distribute_parallel_for;
914 DKind == OMPD_target_teams || DKind == OMPD_target_teams_distribute ||
915 DKind == OMPD_target_teams_distribute_parallel_for ||
916 DKind == OMPD_target_teams_distribute_parallel_for_simd ||
917 DKind == OMPD_target_teams_distribute_simd;
921 return DKind == OMPD_simd || DKind == OMPD_for_simd ||
922 DKind == OMPD_parallel_for_simd || DKind == OMPD_taskloop_simd ||
923 DKind == OMPD_distribute_parallel_for_simd ||
924 DKind == OMPD_distribute_simd || DKind == OMPD_target_simd ||
925 DKind == OMPD_teams_distribute_simd ||
926 DKind == OMPD_teams_distribute_parallel_for_simd ||
927 DKind == OMPD_target_teams_distribute_parallel_for_simd ||
928 DKind == OMPD_target_teams_distribute_simd ||
929 DKind == OMPD_target_parallel_for_simd;
933 return Kind == OMPD_distribute || Kind == OMPD_distribute_parallel_for ||
934 Kind == OMPD_distribute_parallel_for_simd ||
935 Kind == OMPD_distribute_simd;
941 Kind == OMPD_teams_distribute || Kind == OMPD_teams_distribute_simd ||
942 Kind == OMPD_teams_distribute_parallel_for_simd ||
943 Kind == OMPD_teams_distribute_parallel_for ||
944 Kind == OMPD_target_teams_distribute ||
945 Kind == OMPD_target_teams_distribute_parallel_for ||
946 Kind == OMPD_target_teams_distribute_parallel_for_simd ||
947 Kind == OMPD_target_teams_distribute_simd;
951 return Kind == OMPC_private || Kind == OMPC_firstprivate ||
952 Kind == OMPC_lastprivate || Kind == OMPC_linear ||
953 Kind == OMPC_reduction || Kind == OMPC_task_reduction ||
954 Kind == OMPC_in_reduction;
966 return Kind == OMPD_distribute_parallel_for ||
967 Kind == OMPD_distribute_parallel_for_simd ||
968 Kind == OMPD_teams_distribute_parallel_for_simd ||
969 Kind == OMPD_teams_distribute_parallel_for ||
970 Kind == OMPD_target_teams_distribute_parallel_for ||
971 Kind == OMPD_target_teams_distribute_parallel_for_simd;
980 case OMPD_parallel_for:
981 case OMPD_parallel_for_simd:
982 case OMPD_parallel_sections:
983 case OMPD_distribute_parallel_for:
984 case OMPD_distribute_parallel_for_simd:
985 CaptureRegions.push_back(OMPD_parallel);
987 case OMPD_target_teams:
988 case OMPD_target_teams_distribute:
989 case OMPD_target_teams_distribute_simd:
990 CaptureRegions.push_back(OMPD_task);
991 CaptureRegions.push_back(OMPD_target);
992 CaptureRegions.push_back(OMPD_teams);
995 case OMPD_teams_distribute:
996 case OMPD_teams_distribute_simd:
997 CaptureRegions.push_back(OMPD_teams);
1000 case OMPD_target_simd:
1001 CaptureRegions.push_back(OMPD_task);
1002 CaptureRegions.push_back(OMPD_target);
1004 case OMPD_teams_distribute_parallel_for:
1005 case OMPD_teams_distribute_parallel_for_simd:
1006 CaptureRegions.push_back(OMPD_teams);
1007 CaptureRegions.push_back(OMPD_parallel);
1009 case OMPD_target_parallel:
1010 case OMPD_target_parallel_for:
1011 case OMPD_target_parallel_for_simd:
1012 CaptureRegions.push_back(OMPD_task);
1013 CaptureRegions.push_back(OMPD_target);
1014 CaptureRegions.push_back(OMPD_parallel);
1017 case OMPD_target_enter_data:
1018 case OMPD_target_exit_data:
1019 case OMPD_target_update:
1020 CaptureRegions.push_back(OMPD_task);
1023 case OMPD_taskloop_simd:
1024 CaptureRegions.push_back(OMPD_taskloop);
1026 case OMPD_target_teams_distribute_parallel_for:
1027 case OMPD_target_teams_distribute_parallel_for_simd:
1028 CaptureRegions.push_back(OMPD_task);
1029 CaptureRegions.push_back(OMPD_target);
1030 CaptureRegions.push_back(OMPD_teams);
1031 CaptureRegions.push_back(OMPD_parallel);
1041 case OMPD_taskgroup:
1042 case OMPD_distribute:
1045 case OMPD_target_data:
1046 case OMPD_distribute_simd:
1049 case OMPD_threadprivate:
1051 case OMPD_taskyield:
1054 case OMPD_cancellation_point:
1057 case OMPD_declare_reduction:
1058 case OMPD_declare_mapper:
1059 case OMPD_declare_simd:
1060 case OMPD_declare_target:
1061 case OMPD_end_declare_target:
1063 llvm_unreachable(
"OpenMP Directive is not allowed");
1065 llvm_unreachable(
"Unknown OpenMP directive");
#define OPENMP_MAP_KIND(Name)
bool isOpenMPNestingDistributeDirective(OpenMPDirectiveKind DKind)
Checks if the specified composite/combined directive constitutes a distribute directive in the outerm...
bool isOpenMPTargetDataManagementDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a target data offload directive.
The base class of the type hierarchy.
const char * getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind, unsigned Type)
bool isAllowedClauseForDirective(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind)
#define OPENMP_LINEAR_KIND(Name)
const char * getOpenMPClauseName(OpenMPClauseKind Kind)
bool isOpenMPTaskingDirective(OpenMPDirectiveKind Kind)
Checks if the specified directive kind is one of tasking directives - task, taskloop or taksloop simd...
#define OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND(Name)
Defines some OpenMP-specific enums and functions.
bool isOpenMPTeamsDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a teams-kind directive.
OpenMPClauseKind getOpenMPClauseKind(llvm::StringRef Str)
bool isOpenMPTargetExecutionDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a target code offload directive.
#define OPENMP_DEFAULTMAP_KIND(Name)
bool isOpenMPWorksharingDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a worksharing directive.
#define OPENMP_CLAUSE(Name, Class)
#define OPENMP_PROC_BIND_KIND(Name)
bool isOpenMPPrivate(OpenMPClauseKind Kind)
Checks if the specified clause is one of private clauses like 'private', 'firstprivate', 'reduction' etc.
bool isOpenMPParallelDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a parallel-kind directive.
#define OPENMP_DEPEND_KIND(Name)
OpenMPClauseKind
OpenMP clauses.
#define OPENMP_DIRECTIVE(Name)
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
bool isOpenMPTaskLoopDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a taskloop directive.
OpenMPDirectiveKind
OpenMP directives.
bool isOpenMPLoopBoundSharingDirective(OpenMPDirectiveKind Kind)
Checks if the specified directive kind is one of the composite or combined directives that need loop ...
#define OPENMP_TO_MODIFIER_KIND(Name)
Dataflow Directional Tag Classes.
bool isOpenMPSimdDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a simd directive.
#define OPENMP_FROM_MODIFIER_KIND(Name)
#define OPENMP_DEFAULT_KIND(Name)
bool isOpenMPThreadPrivate(OpenMPClauseKind Kind)
Checks if the specified clause is one of threadprivate clauses like 'threadprivate', 'copyin' or 'copyprivate'.
void getOpenMPCaptureRegions(llvm::SmallVectorImpl< OpenMPDirectiveKind > &CaptureRegions, OpenMPDirectiveKind DKind)
Return the captured regions of an OpenMP directive.
unsigned getOpenMPSimpleClauseType(OpenMPClauseKind Kind, llvm::StringRef Str)
bool isOpenMPDistributeDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a distribute directive.
OpenMPDirectiveKind getOpenMPDirectiveKind(llvm::StringRef Str)
const char * getOpenMPDirectiveName(OpenMPDirectiveKind Kind)
#define OPENMP_SCHEDULE_KIND(Name)
bool isOpenMPLoopDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a directive with an associated loop construct.
#define OPENMP_DIST_SCHEDULE_KIND(Name)
bool isOpenMPNestingTeamsDirective(OpenMPDirectiveKind DKind)
Checks if the specified composite/combined directive constitutes a teams directive in the outermost n...