Home
last modified time | relevance | path

Searched refs:Captures (Results 1 – 25 of 26) sorted by relevance

12

/openbsd/gnu/llvm/clang/include/clang/Sema/
H A DScopeInfo.h692 SmallVector<Capture, 4> Captures; variable
705 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
707 CaptureMap[Var] = Captures.size(); in addCapture()
712 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture()
725 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture()
738 return Captures[CaptureMap[Var] - 1]; in getCapture()
745 return Captures[Known->second - 1]; in getCapture()
922 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures()
1058 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture()
1060 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
H A DDeclSpec.h2764 SmallVector<LambdaCapture, 4> Captures; member
2770 return Captures.size() > 0 || Default != LCD_None; in hasLambdaCapture()
2782 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
H A DSema.h7159 ArrayRef<LambdaIntroducer::LambdaCapture> Captures,
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGBlocks.h269 llvm::DenseMap<const VarDecl *, Capture *> Captures; variable
298 Captures[C.Cap->getVariable()] = &C; in buildCaptureMap()
305 auto it = Captures.find(var); in getCapture()
306 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
H A DCGException.cpp1756 llvm::SmallSetVector<const VarDecl *, 4> Captures; member
1763 return !Captures.empty() || SEHCodeSlot.isValid(); in foundCaptures()
1777 Captures.insert(ParentThis); in VisitDeclRefExpr()
1781 Captures.insert(D); in VisitDeclRefExpr()
1785 Captures.insert(ParentThis); in VisitCXXThisExpr()
1937 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
H A DCGOpenMPRuntimeGPU.cpp3451 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas() local
3453 RD->getCaptureFields(Captures, ThisCapture); in adjustTargetSpecificDataForLambdas()
3468 auto It = Captures.find(VD); in adjustTargetSpecificDataForLambdas()
3469 assert(It != Captures.end() && "Found lambda capture without field."); in adjustTargetSpecificDataForLambdas()
H A DCGBlocks.cpp1808 const SmallVectorImpl<CGBlockInfo::Capture> &Captures, in getCopyDestroyHelperFuncName() argument
1822 for (auto &Cap : Captures) { in getCopyDestroyHelperFuncName()
H A DCGOpenMPRuntime.cpp8563 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in generateInfoForLambdaCaptures() local
8565 RD->getCaptureFields(Captures, ThisCapture); in generateInfoForLambdaCaptures()
8591 auto It = Captures.find(VD); in generateInfoForLambdaCaptures()
8592 assert(It != Captures.end() && "Found lambda capture without field."); in generateInfoForLambdaCaptures()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaLambda.cpp550 ArrayRef<LambdaIntroducer::LambdaCapture> Captures, in addLambdaParameters() argument
562 for (const auto &Capture : Captures) { in addLambdaParameters()
1071 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnStartOfLambdaDefinition()
1112 if (!LSI->Captures.empty()) in ActOnStartOfLambdaDefinition()
1269 if (!LSI->Captures.empty()) in ActOnStartOfLambdaDefinition()
1277 addLambdaParameters(Intro.Captures, Method, CurScope); in ActOnStartOfLambdaDefinition()
1793 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local
1834 const Capture &From = LSI->Captures[I]; in BuildLambdaExpr()
1916 Captures.push_back(Capture); in BuildLambdaExpr()
1923 Class->setCaptures(Context, Captures); in BuildLambdaExpr()
[all …]
H A DSemaOpenMP.cpp8451 auto I = Captures.find(Capture); in tryBuildCapture()
8452 if (I != Captures.end()) in tryBuildCapture()
8456 Captures[Capture] = Ref; in tryBuildCapture()
9274 Captures); in checkOpenMPIterationSpace()
9276 ISC.buildCounterVar(Captures, DSA); in checkOpenMPIterationSpace()
9389 if (Captures) in buildCounterUpdate()
9405 if (Captures && !IsNonRectangularLB) in buildCounterUpdate()
9493 if (!Captures.empty()) { in buildPreInits()
9495 for (const auto &Pair : Captures) in buildPreInits()
9589 Captures[DRE] = DRE; in checkOpenMPLoop()
[all …]
H A DScopeInfo.cpp228 for (auto &Cap : Captures) in isVLATypeCaptured()
H A DSemaStmt.cpp4661 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument
4663 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList()
4679 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList()
4682 Captures.push_back( in buildCapturedStmtCaptureList()
4690 Captures.push_back(CapturedStmt::Capture( in buildCapturedStmtCaptureList()
4813 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local
4815 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits)) in ActOnCapturedRegionEnd()
4823 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
H A DSemaExpr.cpp16678 SmallVector<BlockDecl::Capture, 4> Captures; in ActOnBlockStmtExpr() local
16679 for (Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr()
16741 Captures.push_back(NewCap); in ActOnBlockStmtExpr()
16743 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0); in ActOnBlockStmtExpr()
19003 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
19023 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
19035 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
H A DSemaExprCXX.cpp1305 CSI->Captures[CSI->CXXThisCaptureIndex - 1].markUsed(BuildAndDiagnose); in CheckCXXThisCapture()
H A DSemaCodeComplete.cpp6963 for (const auto &C : Intro.Captures) { in CodeCompleteLambdaIntroducer()
/openbsd/gnu/llvm/clang/lib/AST/
H A DStmt.cpp1321 ArrayRef<Capture> Captures, in CapturedStmt() argument
1325 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1341 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt()
1352 ArrayRef<Capture> Captures, in Create() argument
1365 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create()
1367 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1368 if (!Captures.empty()) { in Create()
1371 Size += sizeof(Capture) * Captures.size(); in Create()
1375 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
H A DDeclCXX.cpp1466 Captures.push_back(CaptureList); in AddCaptureList()
1467 if (Captures.size() == 2) { in AddCaptureList()
1469 Ctx.addDestruction(&Captures); in AddCaptureList()
1478 Data.NumCaptures = Captures.size(); in setCaptures()
1483 for (unsigned I = 0, N = Captures.size(); I != N; ++I) { in setCaptures()
1484 if (Captures[I].isExplicit()) in setCaptures()
1487 *ToCapture++ = Captures[I]; in setCaptures()
1600 llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, in getCaptureFields() argument
1602 Captures.clear(); in getCaptureFields()
1606 for (const LambdaCapture *List : Lambda.Captures) { in getCaptureFields()
[all …]
H A DDecl.cpp4927 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument
4930 this->NumCaptures = Captures.size(); in setCaptures()
4932 if (Captures.empty()) { in setCaptures()
4933 this->Captures = nullptr; in setCaptures()
4937 this->Captures = Captures.copy(Context).data(); in setCaptures()
/openbsd/gnu/llvm/clang/include/clang/AST/
H A DDeclCXX.h417 llvm::TinyPtrVector<Capture*> Captures; member
1052 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
1072 getCaptureFields(llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures,
1085 return LambdaData.Captures.empty() ? nullptr : LambdaData.Captures.front(); in captures_begin()
H A DDecl.h4392 const Capture *Captures = nullptr; variable
4459 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
4495 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
H A DStmt.h3616 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
3637 ArrayRef<Capture> Captures,
/openbsd/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp2041 LambdaCapture &Cap1 = Lambda1.Captures.front()[I]; in MergeDefinitionData()
2042 LambdaCapture &Cap2 = Lambda2.Captures.front()[I]; in MergeDefinitionData()
2045 Lambda1.AddCaptureList(Reader.getContext(), Lambda2.Captures.front()); in MergeDefinitionData()
H A DASTWriter.cpp5950 const LambdaCapture &Capture = Lambda.Captures.front()[I]; in AddCXXDefinitionData()
/openbsd/gnu/usr.bin/binutils/gdb/mi/
H A DChangeLog-1999-20031980 function. Captures code that was repeated for all asynch
/openbsd/gnu/llvm/clang/docs/
H A DLanguageExtensions.rst3607 void my_assert(bool pred, int line = __builtin_LINE(), // Captures line of caller

12