Home
last modified time | relevance | path

Searched refs:CurCap (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Sema/
DSemaStmt.cpp2863 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
2864 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
2865 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
2870 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
2884 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
2885 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
2887 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
2893 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
2894 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
2912 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp3309 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3310 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3311 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3317 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3338 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3339 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3341 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3348 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3349 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3367 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
[all …]
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp129 auto CurCap = S.captures().begin(); in GenerateOpenMPCapturedVars() local
132 I != E; ++I, ++CurField, ++CurCap) { in GenerateOpenMPCapturedVars()
137 } else if (CurCap->capturesThis()) in GenerateOpenMPCapturedVars()
139 else if (CurCap->capturesVariableByCopy()) { in GenerateOpenMPCapturedVars()
149 Twine(CurCap->getCapturedVar()->getName()) + ".casted"); in GenerateOpenMPCapturedVars()
166 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()
/external/llvm-project/clang/lib/CodeGen/
DCGStmtOpenMP.cpp311 auto CurCap = S.captures().begin(); in GenerateOpenMPCapturedVars() local
314 I != E; ++I, ++CurField, ++CurCap) { in GenerateOpenMPCapturedVars()
319 } else if (CurCap->capturesThis()) { in GenerateOpenMPCapturedVars()
321 } else if (CurCap->capturesVariableByCopy()) { in GenerateOpenMPCapturedVars()
322 llvm::Value *CV = EmitLoadOfScalar(EmitLValue(*I), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
330 Twine(CurCap->getCapturedVar()->getName(), ".casted")); in GenerateOpenMPCapturedVars()
335 Ctx.getPointerType(CurField->getType()), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
343 CV = EmitLoadOfScalar(DstLV, CurCap->getLocation()); in GenerateOpenMPCapturedVars()
347 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()