Lines Matching refs:Directive
225 OmpDirectiveSet distributeSet{llvm::omp::Directive::OMPD_distribute, in HasInvalidDistributeNesting()
226 llvm::omp::Directive::OMPD_distribute_parallel_do, in HasInvalidDistributeNesting()
227 llvm::omp::Directive::OMPD_distribute_parallel_do_simd, in HasInvalidDistributeNesting()
228 llvm::omp::Directive::OMPD_distribute_parallel_for, in HasInvalidDistributeNesting()
229 llvm::omp::Directive::OMPD_distribute_parallel_for_simd, in HasInvalidDistributeNesting()
230 llvm::omp::Directive::OMPD_distribute_simd}; in HasInvalidDistributeNesting()
252 const llvm::omp::Directive &dir, const parser::CharBlock &source) { in HasInvalidTeamsNesting()
253 OmpDirectiveSet allowedSet{llvm::omp::Directive::OMPD_parallel, in HasInvalidTeamsNesting()
254 llvm::omp::Directive::OMPD_parallel_do, in HasInvalidTeamsNesting()
255 llvm::omp::Directive::OMPD_parallel_do_simd, in HasInvalidTeamsNesting()
256 llvm::omp::Directive::OMPD_parallel_for, in HasInvalidTeamsNesting()
257 llvm::omp::Directive::OMPD_parallel_for_simd, in HasInvalidTeamsNesting()
258 llvm::omp::Directive::OMPD_parallel_master, in HasInvalidTeamsNesting()
259 llvm::omp::Directive::OMPD_parallel_master_taskloop, in HasInvalidTeamsNesting()
260 llvm::omp::Directive::OMPD_parallel_master_taskloop_simd, in HasInvalidTeamsNesting()
261 llvm::omp::Directive::OMPD_parallel_sections, in HasInvalidTeamsNesting()
262 llvm::omp::Directive::OMPD_parallel_workshare, in HasInvalidTeamsNesting()
263 llvm::omp::Directive::OMPD_distribute, in HasInvalidTeamsNesting()
264 llvm::omp::Directive::OMPD_distribute_parallel_do, in HasInvalidTeamsNesting()
265 llvm::omp::Directive::OMPD_distribute_parallel_do_simd, in HasInvalidTeamsNesting()
266 llvm::omp::Directive::OMPD_distribute_parallel_for, in HasInvalidTeamsNesting()
267 llvm::omp::Directive::OMPD_distribute_parallel_for_simd, in HasInvalidTeamsNesting()
268 llvm::omp::Directive::OMPD_distribute_simd}; in HasInvalidTeamsNesting()
393 if (beginDir.v == llvm::omp::Directive::OMPD_do) { in Enter()
422 if ((beginDir.v == llvm::omp::Directive::OMPD_distribute_parallel_do_simd) || in Enter()
423 (beginDir.v == llvm::omp::Directive::OMPD_distribute_simd)) { in Enter()
445 if (beginDir.v == llvm::omp::Directive::OMPD_do) { in CheckDoWhile()
506 if (beginDir.v == llvm::omp::Directive::OMPD_ordered) { in CheckSIMDNest()
520 if (dir.v == llvm::omp::Directive::OMPD_ordered) { in CheckSIMDNest()
537 if ((beginDir.v == llvm::omp::Directive::OMPD_simd) || in CheckSIMDNest()
538 (beginDir.v == llvm::omp::Directive::OMPD_do_simd)) { in CheckSIMDNest()
561 llvm::omp::Directive ineligibleTargetDir; in CheckTargetNest()
569 if (beginDir.v == llvm::omp::Directive::OMPD_target_data) { in CheckTargetNest()
580 if (dir.v == llvm::omp::Directive::OMPD_target_update || in CheckTargetNest()
582 llvm::omp::Directive::OMPD_target_enter_data || in CheckTargetNest()
584 llvm::omp::Directive::OMPD_target_exit_data) { in CheckTargetNest()
728 case llvm::omp::Directive::OMPD_do: in Enter()
729 case llvm::omp::Directive::OMPD_do_simd: in Enter()
748 if (GetContext().directive == llvm::omp::Directive::OMPD_target) { in Enter()
756 if (GetContext().directive == llvm::omp::Directive::OMPD_master) { in Enter()
761 if (GetContext().directive == llvm::omp::Directive::OMPD_teams && in Enter()
762 GetContextParent().directive != llvm::omp::Directive::OMPD_target) { in Enter()
771 if (GetContext().directive == llvm::omp::Directive::OMPD_teams && in Enter()
772 GetContextParent().directive == llvm::omp::Directive::OMPD_target && in Enter()
783 case llvm::omp::Directive::OMPD_target: in Enter()
794 case llvm::omp::Directive::OMPD_single: in Enter()
823 if (GetContext().directive == llvm::omp::Directive::OMPD_target) { in Leave()
837 OmpDirectiveSet notAllowedParallelSet{llvm::omp::Directive::OMPD_parallel, in ChecksOnOrderedAsBlock()
838 llvm::omp::Directive::OMPD_target_parallel, in ChecksOnOrderedAsBlock()
839 llvm::omp::Directive::OMPD_parallel_sections, in ChecksOnOrderedAsBlock()
840 llvm::omp::Directive::OMPD_parallel_workshare}; in ChecksOnOrderedAsBlock()
901 case llvm::omp::Directive::OMPD_ordered: in Leave()
938 case llvm::omp::Directive::OMPD_sections: in Enter()
940 dir.source, llvm::omp::Directive::OMPD_end_sections); in Enter()
953 if (GetContext().directive == llvm::omp::Directive::OMPD_end_sections) { in Leave()
980 llvm::omp::Directive::OMPD_threadprivate) in CheckThreadprivateOrDeclareTargetVar()
988 llvm::omp::Directive::OMPD_threadprivate) in CheckThreadprivateOrDeclareTargetVar()
994 llvm::omp::Directive::OMPD_declare_target) in CheckThreadprivateOrDeclareTargetVar()
1025 llvm::omp::Directive::OMPD_declare_target) { in CheckThreadprivateOrDeclareTargetVar()
1042 dir.source, llvm::omp::Directive::OMPD_threadprivate); in Enter()
1055 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_declare_simd); in Enter()
1066 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_allocate); in Enter()
1088 PushContext(dir.source, llvm::omp::Directive::OMPD_declare_target); in Enter()
1091 SetClauseSets(llvm::omp::Directive::OMPD_declare_target); in Enter()
1121 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_allocate); in Enter()
1141 if (GetContext().directive == llvm::omp::Directive::OMPD_barrier) { in CheckBarrierNesting()
1192 OmpDirectiveSet allowedDoSet{llvm::omp::Directive::OMPD_do, in ChecksOnOrderedAsStandalone()
1193 llvm::omp::Directive::OMPD_parallel_do, in ChecksOnOrderedAsStandalone()
1194 llvm::omp::Directive::OMPD_target_parallel_do}; in ChecksOnOrderedAsStandalone()
1247 case llvm::omp::Directive::OMPD_ordered: in Leave()
1259 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_flush); in Enter()
1279 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_cancel); in Enter()
1290 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_critical); in Enter()
1292 CheckNoBranching(block, llvm::omp::Directive::OMPD_critical, dir.source); in Enter()
1334 dir.source, llvm::omp::Directive::OMPD_cancellation_point); in Enter()
1356 llvm::omp::Directive::OMPD_task, llvm::omp::Directive::OMPD_taskloop}; in CheckCancellationNest()
1357 OmpDirectiveSet allowedSectionsSet{llvm::omp::Directive::OMPD_sections, in CheckCancellationNest()
1358 llvm::omp::Directive::OMPD_parallel_sections}; in CheckCancellationNest()
1359 OmpDirectiveSet allowedDoSet{llvm::omp::Directive::OMPD_do, in CheckCancellationNest()
1360 llvm::omp::Directive::OMPD_distribute_parallel_do, in CheckCancellationNest()
1361 llvm::omp::Directive::OMPD_parallel_do, in CheckCancellationNest()
1362 llvm::omp::Directive::OMPD_target_parallel_do, in CheckCancellationNest()
1363 llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do, in CheckCancellationNest()
1364 llvm::omp::Directive::OMPD_teams_distribute_parallel_do}; in CheckCancellationNest()
1365 OmpDirectiveSet allowedParallelSet{llvm::omp::Directive::OMPD_parallel, in CheckCancellationNest()
1366 llvm::omp::Directive::OMPD_target_parallel}; in CheckCancellationNest()
1377 if (GetContextParent().directive == llvm::omp::Directive::OMPD_task || in CheckCancellationNest()
1381 llvm::omp::Directive::OMPD_taskgroup) { in CheckCancellationNest()
1472 case llvm::omp::Directive::OMPD_single: in Enter()
1473 PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_end_single); in Enter()
1476 case llvm::omp::Directive::OMPD_workshare: in Enter()
1478 dir.source, llvm::omp::Directive::OMPD_end_workshare); in Enter()
1492 if ((GetContext().directive == llvm::omp::Directive::OMPD_end_single) || in Leave()
1493 (GetContext().directive == llvm::omp::Directive::OMPD_end_workshare)) { in Leave()
1618 dir.source, llvm::omp::Directive::OMPD_atomic); in Enter()
1633 dir.source, llvm::omp::Directive::OMPD_atomic); in Enter()
1646 dir.source, llvm::omp::Directive::OMPD_atomic); in Enter()
1745 if (GetContext().directive == llvm::omp::Directive::OMPD_end_single) { in Leave()
2084 OmpDirectiveSet nonPartialVarSet{llvm::omp::Directive::OMPD_allocate, in CheckIsVarPartOfAnotherVar()
2085 llvm::omp::Directive::OMPD_threadprivate, in CheckIsVarPartOfAnotherVar()
2086 llvm::omp::Directive::OMPD_declare_target}; in CheckIsVarPartOfAnotherVar()
2133 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_do, in Enter()
2135 llvm::omp::Directive::OMPD_parallel, llvm::omp::privateReductionSet)); in Enter()
2136 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_sections, in Enter()
2138 llvm::omp::Directive::OMPD_parallel, llvm::omp::privateReductionSet)); in Enter()
2139 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_single, in Enter()
2141 llvm::omp::Directive::OMPD_parallel, llvm::omp::privateReductionSet)); in Enter()
2143 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_distribute, in Enter()
2145 llvm::omp::Directive::OMPD_teams, llvm::omp::privateReductionSet)); in Enter()
2146 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_distribute, in Enter()
2147 std::make_pair(llvm::omp::Directive::OMPD_target_teams, in Enter()
2150 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_task, in Enter()
2151 std::make_pair(llvm::omp::Directive::OMPD_parallel, in Enter()
2153 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_taskloop, in Enter()
2154 std::make_pair(llvm::omp::Directive::OMPD_parallel, in Enter()
2232 {llvm::omp::Directive::OMPD_target_enter_data}}, in Enter()
2234 {llvm::omp::Directive::OMPD_target_exit_data}}, in Enter()
2236 {llvm::omp::Directive::OMPD_target_data}}, in Enter()
2238 {llvm::omp::Directive::OMPD_target_update}}, in Enter()
2239 {dirNameModifier::Task, {llvm::omp::Directive::OMPD_task}}, in Enter()
2299 case llvm::omp::Directive::OMPD_target: in Enter()
2300 case llvm::omp::Directive::OMPD_target_teams: in Enter()
2301 case llvm::omp::Directive::OMPD_target_teams_distribute: in Enter()
2302 case llvm::omp::Directive::OMPD_target_teams_distribute_simd: in Enter()
2303 case llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do: in Enter()
2304 case llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do_simd: in Enter()
2305 case llvm::omp::Directive::OMPD_target_data: in Enter()
2309 case llvm::omp::Directive::OMPD_target_enter_data: in Enter()
2312 case llvm::omp::Directive::OMPD_target_exit_data: in Enter()
2427 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_do, in Enter()
2429 llvm::omp::Directive::OMPD_parallel, llvm::omp::privateReductionSet)); in Enter()
2430 dirClauseTriple.emplace(llvm::omp::Directive::OMPD_sections, in Enter()
2432 llvm::omp::Directive::OMPD_parallel, llvm::omp::privateReductionSet)); in Enter()
2452 llvm::omp::Directive directive) { in getDirectiveName()
2622 if (beginDir.v == llvm::omp::Directive::OMPD_teams) { in CheckTargetBlockOnlyTeams()
2663 auto currentDir{llvm::omp::Directive::OMPD_unknown}; in CheckWorkshareBlockStmts()
2665 llvm::omp::Directive::OMPD_parallel, in CheckWorkshareBlockStmts()
2666 llvm::omp::Directive::OMPD_parallel_do, in CheckWorkshareBlockStmts()
2667 llvm::omp::Directive::OMPD_parallel_sections, in CheckWorkshareBlockStmts()
2668 llvm::omp::Directive::OMPD_parallel_workshare, in CheckWorkshareBlockStmts()
2669 llvm::omp::Directive::OMPD_parallel_do_simd}; in CheckWorkshareBlockStmts()