Lines Matching defs:OMPBuilder

1032     : CGM(CGM), OMPBuilder(CGM.getModule()) {
1039 OMPBuilder.initialize();
1040 OMPBuilder.loadOffloadInfoMetadata(CGM.getLangOpts().OpenMPIsTargetDevice
1043 OMPBuilder.setConfig(Config);
1049 OMPBuilder.Config.setHasRequiresUnifiedSharedMemory(true);
1069 return OMPBuilder.createPlatformSpecificName(Parts);
1164 PushAndPopStackRAII(llvm::OpenMPIRBuilder *OMPBuilder, CodeGenFunction &CGF,
1166 : OMPBuilder(OMPBuilder) {
1167 if (!OMPBuilder)
1196 OMPBuilder->pushFinalizationCB(std::move(FI));
1199 if (OMPBuilder)
1200 OMPBuilder->popFinalizationCB();
1202 llvm::OpenMPIRBuilder *OMPBuilder;
1235 llvm::OpenMPIRBuilder &OMPBuilder = CGM.getOpenMPRuntime().getOMPBuilder();
1236 PushAndPopStackRAII PSR(&OMPBuilder, CGF, HasCancel, InnermostKind);
1291 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
1369 SrcLocStr = OMPBuilder.getOrCreateDefaultSrcLocStr(SrcLocStrSize);
1378 SrcLocStr = OMPBuilder.getOrCreateSrcLocStr(FunctionName, FileName, Line,
1382 return OMPBuilder.getOrCreateIdent(
1393 OMPBuilder.updateToLocation(CGF.Builder.saveIP());
1395 auto *SrcLocStr = OMPBuilder.getOrCreateSrcLocStr(
1397 return OMPBuilder.getOrCreateThreadID(
1398 OMPBuilder.getOrCreateIdent(SrcLocStr, SrcLocStrSize));
1446 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
1476 return OMPBuilder.IdentPtr;
1535 CodeGenModule &CGM, llvm::OpenMPIRBuilder &OMPBuilder,
1550 return OMPBuilder.getTargetEntryUniqueInfo(FileInfoCallBack, ParentName);
1564 llvm::Constant *addr = OMPBuilder.getAddrOfDeclareTargetVar(
1568 getEntryInfoFromPresumedLoc(CGM, OMPBuilder,
1585 return OMPBuilder.getOrCreateInternalVariable(
1605 OMPBuilder.getOrCreateRuntimeFunction(
1617 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
1627 OMPBuilder.getOrCreateRuntimeFunction(
1753 CGM, OMPBuilder, FD->getCanonicalDecl()->getBeginLoc(), FD->getName());
1755 OMPBuilder.OffloadInfoManager.getTargetRegionEntryFnName(Name, EntryInfo);
1771 OMPBuilder.OffloadInfoManager.registerDeviceGlobalVarEntryInfo(
1782 llvm::GlobalVariable *GAddr = OMPBuilder.getOrCreateInternalVariable(
1797 OMPBuilder.getOrCreateInternalVariable(
1803 OMPBuilder.getOrCreateRuntimeFunction(
1871 OMPBuilder.getOrCreateRuntimeFunction(M, OMPRTL___kmpc_fork_call);
1881 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
1909 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
1947 return OMPBuilder.getOrCreateInternalVariable(KmpCriticalNameTy, Name);
2008 OMPBuilder.getOrCreateRuntimeFunction(
2012 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
2030 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
2033 OMPBuilder.getOrCreateRuntimeFunction(
2059 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
2062 OMPBuilder.getOrCreateRuntimeFunction(
2076 OMPBuilder.createTaskyield(CGF.Builder);
2082 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2101 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
2104 OMPBuilder.getOrCreateRuntimeFunction(
2211 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
2214 OMPBuilder.getOrCreateRuntimeFunction(
2260 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2277 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
2280 OMPBuilder.getOrCreateRuntimeFunction(
2326 // Check if we should use the OMPBuilder
2331 cantFail(OMPBuilder.createBarrier(CGF.Builder, Kind, ForceSimpleCall,
2349 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
2370 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2386 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2534 CGF.EmitRuntimeCall(OMPBuilder.createDispatchInitFunction(IVSize, IVSigned),
2544 CGF.EmitRuntimeCall(OMPBuilder.createDispatchDeinitFunction(), Args);
2611 OMPBuilder.createForStaticInitFunction(Values.IVSize, Values.IVSigned,
2631 StaticInitFunction = OMPBuilder.createForStaticInitFunction(
2662 OMPBuilder.getOrCreateRuntimeFunction(
2666 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2679 CGF.EmitRuntimeCall(OMPBuilder.createDispatchFiniFunction(IVSize, IVSigned),
2700 OMPBuilder.createDispatchNextFunction(IVSize, IVSigned), Args);
2715 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2730 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2738 OMPBuilder.createFlush(CGF.Builder);
2743 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
2778 if (CGM.getLangOpts().OpenMPSimd || OMPBuilder.OffloadInfoManager.empty())
2822 OMPBuilder.createOffloadEntriesAndInfoMetadata(ErrorReportFn);
3747 OMPBuilder.getOrCreateRuntimeFunction(
3752 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
3769 OMPBuilder.getOrCreateRuntimeFunction(
3907 OMPBuilder.getOrCreateRuntimeFunction(
4380 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
4437 (void)CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
4541 OMPBuilder.getOrCreateRuntimeFunction(
4545 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
4576 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
4593 CommonActionTy Action(OMPBuilder.getOrCreateRuntimeFunction(
4596 OMPBuilder.getOrCreateRuntimeFunction(
4693 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
5040 OMPBuilder.getOrCreateRuntimeFunction(
5083 OMPBuilder.getOrCreateRuntimeFunction(
5205 OMPBuilder.getOrCreateRuntimeFunction(
5534 OMPBuilder.getOrCreateRuntimeFunction(
5545 return CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
5563 OMPBuilder.getOrCreateRuntimeFunction(
5599 OMPBuilder.getOrCreateRuntimeFunction(
5612 OMPBuilder.createTaskwait(CGF.Builder);
5638 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
5649 OMPBuilder.getOrCreateRuntimeFunction(M, OMPRTL___kmpc_omp_taskwait),
5713 OMPBuilder.getOrCreateRuntimeFunction(
5754 OMPBuilder.getOrCreateRuntimeFunction(M, OMPRTL___kmpc_cancel), Args);
5852 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
5876 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
5926 getEntryInfoFromPresumedLoc(CGM, OMPBuilder, D.getBeginLoc(), ParentName);
5938 cantFail(OMPBuilder.emitTargetRegionFunction(
7785 llvm::OpenMPIRBuilder &OMPBuilder,
8167 /*IsMapThis*/ !VD, OMPBuilder, VD);
8233 llvm::OpenMPIRBuilder &OMPBuilder,
8323 OMPBuilder.getMemberOfFlag(CombinedInfo.BasePointers.size() - 1);
8325 OMPBuilder.setCorrectMemberOfFlag(M, MemberOfFlag);
8334 MapCombinedInfoTy &CombinedInfo, llvm::OpenMPIRBuilder &OMPBuilder,
8340 generateAllInfoForClauses(CurExecDir->clauses(), CombinedInfo, OMPBuilder,
8348 llvm::OpenMPIRBuilder &OMPBuilder) const {
8353 OMPBuilder);
8435 llvm::OpenMPIRBuilder &OMPBuilder,
8461 OMPBuilder.getMemberOfFlag(TgtIdx);
8462 OMPBuilder.setCorrectMemberOfFlag(Types[I], MemberOfFlag);
8830 emitMappingInformation(CodeGenFunction &CGF, llvm::OpenMPIRBuilder &OMPBuilder,
8835 return OMPBuilder.getOrCreateDefaultSrcLocStr(SrcLocStrSize);
8857 return OMPBuilder.getOrCreateSrcLocStr(PLoc.getFilename(), ExprName,
8866 CGOpenMPRuntime::TargetDataInfo &Info, llvm::OpenMPIRBuilder &OMPBuilder,
8891 OMPBuilder.emitOffloadingArraysAndArgs(
9071 MEHandler.generateAllInfoForMapper(CombinedInfo, OMPBuilder);
9074 return emitMappingInformation(MapperCGF, OMPBuilder, MapExpr);
9102 auto *NewFn = OMPBuilder.emitUserDefinedMapper(PrivatizeAndGenMapInfoCB,
9191 llvm::OpenMPIRBuilder &OMPBuilder,
9250 CI->capturesThis(), OMPBuilder, nullptr,
9259 OMPBuilder, LambdaPointers, CombinedInfo.BasePointers,
9265 llvm::OpenMPIRBuilder &OMPBuilder,
9272 MEHandler.generateAllInfo(CombinedInfo, OMPBuilder, SkippedVarSet);
9275 return emitMappingInformation(CGF, OMPBuilder, MapExpr);
9288 llvm::OpenMPIRBuilder &OMPBuilder,
9294 genMapInfoForCaptures(MEHandler, CGF, CS, CapturedVars, OMPBuilder,
9296 genMapInfo(MEHandler, CGF, CombinedInfo, OMPBuilder, MappedVarSet);
9327 llvm::OpenMPIRBuilder &OMPBuilder = OMPRuntime->getOMPBuilder();
9332 genMapInfo(D, CGF, CS, CapturedVars, OMPBuilder, CombinedInfo);
9334 emitOffloadingArraysAndArgs(CGF, CombinedInfo, Info, OMPBuilder,
9533 CGM, OMPBuilder, E.getBeginLoc(), ParentName);
9537 if (!OMPBuilder.OffloadInfoManager.hasTargetRegionEntryInfo(EntryInfo))
9784 OMPBuilder.registerTargetGlobalVariable(
9788 getEntryInfoFromPresumedLoc(CGM, OMPBuilder,
9839 OMPBuilder.Config.setHasRequiresUnifiedSharedMemory(true);
9946 llvm::FunctionCallee RTLFn = OMPBuilder.getOrCreateRuntimeFunction(
9975 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
9993 CGF.EmitRuntimeCall(OMPBuilder.getOrCreateRuntimeFunction(
10031 MEHandler.generateAllInfo(CombinedInfo, OMPBuilder);
10034 return emitMappingInformation(CGF, OMPBuilder, MapExpr);
10095 cantFail(OMPBuilder.createTargetData(
10235 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(), RTLFn),
10246 genMapInfo(MEHandler, CGF, CombinedInfo, OMPBuilder);
10247 emitOffloadingArraysAndArgs(CGF, CombinedInfo, Info, OMPBuilder,
10952 llvm::FunctionCallee RTLFn = OMPBuilder.getOrCreateRuntimeFunction(
10957 llvm::FunctionCallee FiniRTLFn = OMPBuilder.getOrCreateRuntimeFunction(
10986 llvm::OpenMPIRBuilder &OMPBuilder = CGM.getOpenMPRuntime().getOMPBuilder();
10989 RTLFn = OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
10993 RTLFn = OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
11124 OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(), FnID), Args,
11126 llvm::FunctionCallee FiniRTLFn = OMPBuilder.getOrCreateRuntimeFunction(
11506 llvm::Constant *LastIV = OMPBuilder.getOrCreateInternalVariable(
11515 llvm::GlobalVariable *Last = OMPBuilder.getOrCreateInternalVariable(