Lines Matching refs:Captures

4751         llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures;  in tryCaptureOpenMPLambdas()  local
4753 RD->getCaptureFields(Captures, ThisCapture); in tryCaptureOpenMPLambdas()
8042 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8046 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8049 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
8062 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
8067 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8595 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in tryBuildCapture() argument
8603 auto I = Captures.find(Capture); in tryBuildCapture()
8604 if (I != Captures.end()) in tryBuildCapture()
8608 Captures[Capture] = Ref; in tryBuildCapture()
8618 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters() argument
8619 ExprResult NewStep = tryBuildCapture(SemaRef, Step, Captures, ".new_step"); in calculateNumIters()
8788 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
8842 tryBuildCapture(SemaRef, LBMinVal.get(), Captures, ".lb_min").get(); in buildNumIterations()
8844 tryBuildCapture(SemaRef, LBMaxVal.get(), Captures, ".lb_max").get(); in buildNumIterations()
8853 tryBuildCapture(SemaRef, MinLessMaxRes.get(), Captures, ".min_less_max") in buildNumIterations()
8928 tryBuildCapture(SemaRef, UBMinVal.get(), Captures, ".ub_min").get(); in buildNumIterations()
8930 tryBuildCapture(SemaRef, UBMaxVal.get(), Captures, ".ub_max").get(); in buildNumIterations()
8939 Captures, ".min_greater_max") in buildNumIterations()
8963 Expr *Upper = tryBuildCapture(SemaRef, UBExpr, Captures, ".upper").get(); in buildNumIterations()
8964 Expr *Lower = tryBuildCapture(SemaRef, LBExpr, Captures, ".lower").get(); in buildNumIterations()
8970 /*RoundToStep=*/true, Captures); in buildNumIterations()
9016 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
9032 LBNonRect ? LBExpr : tryBuildCapture(SemaRef, LBExpr, Captures).get(); in buildMinMaxValues()
9034 UBNonRect ? UBExpr : tryBuildCapture(SemaRef, UBExpr, Captures).get(); in buildMinMaxValues()
9048 /*RoundToStep=*/false, Captures); in buildMinMaxValues()
9058 ExprResult NewStep = tryBuildCapture(SemaRef, Step, Captures, ".new_step"); in buildMinMaxValues()
9131 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
9147 ExprResult NewLB = tryBuildCapture(SemaRef, LB, Captures); in buildPreCond()
9148 ExprResult NewUB = tryBuildCapture(SemaRef, UB, Captures); in buildPreCond()
9171 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar() argument
9183 Captures.insert(std::make_pair(LCRef, Ref)); in buildCounterVar()
9213 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData() argument
9232 *TestIsLessOp ? Cnt : tryBuildCapture(SemaRef, LB, Captures).get(); in buildOrderedLoopData()
9234 *TestIsLessOp ? tryBuildCapture(SemaRef, LB, Captures).get() : Cnt; in buildOrderedLoopData()
9240 /*TestIsStrictOp=*/false, /*RoundToStep=*/false, Captures); in buildOrderedLoopData()
9357 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace() argument
9450 DSA.getCurScope(), For ? For->getCond() : CXXFor->getCond(), Captures); in checkOpenMPIterationSpace()
9458 Captures); in checkOpenMPIterationSpace()
9460 ISC.buildCounterVar(Captures, DSA); in checkOpenMPIterationSpace()
9475 ISC.buildMinMaxValues(DSA.getCurScope(), Captures); in checkOpenMPIterationSpace()
9533 ResultIterSpaces[CurrentNestedLoopCount].CounterVar, Captures, in checkOpenMPIterationSpace()
9548 ResultIterSpaces[CurrentNestedLoopCount].CounterVar, Captures, in checkOpenMPIterationSpace()
9553 ResultIterSpaces[CurrentNestedLoopCount].CounterVar, Captures, in checkOpenMPIterationSpace()
9570 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit() argument
9574 : tryBuildCapture(SemaRef, Start.get(), Captures); in buildCounterInit()
9596 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate() argument
9604 if (Captures) in buildCounterUpdate()
9605 NewStep = tryBuildCapture(SemaRef, Step.get(), *Captures); in buildCounterUpdate()
9620 if (Captures && !IsNonRectangularLB) in buildCounterUpdate()
9621 NewStart = tryBuildCapture(SemaRef, Start.get(), *Captures); in buildCounterUpdate()
9707 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits() argument
9708 if (!Captures.empty()) { in buildPreInits()
9710 for (const auto &Pair : Captures) in buildPreInits()
9785 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop() local
9793 &IterSpaces, &Captures](unsigned Cnt, Stmt *CurStmt) { in checkOpenMPLoop()
9797 VarsWithImplicitDSA, IterSpaces, Captures)) in checkOpenMPLoop()
9804 Captures[DRE] = DRE; in checkOpenMPLoop()
9809 [&SemaRef, &Captures](OMPLoopTransformationDirective *Transform) { in checkOpenMPLoop()
9817 Captures[Ref] = Ref; in checkOpenMPLoop()
9952 tryBuildCapture(SemaRef, LastIteration.get(), Captures); in checkOpenMPLoop()
10345 IS.CounterInit, IS.IsNonRectangularLB, Captures); in checkOpenMPLoop()
10352 IS.CounterStep, IS.Subtract, IS.IsNonRectangularLB, &Captures); in checkOpenMPLoop()
10362 IS.Subtract, IS.IsNonRectangularLB, &Captures); in checkOpenMPLoop()
10401 Built.PreInits = buildPreInits(C, Captures); in checkOpenMPLoop()
16567 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause() local
16568 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPIfClause()
16569 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPIfClause()
16599 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause() local
16600 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPFinalClause()
16601 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPFinalClause()
16687 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue() local
16688 ValExpr = tryBuildCapture(SemaRef, ValExpr, Captures).get(); in isNonNegativeIntegerValue()
16689 *HelperValStmt = buildPreInits(SemaRef.Context, Captures); in isNonNegativeIntegerValue()
16713 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause() local
16714 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPNumThreadsClause()
16715 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPNumThreadsClause()
17534 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause() local
17535 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPScheduleClause()
17536 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPScheduleClause()
18028 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause() local
18029 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPNovariantsClause()
18030 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPNovariantsClause()
18059 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause() local
18060 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPNocontextClause()
18061 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPNocontextClause()
18081 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause() local
18082 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPFilterClause()
18083 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPFilterClause()
21217 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause() local
21218 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPDeviceClause()
21219 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPDeviceClause()
22898 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause() local
22899 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPNumTeamsClause()
22900 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPNumTeamsClause()
22925 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause() local
22926 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPThreadLimitClause()
22927 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPThreadLimitClause()
23140 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause() local
23141 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPDistScheduleClause()
23142 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPDistScheduleClause()
24334 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPXDynCGroupMemClause() local
24335 ValExpr = tryBuildCapture(*this, ValExpr, Captures).get(); in ActOnOpenMPXDynCGroupMemClause()
24336 HelperValStmt = buildPreInits(Context, Captures); in ActOnOpenMPXDynCGroupMemClause()