Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp3418 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3419 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3420 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3427 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3448 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3449 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3451 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3458 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3459 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3477 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp356 auto CurCap = S.captures().begin(); in GenerateOpenMPCapturedVars() local
359 I != E; ++I, ++CurField, ++CurCap) { in GenerateOpenMPCapturedVars()
364 } else if (CurCap->capturesThis()) { in GenerateOpenMPCapturedVars()
366 } else if (CurCap->capturesVariableByCopy()) { in GenerateOpenMPCapturedVars()
367 llvm::Value *CV = EmitLoadOfScalar(EmitLValue(*I), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
375 Twine(CurCap->getCapturedVar()->getName(), ".casted")); in GenerateOpenMPCapturedVars()
381 Ctx.getPointerType(CurField->getType()), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
389 CV = EmitLoadOfScalar(DstLV, CurCap->getLocation()); in GenerateOpenMPCapturedVars()
393 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()