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.cpp3526 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3527 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3528 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3535 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3556 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3557 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3559 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3566 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3567 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3585 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp386 auto CurCap = S.captures().begin(); in GenerateOpenMPCapturedVars() local
389 I != E; ++I, ++CurField, ++CurCap) { in GenerateOpenMPCapturedVars()
394 } else if (CurCap->capturesThis()) { in GenerateOpenMPCapturedVars()
396 } else if (CurCap->capturesVariableByCopy()) { in GenerateOpenMPCapturedVars()
397 llvm::Value *CV = EmitLoadOfScalar(EmitLValue(*I), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
405 Twine(CurCap->getCapturedVar()->getName(), ".casted")); in GenerateOpenMPCapturedVars()
411 Ctx.getPointerType(CurField->getType()), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
419 CV = EmitLoadOfScalar(DstLV, CurCap->getLocation()); in GenerateOpenMPCapturedVars()
423 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()