Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h721 SmallVector<Capture, 4> Captures; variable
740 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
742 CaptureMap[Var] = Captures.size(); in addCapture()
747 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture()
760 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture()
773 return Captures[CaptureMap[Var] - 1]; in getCapture()
780 return Captures[Known->second - 1]; in getCapture()
962 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures()
1100 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture()
1102 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
H A DDeclSpec.h2860 SmallVector<LambdaCapture, 4> Captures; member
2865 return Captures.size() > 0 || Default != LCD_None; in hasLambdaCapture()
2877 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.h270 llvm::DenseMap<const VarDecl *, Capture *> Captures; variable
294 Captures[C.Cap->getVariable()] = &C; in buildCaptureMap()
301 auto it = Captures.find(var); in getCapture()
302 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
H A DCGException.cpp1781 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 DCGOpenMPRuntimeGPU.cpp2169 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas() local
2171 RD->getCaptureFields(Captures, ThisCapture); in adjustTargetSpecificDataForLambdas()
2186 auto It = Captures.find(VD); in adjustTargetSpecificDataForLambdas()
2187 assert(It != Captures.end() && "Found lambda capture without field."); in adjustTargetSpecificDataForLambdas()
H A DCGBlocks.cpp1838 const SmallVectorImpl<CGBlockInfo::Capture> &Captures, in getCopyDestroyHelperFuncName() argument
1852 for (auto &Cap : Captures) { in getCopyDestroyHelperFuncName()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp1146 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnLambdaExpressionAfterIntroducer()
1187 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer()
1188 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnLambdaExpressionAfterIntroducer()
1353 if (!LSI->Captures.empty()) in ActOnLambdaExpressionAfterIntroducer()
1354 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange; in ActOnLambdaExpressionAfterIntroducer()
1492 for (auto &&C : LSI->Captures) { in ActOnStartOfLambdaDefinition()
1502 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition()
1532 for (const auto &Capture : Intro.Captures) { in ActOnStartOfLambdaDefinition()
2138 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local
2178 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I) { in BuildLambdaExpr()
[all …]
H A DSemaOpenMP.cpp4539 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in tryCaptureOpenMPLambdas() local
4541 RD->getCaptureFields(Captures, ThisCapture); in tryCaptureOpenMPLambdas()
7852 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7856 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7859 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7872 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7877 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8436 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in tryBuildCapture() argument
8445 auto I = Captures.find(Capture); in tryBuildCapture()
8446 if (I != Captures.end()) in tryBuildCapture()
[all …]
H A DScopeInfo.cpp229 for (auto &Cap : Captures) in isVLATypeCaptured()
H A DSemaStmt.cpp4558 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument
4560 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList()
4576 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList()
4579 Captures.push_back( in buildCapturedStmtCaptureList()
4588 Captures.push_back(CapturedStmt::Capture( in buildCapturedStmtCaptureList()
4733 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local
4735 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits)) in ActOnCapturedRegionEnd()
4743 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1367 ArrayRef<Capture> Captures, in CapturedStmt() argument
1371 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1387 llvm::copy(Captures, Buffer); in CapturedStmt()
1403 ArrayRef<Capture> Captures, in Create() argument
1416 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create()
1418 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1419 if (!Captures.empty()) { in Create()
1422 Size += sizeof(Capture) * Captures.size(); in Create()
1426 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
H A DDeclCXX.cpp1629 Captures.push_back(CaptureList); in AddCaptureList()
1630 if (Captures.size() == 2) { in AddCaptureList()
1632 Ctx.addDestruction(&Captures); in AddCaptureList()
1637 ArrayRef<LambdaCapture> Captures) { in setCaptures() argument
1641 Data.NumCaptures = Captures.size(); in setCaptures()
1644 Captures.size()); in setCaptures()
1646 for (const LambdaCapture &C : Captures) { in setCaptures()
1798 llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures, in getCaptureFields() argument
1800 Captures.clear(); in getCaptureFields()
1804 for (const LambdaCapture *List : Lambda.Captures) { in getCaptureFields()
[all …]
H A DDecl.cpp5340 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument
5343 this->NumCaptures = Captures.size(); in setCaptures()
5345 if (Captures.empty()) { in setCaptures()
5346 this->Captures = nullptr; in setCaptures()
5350 this->Captures = Captures.copy(Context).data(); in setCaptures()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dunique_function_test.cpp70 TEST(UniqueFunctionTest, Captures) { in TEST() argument
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp292 return get(Context, Captures, CI.toIntValue()); in getWithCaptureInfo()
499 assert(hasAttribute(Attribute::Captures) && in getCaptureInfo()
667 if (hasAttribute(Attribute::Captures)) { in getAsString()
1077 case Attribute::Captures: in intersectWith()
1394 if (auto A = findEnumAttribute(Attribute::Captures)) in getCaptureInfo()
2232 return addRawIntAttr(Attribute::Captures, CI.toIntValue()); in addCapturesAttr()
2427 .addAttribute(Attribute::Captures) in typeIncompatible()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp635 CaptureInfo Captures = Call->getCaptureInfo(ArgNo); in callCapturesBefore() local
636 if (capturesAnyProvenance(Captures.getOtherComponents())) in callCapturesBefore()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h432 llvm::TinyPtrVector<Capture*> Captures; member
1080 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
1100 getCaptureFields(llvm::DenseMap<const ValueDecl *, FieldDecl *> &Captures,
1113 return LambdaData.Captures.empty() ? nullptr : LambdaData.Captures.front(); in captures_begin()
H A DDecl.h4640 const Capture *Captures = nullptr; variable
4707 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
4743 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
H A DStmt.h3930 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
3951 ArrayRef<Capture> Captures,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp594 Arg->getParent()->removeParamAttr(Arg->getArgNo(), Attribute::Captures); in getSpillInsertionPt()
H A DCoroFrame.cpp1067 Arg->getParent()->removeParamAttr(Arg->getArgNo(), Attribute::Captures); in insertSpills()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp2053 if (!AA::hasAssumedIRAttr<Attribute::Captures>( in updateImpl()
3951 if (AA::hasAssumedIRAttr<Attribute::Captures>( in isKnownNoAliasDueToNoAliasPreservation()
3981 bool IsAssumedNoCapture = AA::hasAssumedIRAttr<Attribute::Captures>( in isKnownNoAliasDueToNoAliasPreservation()
4067 bool IsAssumedNoCapture = AA::hasAssumedIRAttr<Attribute::Captures>( in updateImpl()
5744 assert(ImpliedAttributeKind == Attribute::Captures && in isImpliedByIR()
5760 A.getAttrs(IRP, {Attribute::Captures}, Attrs, in isImpliedByIR()
5770 {Attribute::Captures, Attribute::ByVal}, Attrs, in isImpliedByIR()
5852 assert(!AA::hasAssumedIRAttr<Attribute::Captures>( in initialize()
5868 Attrs.emplace_back(Attribute::get(Ctx, Attribute::Captures)); in getDeducedAttributes()
5930 bool IsAssumedNoCapture = AA::hasAssumedIRAttr<Attribute::Captures>( in checkUse()
[all …]
H A DAttributor.cpp850 bool IsAssumedNoCapture = AA::hasAssumedIRAttr<Attribute::Captures>( in isAssumedThreadLocalObject()
3497 checkAndQueryIRAttr<Attribute::Captures, AANoCapture>( in identifyDefaultAbstractAttributes()
3583 checkAndQueryIRAttr<Attribute::Captures, AANoCapture>( in identifyDefaultAbstractAttributes()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.td184 def Captures : IntAttr<"captures", IntersectCustom, [ParamAttr]>;
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp2147 LambdaCapture &Cap1 = Lambda1.Captures.front()[I]; in MergeDefinitionData()
2148 LambdaCapture &Cap2 = Lambda2.Captures.front()[I]; in MergeDefinitionData()
2151 Lambda1.AddCaptureList(Reader.getContext(), Lambda2.Captures.front()); in MergeDefinitionData()

12