Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp3569 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3596 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3597 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3599 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3606 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3607 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3625 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
3640 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3641 CurCap->ReturnType = FnRetType; in ActOnCapScopeReturnStmt()
3645 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp329 auto CurCap = S.captures().begin(); in GenerateOpenMPCapturedVars() local
332 I != E; ++I, ++CurField, ++CurCap) { in GenerateOpenMPCapturedVars()
337 } else if (CurCap->capturesThis()) { in GenerateOpenMPCapturedVars()
339 } else if (CurCap->capturesVariableByCopy()) { in GenerateOpenMPCapturedVars()
340 llvm::Value *CV = EmitLoadOfScalar(EmitLValue(*I), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
348 Twine(CurCap->getCapturedVar()->getName(), ".casted")); in GenerateOpenMPCapturedVars()
353 Ctx.getPointerType(CurField->getType()), CurCap->getLocation()); in GenerateOpenMPCapturedVars()
361 CV = EmitLoadOfScalar(DstLV, CurCap->getLocation()); in GenerateOpenMPCapturedVars()
365 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()