/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | ScopeInfo.h | 721 SmallVector<Capture, 4> Captures; variable 734 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture() 736 CaptureMap[Var] = Captures.size(); in addCapture() 741 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture() 754 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture() 767 return Captures[CaptureMap[Var] - 1]; in getCapture() 774 return Captures[Known->second - 1]; in getCapture() 959 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures() 1097 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture() 1099 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
|
H A D | DeclSpec.h | 2857 SmallVector<LambdaCapture, 4> Captures; member 2862 return Captures.size() > 0 || Default != LCD_None; in hasLambdaCapture() 2874 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBlocks.h | 269 llvm::DenseMap<const VarDecl *, Capture *> Captures; variable 293 Captures[C.Cap->getVariable()] = &C; in buildCaptureMap() 300 auto it = Captures.find(var); in getCapture() 301 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
|
H A D | CGException.cpp | 1781 llvm::SmallSetVector<const VarDecl *, 4> Captures; member 1788 return !Captures.empty() || SEHCodeSlot.isValid(); in foundCaptures() 1802 Captures.insert(ParentThis); in VisitDeclRefExpr() 1806 Captures.insert(D); in VisitDeclRefExpr() 1810 Captures.insert(ParentThis); in VisitCXXThisExpr() 1956 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
|
H A D | CGOpenMPRuntimeGPU.cpp | 2172 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas() local 2174 RD->getCaptureFields(Captures, ThisCapture); in adjustTargetSpecificDataForLambdas() 2189 auto It = Captures.find(VD); in adjustTargetSpecificDataForLambdas() 2190 assert(It != Captures.end() && "Found lambda capture without field."); in adjustTargetSpecificDataForLambdas()
|
H A D | CGBlocks.cpp | 1791 const SmallVectorImpl<CGBlockInfo::Capture> &Captures, in getCopyDestroyHelperFuncName() argument 1805 for (auto &Cap : Captures) { in getCopyDestroyHelperFuncName()
|
H A D | CGOpenMPRuntime.cpp | 8378 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in generateInfoForLambdaCaptures() local 8380 RD->getCaptureFields(Captures, ThisCapture); in generateInfoForLambdaCaptures() 8408 auto It = Captures.find(VD); in generateInfoForLambdaCaptures() 8409 assert(It != Captures.end() && "Found lambda capture without field."); in generateInfoForLambdaCaptures()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaLambda.cpp | 1120 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnLambdaExpressionAfterIntroducer() 1161 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer() 1162 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnLambdaExpressionAfterIntroducer() 1326 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer() 1327 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnLambdaExpressionAfterIntroducer() 1462 for (auto &&C : LSI->Captures) { in ActOnStartOfLambdaDefinition() 1472 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition() 1502 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition() 2070 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local 2110 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I) { in BuildLambdaExpr() [all …]
|
H A D | SemaOpenMP.cpp | 4542 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in tryCaptureOpenMPLambdas() local 4544 RD->getCaptureFields(Captures, ThisCapture); in tryCaptureOpenMPLambdas() 7848 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const; 7852 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const; 7855 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, 7868 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, 7873 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const; 8401 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in tryBuildCapture() argument 8409 auto I = Captures.find(Capture); in tryBuildCapture() 8410 if (I != Captures.end()) in tryBuildCapture() [all …]
|
H A D | ScopeInfo.cpp | 230 for (auto &Cap : Captures) in isVLATypeCaptured()
|
H A D | SemaStmt.cpp | 4426 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument 4428 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList() 4444 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4447 Captures.push_back( in buildCapturedStmtCaptureList() 4456 Captures.push_back(CapturedStmt::Capture( in buildCapturedStmtCaptureList() 4580 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local 4582 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits)) in ActOnCapturedRegionEnd() 4590 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
|
H A D | SemaExpr.cpp | 16179 SmallVector<BlockDecl::Capture, 4> Captures; in ActOnBlockStmtExpr() local 16180 for (Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr() 16242 Captures.push_back(NewCap); in ActOnBlockStmtExpr() 16244 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0); in ActOnBlockStmtExpr() 18642 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit() 18662 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit() 18674 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
|
H A D | SemaExprCXX.cpp | 1338 CSI->Captures[CSI->CXXThisCaptureIndex - 1].markUsed(BuildAndDiagnose); in CheckCXXThisCapture()
|
H A D | SemaCodeComplete.cpp | 7114 for (const auto &C : Intro.Captures) { in CodeCompleteLambdaIntroducer()
|
H A D | SemaDecl.cpp | 8121 for (const Capture &Capture : LSI->Captures) { in getCaptureLocation()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Stmt.cpp | 1323 ArrayRef<Capture> Captures, in CapturedStmt() argument 1327 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt() 1343 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt() 1359 ArrayRef<Capture> Captures, in Create() argument 1372 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create() 1374 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create() 1375 if (!Captures.empty()) { in Create() 1378 Size += sizeof(Capture) * Captures.size(); in Create() 1382 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
|
H A D | DeclCXX.cpp | 1546 Captures.push_back(CaptureList); in AddCaptureList() 1547 if (Captures.size() == 2) { in AddCaptureList() 1549 Ctx.addDestruction(&Captures); in AddCaptureList() 1554 ArrayRef<LambdaCapture> Captures) { in setCaptures() argument 1558 Data.NumCaptures = Captures.size(); in setCaptures() 1561 Captures.size()); in setCaptures() 1563 for (const LambdaCapture &C : Captures) { in setCaptures() 1681 llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, in getCaptureFields() argument 1683 Captures.clear(); in getCaptureFields() 1687 for (const LambdaCapture *List : Lambda.Captures) { in getCaptureFields() [all …]
|
H A D | Decl.cpp | 5232 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument 5235 this->NumCaptures = Captures.size(); in setCaptures() 5237 if (Captures.empty()) { in setCaptures() 5238 this->Captures = nullptr; in setCaptures() 5242 this->Captures = Captures.copy(Context).data(); in setCaptures()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclCXX.h | 433 llvm::TinyPtrVector<Capture*> Captures; member 1075 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures); 1095 getCaptureFields(llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, 1108 return LambdaData.Captures.empty() ? nullptr : LambdaData.Captures.front(); in captures_begin()
|
H A D | Decl.h | 4527 const Capture *Captures = nullptr; variable 4594 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures() 4630 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
|
H A D | Stmt.h | 3837 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, 3858 ArrayRef<Capture> Captures,
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 2128 LambdaCapture &Cap1 = Lambda1.Captures.front()[I]; in MergeDefinitionData() 2129 LambdaCapture &Cap2 = Lambda2.Captures.front()[I]; in MergeDefinitionData() 2132 Lambda1.AddCaptureList(Reader.getContext(), Lambda2.Captures.front()); in MergeDefinitionData()
|
H A D | ASTWriter.cpp | 6633 const LambdaCapture &Capture = Lambda.Captures.front()[I]; in AddCXXDefinitionData()
|