Lines Matching defs:VL

426 void OMPPrivateClause::setPrivateCopies(ArrayRef<Expr *> VL) {
427 assert(VL.size() == varlist_size() &&
429 std::copy(VL.begin(), VL.end(), varlist_end());
435 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL) {
437 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size()));
439 new (Mem) OMPPrivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
440 Clause->setVarRefs(VL);
451 void OMPFirstprivateClause::setPrivateCopies(ArrayRef<Expr *> VL) {
452 assert(VL.size() == varlist_size() &&
454 std::copy(VL.begin(), VL.end(), varlist_end());
457 void OMPFirstprivateClause::setInits(ArrayRef<Expr *> VL) {
458 assert(VL.size() == varlist_size() &&
460 std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
466 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL,
468 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size()));
470 new (Mem) OMPFirstprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
471 Clause->setVarRefs(VL);
514 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
518 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size()));
520 StartLoc, LParenLoc, EndLoc, LPKind, LPKindLoc, ColonLoc, VL.size());
521 Clause->setVarRefs(VL);
540 ArrayRef<Expr *> VL) {
541 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
543 new (Mem) OMPSharedClause(StartLoc, LParenLoc, EndLoc, VL.size());
544 Clause->setVarRefs(VL);
588 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> PL,
594 C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size() + 2 + VL.size() + 1));
597 ColonLoc, StepModifierLoc, EndLoc, VL.size());
598 Clause->setVarRefs(VL);
603 std::fill(Clause->getInits().end(), Clause->getInits().end() + VL.size(),
605 std::fill(Clause->getUpdates().end(), Clause->getUpdates().end() + VL.size(),
634 SourceLocation EndLoc, ArrayRef<Expr *> VL, Expr *A) {
635 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1));
637 OMPAlignedClause(StartLoc, LParenLoc, ColonLoc, EndLoc, VL.size());
638 Clause->setVarRefs(VL);
680 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
682 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size()));
684 new (Mem) OMPCopyinClause(StartLoc, LParenLoc, EndLoc, VL.size());
685 Clause->setVarRefs(VL);
721 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
723 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size()));
725 new (Mem) OMPCopyprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
726 Clause->setVarRefs(VL);
795 OpenMPReductionClauseModifier Modifier, ArrayRef<Expr *> VL,
802 (Modifier == OMPC_REDUCTION_inscan ? 8 : 5) * VL.size()));
805 Modifier, VL.size(), QualifierLoc, NameInfo);
806 Clause->setVarRefs(VL);
867 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
872 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size()));
874 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo);
875 Clause->setVarRefs(VL);
929 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
934 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(6 * VL.size()));
936 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo);
937 Clause->setVarRefs(VL);
1027 SourceLocation EndLoc, ArrayRef<Expr *> VL) {
1030 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1033 Modifier1Loc, Modifier2, Modifier2Loc, EndLoc, VL.size());
1035 Clause->setVarRefs(VL);
1049 ArrayRef<Expr *> VL) {
1050 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1));
1052 new (Mem) OMPFlushClause(StartLoc, LParenLoc, EndLoc, VL.size());
1053 Clause->setVarRefs(VL);
1080 ArrayRef<Expr *> VL, unsigned NumLoops) {
1082 totalSizeToAlloc<Expr *>(VL.size() + /*depend-modifier*/ 1 + NumLoops),
1085 OMPDependClause(StartLoc, LParenLoc, EndLoc, VL.size(), NumLoops);
1091 Clause->setVarRefs(VL);
1317 void OMPUseDevicePtrClause::setPrivateCopies(ArrayRef<Expr *> VL) {
1318 assert(VL.size() == varlist_size() &&
1320 std::copy(VL.begin(), VL.end(), varlist_end());
1323 void OMPUseDevicePtrClause::setInits(ArrayRef<Expr *> VL) {
1324 assert(VL.size() == varlist_size() &&
1326 std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
1523 ArrayRef<Expr *> VL) {
1525 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size()));
1527 new (Mem) OMPNontemporalClause(StartLoc, LParenLoc, EndLoc, VL.size());
1528 Clause->setVarRefs(VL);
1538 void OMPNontemporalClause::setPrivateRefs(ArrayRef<Expr *> VL) {
1539 assert(VL.size() == varlist_size() && "Number of private references is not "
1541 std::copy(VL.begin(), VL.end(), varlist_end());
1548 ArrayRef<Expr *> VL) {
1549 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1551 new (Mem) OMPInclusiveClause(StartLoc, LParenLoc, EndLoc, VL.size());
1552 Clause->setVarRefs(VL);
1566 ArrayRef<Expr *> VL) {
1567 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1569 new (Mem) OMPExclusiveClause(StartLoc, LParenLoc, EndLoc, VL.size());
1570 Clause->setVarRefs(VL);
1701 ArrayRef<Expr *> VL, unsigned NumLoops) {
1702 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + NumLoops),
1705 OMPDoacrossClause(StartLoc, LParenLoc, EndLoc, VL.size(), NumLoops);
1709 Clause->setVarRefs(VL);
1779 ArrayRef<Expr *> VL, Stmt *PreInit) {
1780 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1782 new (Mem) OMPNumTeamsClause(C, StartLoc, LParenLoc, EndLoc, VL.size());
1783 Clause->setVarRefs(VL);
1797 ArrayRef<Expr *> VL, Stmt *PreInit) {
1798 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1800 new (Mem) OMPThreadLimitClause(C, StartLoc, LParenLoc, EndLoc, VL.size());
1801 Clause->setVarRefs(VL);