Home | History | Annotate | Download | only in Sema

Lines Matching refs:Clauses

11 /// clauses.
67 /// clauses and their data-sharing attributes.
760 // given its type and the clauses where it appears. This table is based on
762 // OpenMP 4.5 [2.15.5, Data-mapping Attribute Rules and Clauses].
814 // values requires having the map, private, and firstprivate clauses SEMA
918 for (auto *C : D->clauses()) {
1338 for (auto *C : S->clauses()) {
1593 ArrayRef<OMPClause *> Clauses) {
1599 for (auto *Clause : Clauses) {
1606 // Mark all variables in private list clauses as used in inner region.
1615 // Mark all variables in private list clauses as used in inner region.
1617 // TODO: add processing for other clauses.
2385 ArrayRef<OMPClause *> Clauses,
2392 for (const auto *C : Clauses) {
2429 // all if clauses on the directive must include a directive-name-modifier.
2468 OpenMPDirectiveKind CancelRegion, ArrayRef<OMPClause *> Clauses,
2478 ClausesWithImplicit.append(Clauses.begin(), Clauses.end());
2527 "No clauses are allowed for 'omp section' directive");
2536 "No clauses are allowed for 'omp master' directive");
2565 "No clauses are allowed for 'omp taskyield' directive");
2572 "No clauses are allowed for 'omp barrier' directive");
2579 "No clauses are allowed for 'omp taskwait' directive");
2586 "No clauses are allowed for 'omp taskgroup' directive");
2613 "No clauses are allowed for 'omp cancellation point' directive");
2657 ErrorFound = checkIfClauses(*this, Kind, Clauses, AllowedNameModifiers) ||
2665 StmtResult Sema::ActOnOpenMPParallelDirective(ArrayRef<OMPClause *> Clauses,
2682 return OMPParallelDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt,
3711 // // similar updates for vars in clauses (e.g. 'linear')
4040 static Expr *getCollapseNumberExpr(ArrayRef<OMPClause *> Clauses) {
4042 OMPExecutableDirective::getClausesOfKind<OMPCollapseClause>(Clauses);
4048 static Expr *getOrderedNumberExpr(ArrayRef<OMPClause *> Clauses) {
4050 OMPExecutableDirective::getClausesOfKind<OMPOrderedClause>(Clauses);
4070 // If both simdlen and safelen clauses are specified, the value of the simdlen
4081 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
4092 OMPD_simd, getCollapseNumberExpr(Clauses), getOrderedNumberExpr(Clauses),
4101 // Finalize the clauses that need pre-built expressions for CodeGen.
4102 for (auto C : Clauses) {
4111 // If both simdlen and safelen clauses are specified, the value of the simdlen
4115 for (auto *Clause : Clauses) {
4130 Clauses, AStmt, B);
4134 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
4145 OMPD_for, getCollapseNumberExpr(Clauses), getOrderedNumberExpr(Clauses),
4154 // Finalize the clauses that need pre-built expressions for CodeGen.
4155 for (auto C : Clauses) {
4165 Clauses, AStmt, B, DSAStack->isCancelRegion());
4169 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
4180 CheckOpenMPLoop(OMPD_for_simd, getCollapseNumberExpr(Clauses),
4181 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack,
4190 // Finalize the clauses that need pre-built expressions for CodeGen.
4191 for (auto C : Clauses) {
4200 // If both simdlen and safelen clauses are specified, the value of the simdlen
4204 for (auto *Clause : Clauses) {
4219 Clauses, AStmt, B);
4222 StmtResult Sema::ActOnOpenMPSectionsDirective(ArrayRef<OMPClause *> Clauses,
4256 return OMPSectionsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt,
4275 StmtResult Sema::ActOnOpenMPSingleDirective(ArrayRef<OMPClause *> Clauses,
4290 for (auto *Clause : Clauses) {
4303 return OMPSingleDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt);
4320 const DeclarationNameInfo &DirName, ArrayRef<OMPClause *> Clauses,
4331 for (auto *C : Clauses) {
4371 Clauses, AStmt);
4378 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
4396 CheckOpenMPLoop(OMPD_parallel_for, getCollapseNumberExpr(Clauses),
4397 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack,
4406 // Finalize the clauses that need pre-built expressions for CodeGen.
4407 for (auto C : Clauses) {
4417 NestedLoopCount, Clauses, AStmt, B,
4422 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
4440 CheckOpenMPLoop(OMPD_parallel_for_simd, getCollapseNumberExpr(Clauses),
4441 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack,
4447 // Finalize the clauses that need pre-built expressions for CodeGen.
4448 for (auto C : Clauses) {
4457 // If both simdlen and safelen clauses are specified, the value of the simdlen
4461 for (auto *Clause : Clauses) {
4476 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B);
4480 Sema::ActOnOpenMPParallelSectionsDirective(ArrayRef<OMPClause *> Clauses,
4515 Context, StartLoc, EndLoc, Clauses, AStmt, DSAStack->isCancelRegion());
4518 StmtResult Sema::ActOnOpenMPTaskDirective(ArrayRef<OMPClause *> Clauses,
4534 return OMPTaskDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt,
4566 StmtResult Sema::ActOnOpenMPFlushDirective(ArrayRef<OMPClause *> Clauses,
4569 assert(Clauses.size() <= 1 && "Extra clauses in flush directive");
4570 return OMPFlushDirective::Create(Context, StartLoc, EndLoc, Clauses);
4573 StmtResult Sema::ActOnOpenMPOrderedDirective(ArrayRef<OMPClause *> Clauses,
4582 for (auto *C : Clauses) {
4614 } else if (TC || Clauses.empty()) {
4632 return OMPOrderedDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt);
4875 StmtResult Sema::ActOnOpenMPAtomicDirective(ArrayRef<OMPClause *> Clauses,
4890 for (auto *C : Clauses) {
5301 return OMPAtomicDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt,
5306 StmtResult Sema::ActOnOpenMPTargetDirective(ArrayRef<OMPClause *> Clauses,
5353 return OMPTargetDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt);
5356 StmtResult Sema::ActOnOpenMPTargetDataDirective(ArrayRef<OMPClause *> Clauses,
5367 return OMPTargetDataDirective::Create(Context, StartLoc, EndLoc, Clauses,
5371 StmtResult Sema::ActOnOpenMPTeamsDirective(ArrayRef<OMPClause *> Clauses,
5387 return OMPTeamsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt);
5412 StmtResult Sema::ActOnOpenMPCancelDirective(ArrayRef<OMPClause *> Clauses,
5431 return OMPCancelDirective::Create(Context, StartLoc, EndLoc, Clauses,
5436 ArrayRef<OMPClause *> Clauses) {
5439 for (auto *C : Clauses) {
5460 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
5471 CheckOpenMPLoop(OMPD_taskloop, getCollapseNumberExpr(Clauses),
5483 if (checkGrainsizeNumTasksClauses(*this, Clauses))
5488 NestedLoopCount, Clauses, AStmt, B);
5492 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
5503 CheckOpenMPLoop(OMPD_taskloop_simd, getCollapseNumberExpr(Clauses),
5515 if (checkGrainsizeNumTasksClauses(*this, Clauses))
5520 NestedLoopCount, Clauses, AStmt, B);
5524 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
5535 CheckOpenMPLoop(OMPD_distribute, getCollapseNumberExpr(Clauses),
5546 NestedLoopCount, Clauses, AStmt, B);
6376 // listed in data-sharing attributes clauses, except for the cases
6519 // OpenMP [2.4.13, Data-sharing Attribute Clauses]
6522 // specified in both firstprivate and lastprivate clauses.
6535 // listed in data-sharing attributes clauses, except for the cases
6776 // listed in data-sharing attributes clauses, except for the cases
6903 // listed in data-sharing attributes clauses, except for the cases
7095 // describing clauses and directives for which a list appears.
7231 // listed in data-sharing attributes clauses, except for the cases
7236 // Any number of reduction clauses can be specified on the directive,
7237 // but a list item can appear only once in the reduction clauses for that
8203 // in map clauses of the same construct.
8205 // List items of map clauses in the same construct must not share original
8210 // must not appear as list items of map clauses of the same construct.