Lines Matching defs:CGOpenMPRuntime

1 //===----- CGOpenMPRuntime.cpp - Interface to OpenMP Runtimes -------------===//
13 #include "CGOpenMPRuntime.h"
1036 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM)
1058 void CGOpenMPRuntime::clear() {
1073 std::string CGOpenMPRuntime::getName(ArrayRef<StringRef> Parts) const {
1132 void CGOpenMPRuntime::emitUserDefinedReduction(
1159 CGOpenMPRuntime::getUserDefinedReduction(const OMPDeclareReductionDecl *D) {
1249 std::string CGOpenMPRuntime::getOutlinedHelperName(StringRef Name) const {
1254 std::string CGOpenMPRuntime::getOutlinedHelperName(CodeGenFunction &CGF) const {
1258 std::string CGOpenMPRuntime::getReductionFuncName(StringRef Name) const {
1263 llvm::Function *CGOpenMPRuntime::emitParallelOutlinedFunction(
1273 llvm::Function *CGOpenMPRuntime::emitTeamsOutlinedFunction(
1283 llvm::Function *CGOpenMPRuntime::emitTaskOutlinedFunction(
1330 void CGOpenMPRuntime::setLocThreadIdInsertPt(CodeGenFunction &CGF,
1346 void CGOpenMPRuntime::clearLocThreadIdInsertPt(CodeGenFunction &CGF) {
1368 llvm::Value *CGOpenMPRuntime::emitUpdateLocation(CodeGenFunction &CGF,
1393 llvm::Value *CGOpenMPRuntime::getThreadID(CodeGenFunction &CGF,
1463 void CGOpenMPRuntime::functionFinished(CodeGenFunction &CGF) {
1484 llvm::Type *CGOpenMPRuntime::getIdentTyPointerTy() {
1488 llvm::Type *CGOpenMPRuntime::getKmpc_MicroPointerTy() {
1562 ConstantAddress CGOpenMPRuntime::getAddrOfDeclareTargetVar(const VarDecl *VD) {
1589 CGOpenMPRuntime::getOrCreateThreadPrivateCache(const VarDecl *VD) {
1598 Address CGOpenMPRuntime::getAddrOfThreadPrivate(CodeGenFunction &CGF,
1620 void CGOpenMPRuntime::emitThreadPrivateVarInit(
1641 llvm::Function *CGOpenMPRuntime::emitThreadPrivateVarDefinition(
1761 void CGOpenMPRuntime::emitDeclareTargetFunction(const FunctionDecl *FD,
1796 Address CGOpenMPRuntime::getAddrOfArtificialThreadPrivate(CodeGenFunction &CGF,
1829 void CGOpenMPRuntime::emitIfClause(CodeGenFunction &CGF, const Expr *Cond,
1868 void CGOpenMPRuntime::emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
1880 CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
1895 CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
1946 Address CGOpenMPRuntime::emitThreadIDAddress(CodeGenFunction &CGF,
1963 llvm::Value *CGOpenMPRuntime::getCriticalRegionLock(StringRef CriticalName) {
2008 void CGOpenMPRuntime::emitCriticalRegion(CodeGenFunction &CGF,
2038 void CGOpenMPRuntime::emitMasterRegion(CodeGenFunction &CGF,
2061 void CGOpenMPRuntime::emitMaskedRegion(CodeGenFunction &CGF,
2090 void CGOpenMPRuntime::emitTaskyieldCall(CodeGenFunction &CGF,
2110 void CGOpenMPRuntime::emitTaskgroupRegion(CodeGenFunction &CGF,
2201 void CGOpenMPRuntime::emitSingleRegion(CodeGenFunction &CGF,
2288 void CGOpenMPRuntime::emitOrderedRegion(CodeGenFunction &CGF,
2312 unsigned CGOpenMPRuntime::getDefaultFlagsForBarriers(OpenMPDirectiveKind Kind) {
2327 void CGOpenMPRuntime::getDefaultScheduleAndChunk(
2345 void CGOpenMPRuntime::emitBarrierCall(CodeGenFunction &CGF, SourceLocation Loc,
2395 void CGOpenMPRuntime::emitErrorCall(CodeGenFunction &CGF, SourceLocation Loc,
2440 bool CGOpenMPRuntime::isStaticNonchunked(OpenMPScheduleClauseKind ScheduleKind,
2447 bool CGOpenMPRuntime::isStaticNonchunked(
2453 bool CGOpenMPRuntime::isStaticChunked(OpenMPScheduleClauseKind ScheduleKind,
2460 bool CGOpenMPRuntime::isStaticChunked(
2466 bool CGOpenMPRuntime::isDynamic(OpenMPScheduleClauseKind ScheduleKind) const {
2524 void CGOpenMPRuntime::emitForDispatchInit(
2558 void CGOpenMPRuntime::emitForDispatchDeinit(CodeGenFunction &CGF,
2571 const CGOpenMPRuntime::StaticRTInput &Values) {
2616 void CGOpenMPRuntime::emitForStaticInit(CodeGenFunction &CGF,
2638 void CGOpenMPRuntime::emitDistributeStaticInit(
2641 const CGOpenMPRuntime::StaticRTInput &Values) {
2659 void CGOpenMPRuntime::emitForStaticFinish(CodeGenFunction &CGF,
2691 void CGOpenMPRuntime::emitForOrderedIterationEnd(CodeGenFunction &CGF,
2703 llvm::Value *CGOpenMPRuntime::emitForNext(CodeGenFunction &CGF,
2726 void CGOpenMPRuntime::emitNumThreadsClause(CodeGenFunction &CGF,
2740 void CGOpenMPRuntime::emitProcBindClause(CodeGenFunction &CGF,
2755 void CGOpenMPRuntime::emitFlush(CodeGenFunction &CGF, ArrayRef<const Expr *>,
2795 void CGOpenMPRuntime::createOffloadEntriesAndInfoMetadata() {
2845 void CGOpenMPRuntime::emitKmpRoutineEntryT(QualType KmpInt32Ty) {
3613 CGOpenMPRuntime::TaskResultTy
3614 CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
4049 CGOpenMPRuntime::getDepobjElements(CodeGenFunction &CGF, LValue DepobjLVal,
4146 SmallVector<llvm::Value *, 4> CGOpenMPRuntime::emitDepobjElementsSizes(
4184 void CGOpenMPRuntime::emitDepobjElements(CodeGenFunction &CGF,
4221 std::pair<llvm::Value *, Address> CGOpenMPRuntime::emitDependClause(
4350 Address CGOpenMPRuntime::emitDepobjDependClause(
4437 void CGOpenMPRuntime::emitDestroyClause(CodeGenFunction &CGF, LValue DepobjLVal,
4464 void CGOpenMPRuntime::emitUpdateClause(CodeGenFunction &CGF, LValue DepobjLVal,
4513 void CGOpenMPRuntime::emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
4633 void CGOpenMPRuntime::emitTaskLoopCall(CodeGenFunction &CGF, SourceLocation Loc,
4820 llvm::Function *CGOpenMPRuntime::emitReductionFunction(
4910 void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF,
4930 void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
5084 CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
5186 CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
5443 llvm::Value *CGOpenMPRuntime::emitTaskReductionInit(
5568 void CGOpenMPRuntime::emitTaskReductionFini(CodeGenFunction &CGF,
5586 void CGOpenMPRuntime::emitTaskReductionFixups(CodeGenFunction &CGF,
5603 Address CGOpenMPRuntime::getTaskReductionItem(CodeGenFunction &CGF,
5623 void CGOpenMPRuntime::emitTaskwaitCall(CodeGenFunction &CGF, SourceLocation Loc,
5676 void CGOpenMPRuntime::emitInlinedDirective(CodeGenFunction &CGF,
5714 void CGOpenMPRuntime::emitCancellationPointCall(
5754 void CGOpenMPRuntime::emitCancelCall(CodeGenFunction &CGF, SourceLocation Loc,
5766 CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
5828 void CGOpenMPRuntime::emitTargetOutlinedFunction(
5849 void CGOpenMPRuntime::emitUsesAllocatorsInit(CodeGenFunction &CGF,
5883 void CGOpenMPRuntime::emitUsesAllocatorsFini(CodeGenFunction &CGF,
5899 void CGOpenMPRuntime::computeMinAndMaxThreadsAndTeams(
5935 void CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(
5979 const Stmt *CGOpenMPRuntime::getSingleCompoundChild(ASTContext &Ctx,
6021 const Expr *CGOpenMPRuntime::getNumTeamsExprForTargetDirective(
6034 CGOpenMPRuntime::getSingleCompoundChild(CGF.getContext(), Body);
6153 llvm::Value *CGOpenMPRuntime::emitNumTeamsForTargetDirective(
6202 const Stmt *Child = CGOpenMPRuntime::getSingleCompoundChild(
6290 const Expr *CGOpenMPRuntime::getNumThreadsExprForTargetDirective(
6327 const Stmt *Child = CGOpenMPRuntime::getSingleCompoundChild(
6361 const Stmt *Child = CGOpenMPRuntime::getSingleCompoundChild(
6381 const Stmt *Child = CGOpenMPRuntime::getSingleCompoundChild(
6450 llvm::Value *CGOpenMPRuntime::emitNumThreadsForTargetDirective(
8881 CGOpenMPRuntime::TargetDataInfo &Info, llvm::OpenMPIRBuilder &OMPBuilder,
9069 void CGOpenMPRuntime::emitUserDefinedMapper(const OMPDeclareMapperDecl *D,
9338 void CGOpenMPRuntime::emitUDMapperArrayInitOrDel(
9408 llvm::Function *CGOpenMPRuntime::getOrCreateUserDefinedMapperFunc(
9417 llvm::Value *CGOpenMPRuntime::emitTargetNumIterationsCall(
9439 emitTargetCallFallback(CGOpenMPRuntime *OMPRuntime, llvm::Function *OutlinedFn,
9489 CGOpenMPRuntime *OMPRuntime, llvm::Function *OutlinedFn,
9580 CGOpenMPRuntime::TargetDataInfo Info;
9667 emitTargetCallElse(CGOpenMPRuntime *OMPRuntime, llvm::Function *OutlinedFn,
9689 void CGOpenMPRuntime::emitTargetCall(
9758 void CGOpenMPRuntime::scanForTargetRegionsFunctions(const Stmt *S,
9928 bool CGOpenMPRuntime::emitTargetFunctions(GlobalDecl GD) {
9954 bool CGOpenMPRuntime::emitTargetGlobalVariable(GlobalDecl GD) {
9993 void CGOpenMPRuntime::registerTargetGlobalVariable(const VarDecl *VD,
10040 bool CGOpenMPRuntime::emitTargetGlobal(GlobalDecl GD) {
10048 void CGOpenMPRuntime::emitDeferredTargetDecls() const {
10069 void CGOpenMPRuntime::adjustTargetSpecificDataForLambdas(
10075 void CGOpenMPRuntime::processRequiresDirective(const OMPRequiresDecl *D) {
10099 llvm::AtomicOrdering CGOpenMPRuntime::getDefaultMemoryOrdering() const {
10103 bool CGOpenMPRuntime::hasAllocateAttributeForGlobalVar(const VarDecl *VD,
10128 bool CGOpenMPRuntime::hasRequiresUnifiedSharedMemory() const {
10132 CGOpenMPRuntime::DisableAutoDeclareTargetRAII::DisableAutoDeclareTargetRAII(
10141 CGOpenMPRuntime::DisableAutoDeclareTargetRAII::~DisableAutoDeclareTargetRAII() {
10146 bool CGOpenMPRuntime::markAsGlobalTarget(GlobalDecl GD) {
10166 void CGOpenMPRuntime::emitTeamsCall(CodeGenFunction &CGF,
10191 void CGOpenMPRuntime::emitNumTeamsClause(CodeGenFunction &CGF,
10220 void CGOpenMPRuntime::emitThreadLimitClause(CodeGenFunction &CGF,
10238 void CGOpenMPRuntime::emitTargetDataCalls(
10241 CGOpenMPRuntime::TargetDataInfo &Info) {
10339 void CGOpenMPRuntime::emitTargetDataStandAloneCall(
10487 CGOpenMPRuntime::TargetDataInfo Info;
10959 void CGOpenMPRuntime::emitDeclareSimdFunction(const FunctionDecl *FD,
11137 void CGOpenMPRuntime::emitDoacrossInit(CodeGenFunction &CGF,
11244 void CGOpenMPRuntime::emitDoacrossOrdered(CodeGenFunction &CGF,
11251 void CGOpenMPRuntime::emitDoacrossOrdered(CodeGenFunction &CGF,
11258 void CGOpenMPRuntime::emitCall(CodeGenFunction &CGF, SourceLocation Loc,
11273 void CGOpenMPRuntime::emitOutlinedFunctionCall(
11279 void CGOpenMPRuntime::emitFunctionProlog(CodeGenFunction &CGF, const Decl *D) {
11285 Address CGOpenMPRuntime::getParameterAddress(CodeGenFunction &CGF,
11321 Address CGOpenMPRuntime::getAddressOfLocalVariable(CodeGenFunction &CGF,
11421 bool CGOpenMPRuntime::isLocalVarInUntiedTask(CodeGenFunction &CGF,
11429 CGOpenMPRuntime::NontemporalDeclsRAII::NontemporalDeclsRAII(
11455 CGOpenMPRuntime::NontemporalDeclsRAII::~NontemporalDeclsRAII() {
11461 CGOpenMPRuntime::UntiedTaskLocalDeclsRAII::UntiedTaskLocalDeclsRAII(
11473 CGOpenMPRuntime::UntiedTaskLocalDeclsRAII::~UntiedTaskLocalDeclsRAII() {
11479 bool CGOpenMPRuntime::isNontemporalDecl(const ValueDecl *VD) const {
11487 void CGOpenMPRuntime::LastprivateConditionalRAII::tryToDisableInnerAnalysis(
11566 CGOpenMPRuntime::LastprivateConditionalRAII::LastprivateConditionalRAII(
11598 CGOpenMPRuntime::LastprivateConditionalRAII::LastprivateConditionalRAII(
11617 CGOpenMPRuntime::LastprivateConditionalRAII
11618 CGOpenMPRuntime::LastprivateConditionalRAII::disable(
11623 CGOpenMPRuntime::LastprivateConditionalRAII::~LastprivateConditionalRAII() {
11639 Address CGOpenMPRuntime::emitLastprivateConditionalInit(CodeGenFunction &CGF,
11678 ArrayRef<CGOpenMPRuntime::LastprivateConditionalData> LPM;
11688 for (const CGOpenMPRuntime::LastprivateConditionalData &D :
11707 for (const CGOpenMPRuntime::LastprivateConditionalData &D :
11736 ArrayRef<CGOpenMPRuntime::LastprivateConditionalData> LPM)
11745 void CGOpenMPRuntime::emitLastprivateConditionalUpdate(CodeGenFunction &CGF,
11833 void CGOpenMPRuntime::checkAndEmitLastprivateConditional(CodeGenFunction &CGF,
11877 void CGOpenMPRuntime::checkAndEmitSharedLastprivateConditional(
11927 void CGOpenMPRuntime::emitLastprivateConditionalFinalUpdate(
12134 CGOpenMPRuntime::emitReduction(CGF, Loc, Privates, LHSExprs, RHSExprs,
12229 CGOpenMPRuntime::TargetDataInfo &Info) {