| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 704 SmallVector<Capture, 4> Captures; variable 717 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture() 719 CaptureMap[Var] = Captures.size(); in addCapture() 724 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture() 737 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture() 750 return Captures[CaptureMap[Var] - 1]; in getCapture() 757 return Captures[Known->second - 1]; in getCapture() 942 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures() 1080 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture() 1082 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
|
| H A D | DeclSpec.h | 2775 SmallVector<LambdaCapture, 4> Captures; member 2780 return Captures.size() > 0 || Default != LCD_None; in hasLambdaCapture() 2792 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBlocks.h | 269 llvm::DenseMap<const VarDecl *, Capture *> Captures; variable 292 Captures[C.Cap->getVariable()] = &C; in buildCaptureMap() 299 auto it = Captures.find(var); in getCapture() 300 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
|
| H A D | CGException.cpp | 1780 llvm::SmallSetVector<const VarDecl *, 4> Captures; member 1787 return !Captures.empty() || SEHCodeSlot.isValid(); in foundCaptures() 1801 Captures.insert(ParentThis); in VisitDeclRefExpr() 1805 Captures.insert(D); in VisitDeclRefExpr() 1809 Captures.insert(ParentThis); in VisitCXXThisExpr() 1953 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 3378 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas() local 3380 RD->getCaptureFields(Captures, ThisCapture); in adjustTargetSpecificDataForLambdas() 3395 auto It = Captures.find(VD); in adjustTargetSpecificDataForLambdas() 3396 assert(It != Captures.end() && "Found lambda capture without field."); in adjustTargetSpecificDataForLambdas()
|
| H A D | CGBlocks.cpp | 1776 const SmallVectorImpl<CGBlockInfo::Capture> &Captures, in getCopyDestroyHelperFuncName() argument 1790 for (auto &Cap : Captures) { in getCopyDestroyHelperFuncName()
|
| H A D | CGOpenMPRuntime.cpp | 8327 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in generateInfoForLambdaCaptures() local 8329 RD->getCaptureFields(Captures, ThisCapture); in generateInfoForLambdaCaptures() 8357 auto It = Captures.find(VD); in generateInfoForLambdaCaptures() 8358 assert(It != Captures.end() && "Found lambda capture without field."); in generateInfoForLambdaCaptures()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLambda.cpp | 1067 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnLambdaExpressionAfterIntroducer() 1108 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer() 1270 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer() 1404 for (auto &&C : LSI->Captures) { in ActOnStartOfLambdaDefinition() 1414 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition() 1444 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition() 2012 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local 2053 const Capture &From = LSI->Captures[I]; in BuildLambdaExpr() 2135 Captures.push_back(Capture); in BuildLambdaExpr() 2142 Class->setCaptures(Context, Captures); in BuildLambdaExpr() [all …]
|
| H A D | SemaOpenMP.cpp | 8603 auto I = Captures.find(Capture); in tryBuildCapture() 8604 if (I != Captures.end()) in tryBuildCapture() 8608 Captures[Capture] = Ref; in tryBuildCapture() 9458 Captures); in checkOpenMPIterationSpace() 9460 ISC.buildCounterVar(Captures, DSA); in checkOpenMPIterationSpace() 9604 if (Captures) in buildCounterUpdate() 9620 if (Captures && !IsNonRectangularLB) in buildCounterUpdate() 9708 if (!Captures.empty()) { in buildPreInits() 9710 for (const auto &Pair : Captures) in buildPreInits() 9804 Captures[DRE] = DRE; in checkOpenMPLoop() [all …]
|
| H A D | ScopeInfo.cpp | 229 for (auto &Cap : Captures) in isVLATypeCaptured()
|
| H A D | SemaStmt.cpp | 4724 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument 4726 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList() 4742 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4745 Captures.push_back( in buildCapturedStmtCaptureList() 4753 Captures.push_back(CapturedStmt::Capture( in buildCapturedStmtCaptureList() 4877 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local 4879 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits)) in ActOnCapturedRegionEnd() 4887 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
|
| H A D | SemaExpr.cpp | 17190 SmallVector<BlockDecl::Capture, 4> Captures; in ActOnBlockStmtExpr() local 17191 for (Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr() 17253 Captures.push_back(NewCap); in ActOnBlockStmtExpr() 17255 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0); in ActOnBlockStmtExpr() 19666 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit() 19686 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit() 19698 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
|
| H A D | SemaExprCXX.cpp | 1341 CSI->Captures[CSI->CXXThisCaptureIndex - 1].markUsed(BuildAndDiagnose); in CheckCXXThisCapture()
|
| H A D | SemaCodeComplete.cpp | 7053 for (const auto &C : Intro.Captures) { in CodeCompleteLambdaIntroducer()
|
| H A D | SemaDecl.cpp | 8294 for (const Capture &Capture : LSI->Captures) { in getCaptureLocation()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 1322 ArrayRef<Capture> Captures, in CapturedStmt() argument 1326 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt() 1342 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt() 1358 ArrayRef<Capture> Captures, in Create() argument 1371 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create() 1373 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create() 1374 if (!Captures.empty()) { in Create() 1377 Size += sizeof(Capture) * Captures.size(); in Create() 1381 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
|
| H A D | DeclCXX.cpp | 1503 Captures.push_back(CaptureList); in AddCaptureList() 1504 if (Captures.size() == 2) { in AddCaptureList() 1506 Ctx.addDestruction(&Captures); in AddCaptureList() 1515 Data.NumCaptures = Captures.size(); in setCaptures() 1520 for (unsigned I = 0, N = Captures.size(); I != N; ++I) { in setCaptures() 1521 if (Captures[I].isExplicit()) in setCaptures() 1524 new (ToCapture) LambdaCapture(Captures[I]); in setCaptures() 1639 llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, in getCaptureFields() argument 1641 Captures.clear(); in getCaptureFields() 1645 for (const LambdaCapture *List : Lambda.Captures) { in getCaptureFields() [all …]
|
| H A D | Decl.cpp | 5177 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument 5180 this->NumCaptures = Captures.size(); in setCaptures() 5182 if (Captures.empty()) { in setCaptures() 5183 this->Captures = nullptr; in setCaptures() 5187 this->Captures = Captures.copy(Context).data(); in setCaptures()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclCXX.h | 433 llvm::TinyPtrVector<Capture*> Captures; member 1074 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures); 1094 getCaptureFields(llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, 1107 return LambdaData.Captures.empty() ? nullptr : LambdaData.Captures.front(); in captures_begin()
|
| H A D | Decl.h | 4507 const Capture *Captures = nullptr; variable 4574 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures() 4610 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
|
| H A D | Stmt.h | 3830 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, 3851 ArrayRef<Capture> Captures,
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 2146 LambdaCapture &Cap1 = Lambda1.Captures.front()[I]; in MergeDefinitionData() 2147 LambdaCapture &Cap2 = Lambda2.Captures.front()[I]; in MergeDefinitionData() 2150 Lambda1.AddCaptureList(Reader.getContext(), Lambda2.Captures.front()); in MergeDefinitionData()
|
| H A D | ASTWriter.cpp | 6077 const LambdaCapture &Capture = Lambda.Captures.front()[I]; in AddCXXDefinitionData()
|