Lines Matching defs:VL

427 void OMPPrivateClause::setPrivateCopies(ArrayRef<Expr *> VL) {
428 assert(VL.size() == varlist_size() &&
430 std::copy(VL.begin(), VL.end(), varlist_end());
436 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL) {
438 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size()));
440 new (Mem) OMPPrivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
441 Clause->setVarRefs(VL);
452 void OMPFirstprivateClause::setPrivateCopies(ArrayRef<Expr *> VL) {
453 assert(VL.size() == varlist_size() &&
455 std::copy(VL.begin(), VL.end(), varlist_end());
458 void OMPFirstprivateClause::setInits(ArrayRef<Expr *> VL) {
459 assert(VL.size() == varlist_size() &&
461 std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
467 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL,
469 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size()));
471 new (Mem) OMPFirstprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
472 Clause->setVarRefs(VL);
515 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
519 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size()));
521 StartLoc, LParenLoc, EndLoc, LPKind, LPKindLoc, ColonLoc, VL.size());
522 Clause->setVarRefs(VL);
541 ArrayRef<Expr *> VL) {
542 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
544 new (Mem) OMPSharedClause(StartLoc, LParenLoc, EndLoc, VL.size());
545 Clause->setVarRefs(VL);
589 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> PL,
595 C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size() + 2 + VL.size() + 1));
598 ColonLoc, StepModifierLoc, EndLoc, VL.size());
599 Clause->setVarRefs(VL);
604 std::fill(Clause->getInits().end(), Clause->getInits().end() + VL.size(),
606 std::fill(Clause->getUpdates().end(), Clause->getUpdates().end() + VL.size(),
635 SourceLocation EndLoc, ArrayRef<Expr *> VL, Expr *A) {
636 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1));
638 OMPAlignedClause(StartLoc, LParenLoc, ColonLoc, EndLoc, VL.size());
639 Clause->setVarRefs(VL);
681 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
683 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size()));
685 new (Mem) OMPCopyinClause(StartLoc, LParenLoc, EndLoc, VL.size());
686 Clause->setVarRefs(VL);
722 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
724 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size()));
726 new (Mem) OMPCopyprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
727 Clause->setVarRefs(VL);
796 OpenMPReductionClauseModifier Modifier, ArrayRef<Expr *> VL,
803 (Modifier == OMPC_REDUCTION_inscan ? 8 : 5) * VL.size()));
806 Modifier, VL.size(), QualifierLoc, NameInfo);
807 Clause->setVarRefs(VL);
868 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
873 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size()));
875 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo);
876 Clause->setVarRefs(VL);
930 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
935 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(6 * VL.size()));
937 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo);
938 Clause->setVarRefs(VL);
1008 ArrayRef<Expr *> VL) {
1010 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1012 ColonLoc, EndLoc, VL.size());
1013 Clause->setVarRefs(VL);
1027 ArrayRef<Expr *> VL) {
1028 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1));
1030 new (Mem) OMPFlushClause(StartLoc, LParenLoc, EndLoc, VL.size());
1031 Clause->setVarRefs(VL);
1058 ArrayRef<Expr *> VL, unsigned NumLoops) {
1060 totalSizeToAlloc<Expr *>(VL.size() + /*depend-modifier*/ 1 + NumLoops),
1063 OMPDependClause(StartLoc, LParenLoc, EndLoc, VL.size(), NumLoops);
1069 Clause->setVarRefs(VL);
1299 void OMPUseDevicePtrClause::setPrivateCopies(ArrayRef<Expr *> VL) {
1300 assert(VL.size() == varlist_size() &&
1302 std::copy(VL.begin(), VL.end(), varlist_end());
1305 void OMPUseDevicePtrClause::setInits(ArrayRef<Expr *> VL) {
1306 assert(VL.size() == varlist_size() &&
1308 std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
1505 ArrayRef<Expr *> VL) {
1507 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size()));
1509 new (Mem) OMPNontemporalClause(StartLoc, LParenLoc, EndLoc, VL.size());
1510 Clause->setVarRefs(VL);
1520 void OMPNontemporalClause::setPrivateRefs(ArrayRef<Expr *> VL) {
1521 assert(VL.size() == varlist_size() && "Number of private references is not "
1523 std::copy(VL.begin(), VL.end(), varlist_end());
1530 ArrayRef<Expr *> VL) {
1531 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1533 new (Mem) OMPInclusiveClause(StartLoc, LParenLoc, EndLoc, VL.size());
1534 Clause->setVarRefs(VL);
1548 ArrayRef<Expr *> VL) {
1549 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
1551 new (Mem) OMPExclusiveClause(StartLoc, LParenLoc, EndLoc, VL.size());
1552 Clause->setVarRefs(VL);
1683 ArrayRef<Expr *> VL, unsigned NumLoops) {
1684 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + NumLoops),
1687 OMPDoacrossClause(StartLoc, LParenLoc, EndLoc, VL.size(), NumLoops);
1691 Clause->setVarRefs(VL);