Lines Matching refs:Expr
323 OMPOrderedClause *OMPOrderedClause::Create(const ASTContext &C, Expr *Num, in Create()
328 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create()
340 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty()
350 Expr *NumIterations) { in setLoopNumIterations()
352 getTrailingObjects<Expr *>()[NumLoop] = NumIterations; in setLoopNumIterations()
355 ArrayRef<Expr *> OMPOrderedClause::getLoopNumIterations() const { in getLoopNumIterations()
356 return llvm::makeArrayRef(getTrailingObjects<Expr *>(), NumberOfLoops); in getLoopNumIterations()
359 void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { in setLoopCounter()
361 getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop] = Counter; in setLoopCounter()
364 Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { in getLoopCounter()
366 return getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop]; in getLoopCounter()
369 const Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) const { in getLoopCounter()
371 return getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop]; in getLoopCounter()
407 void OMPPrivateClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies()
416 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL) { in Create()
418 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create()
428 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty()
432 void OMPFirstprivateClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies()
438 void OMPFirstprivateClause::setInits(ArrayRef<Expr *> VL) { in setInits()
447 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL, in Create()
448 ArrayRef<Expr *> InitVL, Stmt *PreInit) { in Create()
449 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); in Create()
461 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); in CreateEmpty()
465 void OMPLastprivateClause::setPrivateCopies(ArrayRef<Expr *> PrivateCopies) { in setPrivateCopies()
471 void OMPLastprivateClause::setSourceExprs(ArrayRef<Expr *> SrcExprs) { in setSourceExprs()
478 void OMPLastprivateClause::setDestinationExprs(ArrayRef<Expr *> DstExprs) { in setDestinationExprs()
485 void OMPLastprivateClause::setAssignmentOps(ArrayRef<Expr *> AssignmentOps) { in setAssignmentOps()
495 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs, in Create()
496 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps, in Create()
498 SourceLocation ColonLoc, Stmt *PreInit, Expr *PostUpdate) { in Create()
499 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create()
513 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty()
521 ArrayRef<Expr *> VL) { in Create()
522 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create()
530 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
534 void OMPLinearClause::setPrivates(ArrayRef<Expr *> PL) { in setPrivates()
540 void OMPLinearClause::setInits(ArrayRef<Expr *> IL) { in setInits()
546 void OMPLinearClause::setUpdates(ArrayRef<Expr *> UL) { in setUpdates()
552 void OMPLinearClause::setFinals(ArrayRef<Expr *> FL) { in setFinals()
558 void OMPLinearClause::setUsedExprs(ArrayRef<Expr *> UE) { in setUsedExprs()
568 SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL, in Create()
569 ArrayRef<Expr *> PL, ArrayRef<Expr *> IL, Expr *Step, Expr *CalcStep, in Create()
570 Stmt *PreInit, Expr *PostUpdate) { in Create()
574 C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size() + 2 + VL.size() + 1)); in Create()
599 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * NumVars + 2 + NumVars +1)); in CreateEmpty()
613 SourceLocation EndLoc, ArrayRef<Expr *> VL, Expr *A) { in Create()
614 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1)); in Create()
624 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumVars + 1)); in CreateEmpty()
628 void OMPCopyinClause::setSourceExprs(ArrayRef<Expr *> SrcExprs) { in setSourceExprs()
635 void OMPCopyinClause::setDestinationExprs(ArrayRef<Expr *> DstExprs) { in setDestinationExprs()
642 void OMPCopyinClause::setAssignmentOps(ArrayRef<Expr *> AssignmentOps) { in setAssignmentOps()
652 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs, in Create()
653 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps) { in Create()
654 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size())); in Create()
665 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * N)); in CreateEmpty()
669 void OMPCopyprivateClause::setSourceExprs(ArrayRef<Expr *> SrcExprs) { in setSourceExprs()
676 void OMPCopyprivateClause::setDestinationExprs(ArrayRef<Expr *> DstExprs) { in setDestinationExprs()
683 void OMPCopyprivateClause::setAssignmentOps(ArrayRef<Expr *> AssignmentOps) { in setAssignmentOps()
693 SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs, in Create()
694 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps) { in Create()
695 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * VL.size())); in Create()
707 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(4 * N)); in CreateEmpty()
711 void OMPReductionClause::setPrivates(ArrayRef<Expr *> Privates) { in setPrivates()
717 void OMPReductionClause::setLHSExprs(ArrayRef<Expr *> LHSExprs) { in setLHSExprs()
724 void OMPReductionClause::setRHSExprs(ArrayRef<Expr *> RHSExprs) { in setRHSExprs()
731 void OMPReductionClause::setReductionOps(ArrayRef<Expr *> ReductionOps) { in setReductionOps()
738 void OMPReductionClause::setInscanCopyOps(ArrayRef<Expr *> Ops) { in setInscanCopyOps()
747 ArrayRef<Expr *> CopyArrayTemps) { in setInscanCopyArrayTemps()
756 ArrayRef<Expr *> CopyArrayElems) { in setInscanCopyArrayElems()
767 OpenMPReductionClauseModifier Modifier, ArrayRef<Expr *> VL, in Create()
769 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
770 ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps, in Create()
771 ArrayRef<Expr *> CopyOps, ArrayRef<Expr *> CopyArrayTemps, in Create()
772 ArrayRef<Expr *> CopyArrayElems, Stmt *PreInit, Expr *PostUpdate) { in Create()
773 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>( in Create()
803 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>( in CreateEmpty()
810 void OMPTaskReductionClause::setPrivates(ArrayRef<Expr *> Privates) { in setPrivates()
816 void OMPTaskReductionClause::setLHSExprs(ArrayRef<Expr *> LHSExprs) { in setLHSExprs()
823 void OMPTaskReductionClause::setRHSExprs(ArrayRef<Expr *> RHSExprs) { in setRHSExprs()
830 void OMPTaskReductionClause::setReductionOps(ArrayRef<Expr *> ReductionOps) { in setReductionOps()
839 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL, in Create()
841 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
842 ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps, Stmt *PreInit, in Create()
843 Expr *PostUpdate) { in Create()
844 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create()
859 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty()
863 void OMPInReductionClause::setPrivates(ArrayRef<Expr *> Privates) { in setPrivates()
869 void OMPInReductionClause::setLHSExprs(ArrayRef<Expr *> LHSExprs) { in setLHSExprs()
876 void OMPInReductionClause::setRHSExprs(ArrayRef<Expr *> RHSExprs) { in setRHSExprs()
883 void OMPInReductionClause::setReductionOps(ArrayRef<Expr *> ReductionOps) { in setReductionOps()
891 ArrayRef<Expr *> TaskgroupDescriptors) { in setTaskgroupDescriptors()
901 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL, in Create()
903 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
904 ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps, in Create()
905 ArrayRef<Expr *> TaskgroupDescriptors, Stmt *PreInit, Expr *PostUpdate) { in Create()
906 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(6 * VL.size())); in Create()
922 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(6 * N)); in CreateEmpty()
930 ArrayRef<Expr *> Sizes) { in Create()
941 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumSizes)); in CreateEmpty()
947 SourceLocation LParenLoc, Expr *Allocator, in Create()
949 ArrayRef<Expr *> VL) { in Create()
951 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create()
960 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
968 ArrayRef<Expr *> VL) { in Create()
969 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size() + 1)); in Create()
977 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
985 Expr *Depobj) { in Create()
998 Expr *DepModifier, OpenMPDependClauseKind DepKind, in Create()
1000 ArrayRef<Expr *> VL, unsigned NumLoops) { in Create()
1002 totalSizeToAlloc<Expr *>(VL.size() + /*depend-modifier*/ 1 + NumLoops), in Create()
1019 C.Allocate(totalSizeToAlloc<Expr *>(N + /*depend-modifier*/ 1 + NumLoops), in CreateEmpty()
1024 void OMPDependClause::setLoopData(unsigned NumLoop, Expr *Cnt) { in setLoopData()
1034 Expr *OMPDependClause::getLoopData(unsigned NumLoop) { in getLoopData()
1044 const Expr *OMPDependClause::getLoopData(unsigned NumLoop) const { in getLoopData()
1054 void OMPDependClause::setModifier(Expr *DepModifier) { in setModifier()
1057 Expr *OMPDependClause::getModifier() { return *getVarRefs().end(); } in getModifier()
1082 const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef<Expr *> Vars, in Create()
1084 MappableExprComponentListsRef ComponentLists, ArrayRef<Expr *> UDMapperRefs, in Create()
1106 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1127 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1136 const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef<Expr *> Vars, in Create()
1138 MappableExprComponentListsRef ComponentLists, ArrayRef<Expr *> UDMapperRefs, in Create()
1159 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1177 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1186 const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef<Expr *> Vars, in Create()
1188 MappableExprComponentListsRef ComponentLists, ArrayRef<Expr *> UDMapperRefs, in Create()
1209 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1229 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1237 void OMPUseDevicePtrClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies()
1243 void OMPUseDevicePtrClause::setInits(ArrayRef<Expr *> VL) { in setInits()
1250 const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef<Expr *> Vars, in Create()
1251 ArrayRef<Expr *> PrivateVars, ArrayRef<Expr *> Inits, in Create()
1271 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1290 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1300 ArrayRef<Expr *> Vars, in Create()
1320 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1337 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1347 ArrayRef<Expr *> Vars, in Create()
1367 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1384 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1396 ArrayRef<Expr *> VL) { in Create()
1398 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create()
1407 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty()
1411 void OMPNontemporalClause::setPrivateRefs(ArrayRef<Expr *> VL) { in setPrivateRefs()
1421 ArrayRef<Expr *> VL) { in Create()
1422 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create()
1431 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
1439 ArrayRef<Expr *> VL) { in Create()
1440 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create()
1449 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
1459 getTrailingObjects<Expr *>()[I * static_cast<int>(ExprOffsets::Total) + in setAllocatorsData()
1462 getTrailingObjects<Expr *>()[I * static_cast<int>(ExprOffsets::Total) + in setAllocatorsData()
1481 getTrailingObjects<Expr *>()[I * static_cast<int>(ExprOffsets::Total) + in getAllocatorData()
1484 getTrailingObjects<Expr *>()[I * static_cast<int>(ExprOffsets::Total) + in getAllocatorData()
1500 void *Mem = C.Allocate(totalSizeToAlloc<Expr *, SourceLocation>( in Create()
1511 void *Mem = C.Allocate(totalSizeToAlloc<Expr *, SourceLocation>( in CreateEmpty()
1520 SourceLocation EndLoc, Expr *Modifier, in Create()
1521 ArrayRef<Expr *> Locators) { in Create()
1522 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Locators.size() + 1)); in Create()
1532 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N + 1)); in CreateEmpty()
1536 OMPInitClause *OMPInitClause::Create(const ASTContext &C, Expr *InteropVar, in Create()
1537 ArrayRef<Expr *> PrefExprs, bool IsTarget, in Create()
1543 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(PrefExprs.size() + 1)); in Create()
1548 llvm::copy(PrefExprs, Clause->getTrailingObjects<Expr *>() + 1); in Create()
1553 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
1802 for (const Expr *E : Node->prefs()) { in VisitOMPInitClause()
1832 if (Expr *E = Node->getInteropVar()) { in VisitOMPDestroyClause()
1841 if (Expr *E = Node->getCondition()) { in VisitOMPNovariantsClause()
1850 if (Expr *E = Node->getCondition()) { in VisitOMPNocontextClause()
1878 if (Expr *Allocator = Node->getAllocator()) { in VisitOMPAllocateClause()
2058 if (Expr *DepModifier = Node->getModifier()) { in VisitOMPDependClause()
2240 if (Expr *Modifier = Node->getModifier()) { in VisitOMPAffinityClause()