Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DScopeInfo.h676 SmallVector<Capture, 4> Captures; variable
689 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
691 CaptureMap[Var] = Captures.size(); in addCapture()
696 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture()
709 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture()
724 return Captures[CaptureMap[Var] - 1]; in getCapture()
731 return Captures[Known->second - 1]; in getCapture()
908 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures()
1047 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture()
1049 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
H A DDeclSpec.h2690 SmallVector<LambdaCapture, 4> Captures; member
2704 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGBlocks.h242 llvm::DenseMap<const VarDecl*, Capture> Captures; variable
271 it = Captures.find(var); in getCapture()
272 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
H A DCGException.cpp1753 llvm::SmallSetVector<const VarDecl *, 4> Captures; member
1760 return !Captures.empty() || SEHCodeSlot.isValid(); in foundCaptures()
1774 Captures.insert(ParentThis); in VisitDeclRefExpr()
1778 Captures.insert(D); in VisitDeclRefExpr()
1782 Captures.insert(ParentThis); in VisitCXXThisExpr()
1933 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
H A DCGBlocks.cpp362 info.Captures.insert({Capture->getVariable(), C}); in setIndex()
593 info.Captures[variable] = CGBlockInfo::Capture::makeConstant(constant); in computeBlockInfo()
1832 const SmallVectorImpl<BlockCaptureManagedEntity> &Captures, in getCopyDestroyHelperFuncName() argument
1846 for (const BlockCaptureManagedEntity &E : Captures) { in getCopyDestroyHelperFuncName()
H A DCGOpenMPRuntimeGPU.cpp4353 llvm::DenseMap<const VarDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas() local
4355 RD->getCaptureFields(Captures, ThisCapture); in adjustTargetSpecificDataForLambdas()
4368 auto It = Captures.find(VD); in adjustTargetSpecificDataForLambdas()
4369 assert(It != Captures.end() && "Found lambda capture without field."); in adjustTargetSpecificDataForLambdas()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaLambda.cpp540 ArrayRef<LambdaIntroducer::LambdaCapture> Captures, in addLambdaParameters() argument
552 for (const auto &Capture : Captures) { in addLambdaParameters()
1037 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnStartOfLambdaDefinition()
1078 if (!LSI->Captures.empty()) in ActOnStartOfLambdaDefinition()
1079 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnStartOfLambdaDefinition()
1230 if (!LSI->Captures.empty()) in ActOnStartOfLambdaDefinition()
1231 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnStartOfLambdaDefinition()
1238 addLambdaParameters(Intro.Captures, Method, CurScope); in ActOnStartOfLambdaDefinition()
1745 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local
1785 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I) { in BuildLambdaExpr()
[all …]
H A DSemaOpenMP.cpp4401 llvm::DenseMap<const VarDecl *, FieldDecl *> Captures; in tryCaptureOpenMPLambdas() local
4403 RD->getCaptureFields(Captures, ThisCapture); in tryCaptureOpenMPLambdas()
7260 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7264 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7267 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7280 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7285 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7825 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture() argument
7832 auto I = Captures.find(Capture); in tryBuildCapture()
7833 if (I != Captures.end()) in tryBuildCapture()
[all …]
H A DScopeInfo.cpp227 for (auto &Cap : Captures) in isVLATypeCaptured()
H A DSemaStmt.cpp4646 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument
4648 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList()
4664 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList()
4667 Captures.push_back( in buildCapturedStmtCaptureList()
4675 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList()
4798 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local
4800 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits)) in ActOnCapturedRegionEnd()
4808 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
H A DSemaExpr.cpp15521 SmallVector<BlockDecl::Capture, 4> Captures; in ActOnBlockStmtExpr() local
15522 for (Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr()
15583 Captures.push_back(NewCap); in ActOnBlockStmtExpr()
15585 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0); in ActOnBlockStmtExpr()
17609 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
17629 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
17641 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DStmt.cpp1308 ArrayRef<Capture> Captures, in CapturedStmt() argument
1312 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1328 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt()
1339 ArrayRef<Capture> Captures, in Create() argument
1352 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create()
1354 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1355 if (!Captures.empty()) { in Create()
1358 Size += sizeof(Capture) * Captures.size(); in Create()
1362 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
H A DDeclCXX.cpp1423 ArrayRef<LambdaCapture> Captures) { in setCaptures() argument
1427 Data.NumCaptures = Captures.size(); in setCaptures()
1429 Data.Captures = (LambdaCapture *)Context.Allocate(sizeof(LambdaCapture) * in setCaptures()
1430 Captures.size()); in setCaptures()
1431 LambdaCapture *ToCapture = Data.Captures; in setCaptures()
1432 for (unsigned I = 0, N = Captures.size(); I != N; ++I) { in setCaptures()
1433 if (Captures[I].isExplicit()) in setCaptures()
1436 *ToCapture++ = Captures[I]; in setCaptures()
1549 llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures, in getCaptureFields() argument
1551 Captures.clear(); in getCaptureFields()
[all …]
H A DDecl.cpp4702 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument
4705 this->NumCaptures = Captures.size(); in setCaptures()
4707 if (Captures.empty()) { in setCaptures()
4708 this->Captures = nullptr; in setCaptures()
4712 this->Captures = Captures.copy(Context).data(); in setCaptures()
H A DExprCXX.cpp1213 return getLambdaClass()->getLambdaData().Captures; in capture_begin()
1231 return Data.Captures + Data.NumExplicitCaptures; in explicit_capture_end()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp492 bool Captures = true; in determinePointerReadAttrs() local
495 Captures = false; in determinePointerReadAttrs()
498 if (Captures) in determinePointerReadAttrs()
540 Captures &= !CB.doesNotCapture(UseIndex); in determinePointerReadAttrs()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/
H A Dpackage.d35 $(LREF Captures)
694 Effectively it's a forward range of Captures!R, produced in foreach()
709 Captures!(R,EngineType.DataIndex) _captures; in foreach()
723 _captures = Captures!(R,EngineType.DataIndex)(this); in foreach()
830 auto captures = Captures!(R, EngineType.DataIndex)(input, re.ngroup, re.dict); in matchOnce()
854 __traits(compiles, (Captures!R c) { fun(c); });
1394 string baz(Captures!(string) m)
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dtests2.d237 if (is(Cap == Captures!(Cap.String)))
251 …auto s = std.regex.replace!(baz!(Captures!(String)))(to!String("Strap a rocket engine on a chicken…
/netbsd-src/external/gpl3/gcc/dist/gcc/doc/
H A Dmatch-and-simplify.texi103 above example it is referred to in the replacement expression. Captures
131 may be either expressions, predicates or captures. Captures
200 Captures can also be used for capturing results of sub-expressions.
/netbsd-src/external/gpl3/gcc.old/dist/gcc/doc/
H A Dmatch-and-simplify.texi103 above example it is refered to in the replacement expression. Captures
131 may be either expressions, predicates or captures. Captures
200 Captures can also be used for capturing results of sub-expressions.
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/
H A Dtests.d695 if (is(Cap == Captures!(Cap.String)))
709 …auto s = std.regex.replace!(baz!(Captures!(String)))(to!String("Strap a rocket engine on a chicken…
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DDeclCXX.h406 Capture *Captures = nullptr; member
1038 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
1052 void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
1063 return isLambda() ? getLambdaData().Captures : nullptr; in captures_begin()
H A DDecl.h4174 const Capture *Captures = nullptr; variable
4241 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
4277 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
H A DStmt.h3543 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
3564 ArrayRef<Capture> Captures,
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/
H A Dpackage.d36 $(LREF Captures)

12