/external/clang/lib/AST/ |
D | Stmt.cpp | 119 if (auto CapS = dyn_cast_or_null<CapturedStmt>(S)) in IgnoreContainers() 959 CapturedStmt::Capture::Capture(SourceLocation Loc, VariableCaptureKind Kind, in Capture() 986 CapturedStmt::VariableCaptureKind 987 CapturedStmt::Capture::getCaptureKind() const { in getCaptureKind() 991 VarDecl *CapturedStmt::Capture::getCapturedVar() const { in getCapturedVar() 997 CapturedStmt::Capture *CapturedStmt::getStoredCaptures() const { in getStoredCaptures() 998 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures() 1004 reinterpret_cast<char *>(const_cast<CapturedStmt *>(this)) in getStoredCaptures() 1008 CapturedStmt::CapturedStmt(Stmt *S, CapturedRegionKind Kind, in CapturedStmt() function in CapturedStmt 1032 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() function in CapturedStmt [all …]
|
D | StmtPrinter.cpp | 451 void StmtPrinter::VisitCapturedStmt(CapturedStmt *Node) { in VisitCapturedStmt() 983 assert(isa<CapturedStmt>(S->getAssociatedStmt()) && in PrintOMPExecutableDirective() 985 Stmt *CS = cast<CapturedStmt>(S->getAssociatedStmt())->getCapturedStmt(); in PrintOMPExecutableDirective()
|
/external/llvm-project/clang/lib/AST/ |
D | Stmt.cpp | 198 if (auto CapS = dyn_cast_or_null<CapturedStmt>(S)) in IgnoreContainers() 1257 CapturedStmt::Capture::Capture(SourceLocation Loc, VariableCaptureKind Kind, in Capture() 1284 CapturedStmt::VariableCaptureKind 1285 CapturedStmt::Capture::getCaptureKind() const { in getCaptureKind() 1289 VarDecl *CapturedStmt::Capture::getCapturedVar() const { in getCapturedVar() 1295 CapturedStmt::Capture *CapturedStmt::getStoredCaptures() const { in getStoredCaptures() 1296 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures() 1302 reinterpret_cast<char *>(const_cast<CapturedStmt *>(this)) in getStoredCaptures() 1306 CapturedStmt::CapturedStmt(Stmt *S, CapturedRegionKind Kind, in CapturedStmt() function in CapturedStmt 1330 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() function in CapturedStmt [all …]
|
D | ParentMap.cpp | 93 if (Stmt *SubStmt = cast<CapturedStmt>(S)->getCapturedStmt()) { in BuildParentMap()
|
/external/llvm-project/clang/test/AST/ |
D | finally-msvc.m | 11 // CHECK-NEXT: CapturedStmt
|
/external/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 63 auto *CS = cast<CapturedStmt>(S.getAssociatedStmt()); in OMPLexicalScope() 126 const CapturedStmt &S, SmallVectorImpl<llvm::Value *> &CapturedVars) { in GenerateOpenMPCapturedVars() 130 for (CapturedStmt::const_capture_init_iterator I = S.capture_init_begin(), in GenerateOpenMPCapturedVars() 198 CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) { in GenerateOpenMPCapturedStmtFunction() 584 CGCapturedStmtInfo CapturesInfo(cast<CapturedStmt>(*D.getAssociatedStmt())); in EmitOMPFirstprivateClause() 1194 auto CS = cast<CapturedStmt>(S.getAssociatedStmt()); in emitCommonOMPParallelDirective() 1243 CGF.EmitStmt(cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt()); in EmitOMPParallelDirective() 1876 cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt()); in EmitOMPDistributeParallelForDirective() 1888 cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt()); in EmitOMPDistributeParallelForSimdDirective() 1900 cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt()); in EmitOMPDistributeSimdDirective() [all …]
|
D | CGStmt.cpp | 149 const CapturedStmt *CS = cast<CapturedStmt>(S); in EmitStmt() 2150 LValue CodeGenFunction::InitCapturedStruct(const CapturedStmt &S) { in InitCapturedStruct() 2159 for (CapturedStmt::const_capture_init_iterator I = S.capture_init_begin(), in InitCapturedStruct() 2177 CodeGenFunction::EmitCapturedStmt(const CapturedStmt &S, CapturedRegionKind K) { in EmitCapturedStmt() 2192 Address CodeGenFunction::GenerateCapturedStmtArgument(const CapturedStmt &S) { in GenerateCapturedStmtArgument() 2199 CodeGenFunction::GenerateCapturedStmtFunction(const CapturedStmt &S) { in GenerateCapturedStmtFunction()
|
D | CGOpenMPRuntime.cpp | 51 CGOpenMPRegionInfo(const CapturedStmt &CS, in CGOpenMPRegionInfo() 99 CGOpenMPOutlinedRegionInfo(const CapturedStmt &CS, const VarDecl *ThreadIDVar, in CGOpenMPOutlinedRegionInfo() 177 CGOpenMPTaskOutlinedRegionInfo(const CapturedStmt &CS, in CGOpenMPTaskOutlinedRegionInfo() 298 CGOpenMPTargetRegionInfo(const CapturedStmt &CS, in CGOpenMPTargetRegionInfo() 327 CGOpenMPInnerExprInfo(CodeGenFunction &CGF, const CapturedStmt &CS) in CGOpenMPInnerExprInfo() 846 const CapturedStmt *CS = cast<CapturedStmt>(D.getAssociatedStmt()); in emitParallelOrTeamsOutlinedFunction() 882 auto *CS = cast<CapturedStmt>(D.getAssociatedStmt()); in emitTaskOutlinedFunction() 3517 cast<CapturedStmt>(*D.getAssociatedStmt())); in emitPrivatesInit() 4812 const CapturedStmt &CS = *cast<CapturedStmt>(D.getAssociatedStmt()); in emitTargetOutlinedFunctionHelper() 4884 const CapturedStmt &CS = *cast<CapturedStmt>(D.getAssociatedStmt()); in emitNumTeamsClauseForTargetDirective() [all …]
|
D | CodeGenFunction.h | 181 explicit CGCapturedStmtInfo(const CapturedStmt &S, 187 for (CapturedStmt::const_capture_iterator I = S.capture_begin(), in Kind() 2338 LValue InitCapturedStruct(const CapturedStmt &S); 2339 llvm::Function *EmitCapturedStmt(const CapturedStmt &S, CapturedRegionKind K); 2340 llvm::Function *GenerateCapturedStmtFunction(const CapturedStmt &S); 2341 Address GenerateCapturedStmtArgument(const CapturedStmt &S); 2342 llvm::Function *GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S); 2343 void GenerateOpenMPCapturedVars(const CapturedStmt &S,
|
/external/clang/lib/Sema/ |
D | SemaOpenMP.cpp | 1458 CapturedStmt *CS; 1579 DSAAttrChecker(DSAStackTy *S, Sema &SemaRef, CapturedStmt *CS) in DSAAttrChecker() 3393 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPExecutableDirective() 3396 DSAAttrChecker DSAChecker(DSAStack, *this, cast<CapturedStmt>(AStmt)); in ActOnOpenMPExecutableDirective() 3397 DSAChecker.Visit(cast<CapturedStmt>(AStmt)->getCapturedStmt()); in ActOnOpenMPExecutableDirective() 3883 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelDirective() 5163 auto *CD = cast<CapturedStmt>(AStmt)->getCapturedDecl(); in CheckOpenMPLoop() 5460 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSimdDirective() 5514 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForDirective() 5550 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForSimdDirective() [all …]
|
D | SemaStmt.cpp | 3854 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() 3862 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList() 3863 CapturedStmt::VCK_This)); in buildCapturedStmtCaptureList() 3868 CapturedStmt::Capture(Cap->getLocation(), CapturedStmt::VCK_VLAType)); in buildCapturedStmtCaptureList() 3873 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList() 3875 ? CapturedStmt::VCK_ByRef in buildCapturedStmtCaptureList() 3876 : CapturedStmt::VCK_ByCopy, in buildCapturedStmtCaptureList() 3980 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() 3987 CapturedStmt *Res = CapturedStmt::Create( in ActOnCapturedRegionEnd()
|
/external/llvm-project/clang/lib/Sema/ |
D | UsedDeclVisitor.h | 47 void VisitCapturedStmt(CapturedStmt *Node) { in VisitCapturedStmt()
|
D | SemaOpenMP.cpp | 3334 CapturedStmt *CS = nullptr; 3357 [](const CapturedStmt::Capture &C) { in VisitSubCaptures() 3714 void visitSubCaptures(CapturedStmt *S) { in visitSubCaptures() 3715 for (const CapturedStmt::Capture &Cap : S->captures()) { in visitSubCaptures() 3744 DSAAttrChecker(DSAStackTy *S, Sema &SemaRef, CapturedStmt *CS) in DSAAttrChecker() 5061 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPExecutableDirective() 5064 DSAAttrChecker DSAChecker(DSAStack, *this, cast<CapturedStmt>(AStmt)); in ActOnOpenMPExecutableDirective() 5068 S = cast<CapturedStmt>(S)->getCapturedStmt(); in ActOnOpenMPExecutableDirective() 5073 auto *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPExecutableDirective() 5078 CS = cast<CapturedStmt>(CS->getCapturedStmt()); in ActOnOpenMPExecutableDirective() [all …]
|
D | SemaStmt.cpp | 4358 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() 4376 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4377 CapturedStmt::VCK_This)); in buildCapturedStmtCaptureList() 4380 CapturedStmt::Capture(Cap.getLocation(), CapturedStmt::VCK_VLAType)); in buildCapturedStmtCaptureList() 4387 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4389 ? CapturedStmt::VCK_ByRef in buildCapturedStmtCaptureList() 4390 : CapturedStmt::VCK_ByCopy, in buildCapturedStmtCaptureList() 4510 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() 4518 CapturedStmt *Res = CapturedStmt::Create( in ActOnCapturedRegionEnd()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 82 const CapturedStmt *CS = S.getCapturedStmt(*CapturedRegion); in OMPLexicalScope() 241 const auto *CS = cast_or_null<CapturedStmt>(S.getAssociatedStmt()); in OMPSimdLexicalScope() 259 CS = dyn_cast<CapturedStmt>(CS->getCapturedStmt()); in OMPSimdLexicalScope() 308 const CapturedStmt &S, SmallVectorImpl<llvm::Value *> &CapturedVars) { in GenerateOpenMPCapturedVars() 312 for (CapturedStmt::const_capture_init_iterator I = S.capture_init_begin(), in GenerateOpenMPCapturedVars() 387 const CapturedStmt *S = nullptr; 398 explicit FunctionOptions(const CapturedStmt *S, bool UIntPtrCastRequired, in FunctionOptions() 583 CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S, in GenerateOpenMPCapturedStmtFunction() 1528 const CapturedStmt *CS = S.getCapturedStmt(OMPD_parallel); in emitCommonOMPParallelDirective() 1704 const CapturedStmt *CS = S.getCapturedStmt(OMPD_parallel); in EmitOMPParallelDirective() [all …]
|
D | CGStmt.cpp | 162 const CapturedStmt *CS = cast<CapturedStmt>(S); in EmitStmt() 2591 LValue CodeGenFunction::InitCapturedStruct(const CapturedStmt &S) { in InitCapturedStruct() 2600 for (CapturedStmt::const_capture_init_iterator I = S.capture_init_begin(), in InitCapturedStruct() 2617 CodeGenFunction::EmitCapturedStmt(const CapturedStmt &S, CapturedRegionKind K) { in EmitCapturedStmt() 2632 Address CodeGenFunction::GenerateCapturedStmtArgument(const CapturedStmt &S) { in GenerateCapturedStmtArgument() 2639 CodeGenFunction::GenerateCapturedStmtFunction(const CapturedStmt &S) { in GenerateCapturedStmtFunction()
|
D | CodeGenFunction.h | 365 explicit CGCapturedStmtInfo(const CapturedStmt &S, 371 for (CapturedStmt::const_capture_iterator I = S.capture_begin(), 3231 LValue InitCapturedStruct(const CapturedStmt &S); 3232 llvm::Function *EmitCapturedStmt(const CapturedStmt &S, CapturedRegionKind K); 3233 llvm::Function *GenerateCapturedStmtFunction(const CapturedStmt &S); 3234 Address GenerateCapturedStmtArgument(const CapturedStmt &S); 3235 llvm::Function *GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S, 3237 void GenerateOpenMPCapturedVars(const CapturedStmt &S,
|
D | CGOpenMPRuntime.cpp | 64 CGOpenMPRegionInfo(const CapturedStmt &CS, in CGOpenMPRegionInfo() 112 CGOpenMPOutlinedRegionInfo(const CapturedStmt &CS, const VarDecl *ThreadIDVar, in CGOpenMPOutlinedRegionInfo() 193 CGOpenMPTaskOutlinedRegionInfo(const CapturedStmt &CS, in CGOpenMPTaskOutlinedRegionInfo() 321 CGOpenMPTargetRegionInfo(const CapturedStmt &CS, in CGOpenMPTargetRegionInfo() 350 CGOpenMPInnerExprInfo(CodeGenFunction &CGF, const CapturedStmt &CS) in CGOpenMPInnerExprInfo() 1238 CodeGenModule &CGM, const OMPExecutableDirective &D, const CapturedStmt *CS, in emitParallelOrTeamsOutlinedFunction() 1277 const CapturedStmt *CS = D.getCapturedStmt(OMPD_parallel); in emitParallelOutlinedFunction() 1285 const CapturedStmt *CS = D.getCapturedStmt(OMPD_teams); in emitTeamsOutlinedFunction() 1316 const CapturedStmt *CS = D.getCapturedStmt(Region); in emitTaskOutlinedFunction() 3790 const CapturedStmt &CS = *D.getCapturedStmt(Kind); in emitPrivatesInit() [all …]
|
D | CGOpenMPRuntimeGPU.cpp | 291 void VisitOpenMPCapturedStmt(const CapturedStmt *S, in VisitOpenMPCapturedStmt() 296 for (const CapturedStmt::Capture &C : S->captures()) { in VisitOpenMPCapturedStmt() 371 dyn_cast_or_null<CapturedStmt>(D->getAssociatedStmt())) { in VisitOMPExecutableDirective() 386 void VisitCapturedStmt(const CapturedStmt *S) { in VisitCapturedStmt() 389 for (const CapturedStmt::Capture &C : S->captures()) { in VisitCapturedStmt() 4497 const CapturedStmt *CS = D.getCapturedStmt(OMPD_target); in adjustTargetSpecificDataForLambdas() 4498 for (const CapturedStmt::Capture &C : CS->captures()) { in adjustTargetSpecificDataForLambdas()
|
/external/clang/include/clang/AST/ |
D | Stmt.h | 2006 class CapturedStmt : public Stmt { 2079 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, 2083 CapturedStmt(EmptyShell Empty, unsigned NumCaptures); 2096 static CapturedStmt *Create(const ASTContext &Context, Stmt *S, 2102 static CapturedStmt *CreateDeserialized(const ASTContext &Context,
|
/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 30 def CapturedStmt : Stmt;
|
/external/llvm-project/clang/include/clang/AST/ |
D | Stmt.h | 3467 class CapturedStmt : public Stmt { 3539 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, 3543 CapturedStmt(EmptyShell Empty, unsigned NumCaptures); 3558 static CapturedStmt *Create(const ASTContext &Context, Stmt *S, 3564 static CapturedStmt *CreateDeserialized(const ASTContext &Context,
|
D | OpenMPClause.h | 7989 const CapturedStmt * 7996 auto *CS = cast<CapturedStmt>(getAssociatedStmt()); in getCapturedStmt() 8000 CS = cast<CapturedStmt>(CS->getCapturedStmt()); in getCapturedStmt() 8006 CapturedStmt * 8011 auto *CS = cast<CapturedStmt>(getAssociatedStmt()); in getInnermostCapturedStmt() 8013 CS = cast<CapturedStmt>(CS->getCapturedStmt()); in getInnermostCapturedStmt() 8017 const CapturedStmt * 8031 if (auto *CS = dyn_cast<CapturedStmt>(getAssociatedStmt())) { in getRawStmt() 8035 CS = dyn_cast<CapturedStmt>(S); in getRawStmt()
|
D | ASTNodeTraverser.h | 658 void VisitCapturedStmt(const CapturedStmt *Node) { in VisitCapturedStmt()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | StmtNodes.td | 26 def CapturedStmt : StmtNode<Stmt>;
|