Home
last modified time | relevance | path

Searched refs:OutlinedFn (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp506 Function *OutlinedFn = Extractor.extractCodeRegion(CEAC); in CreateParallel() local
507 OutlinedFn->addParamAttr(0, Attribute::NoAlias); in CreateParallel()
508 OutlinedFn->addParamAttr(1, Attribute::NoAlias); in CreateParallel()
509 OutlinedFn->addFnAttr(Attribute::NoUnwind); in CreateParallel()
510 OutlinedFn->addFnAttr(Attribute::NoRecurse); in CreateParallel()
513 LLVM_DEBUG(dbgs() << " Outlined function: " << *OutlinedFn << "\n"); in CreateParallel()
517 OutlinedFn->removeFromParent(); in CreateParallel()
518 M.getFunctionList().insertAfter(OuterFn->getIterator(), OutlinedFn); in CreateParallel()
523 BasicBlock &ArtificialEntry = OutlinedFn->getEntryBlock(); in CreateParallel()
529 LLVM_DEBUG(dbgs() << "PP Outlined function: " << *OutlinedFn << "\n"); in CreateParallel()
[all …]
/external/llvm-project/llvm/unittests/Frontend/
DOpenMPIRBuilderTest.cpp404 Function *OutlinedFn = PrivAI->getFunction(); in TEST_F() local
405 EXPECT_NE(F, OutlinedFn); in TEST_F()
407 EXPECT_TRUE(OutlinedFn->hasFnAttribute(Attribute::NoUnwind)); in TEST_F()
408 EXPECT_TRUE(OutlinedFn->hasFnAttribute(Attribute::NoRecurse)); in TEST_F()
409 EXPECT_TRUE(OutlinedFn->hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
410 EXPECT_TRUE(OutlinedFn->hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
412 EXPECT_TRUE(OutlinedFn->hasInternalLinkage()); in TEST_F()
413 EXPECT_EQ(OutlinedFn->arg_size(), 3U); in TEST_F()
415 EXPECT_EQ(&OutlinedFn->getEntryBlock(), PrivAI->getParent()); in TEST_F()
416 EXPECT_EQ(OutlinedFn->getNumUses(), 1U); in TEST_F()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGOpenMPRuntimeGPU.h112 llvm::Function *&OutlinedFn,
128 llvm::Function *&OutlinedFn,
143 llvm::Function *&OutlinedFn,
159 llvm::Value *OutlinedFn,
175 llvm::Function *OutlinedFn,
275 SourceLocation Loc, llvm::Function *OutlinedFn,
288 llvm::Function *OutlinedFn,
357 CodeGenFunction &CGF, SourceLocation Loc, llvm::FunctionCallee OutlinedFn,
DCGOpenMPRuntime.h333 llvm::Function *&OutlinedFn,
993 llvm::Function *OutlinedFn,
1545 llvm::Function *&OutlinedFn,
1564 llvm::Function *OutlinedFn, llvm::Value *OutlinedFnID, const Expr *IfCond,
1614 SourceLocation Loc, llvm::Function *OutlinedFn,
1764 llvm::FunctionCallee OutlinedFn,
1965 llvm::Function *OutlinedFn,
2376 llvm::Function *&OutlinedFn,
2393 llvm::Function *OutlinedFn, llvm::Value *OutlinedFnID, const Expr *IfCond,
2424 SourceLocation Loc, llvm::Function *OutlinedFn,
DCGOpenMPRuntimeGPU.cpp1064 llvm::Function *&OutlinedFn, in emitNonSPMDKernel() argument
1110 emitTargetOutlinedFunctionHelper(D, ParentName, OutlinedFn, OutlinedFnID, in emitNonSPMDKernel()
1116 WST.WorkerFn->setName(Twine(OutlinedFn->getName(), "_worker")); in emitNonSPMDKernel()
1198 llvm::Function *&OutlinedFn, in emitSPMDKernel() argument
1242 emitTargetOutlinedFunctionHelper(D, ParentName, OutlinedFn, OutlinedFnID, in emitSPMDKernel()
1472 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunction() argument
1481 emitSPMDKernel(D, ParentName, OutlinedFn, OutlinedFnID, IsOffloadEntry, in emitTargetOutlinedFunction()
1484 emitNonSPMDKernel(D, ParentName, OutlinedFn, OutlinedFnID, IsOffloadEntry, in emitTargetOutlinedFunction()
1487 setPropertyExecutionMode(CGM, OutlinedFn->getName(), Mode); in emitTargetOutlinedFunction()
2070 llvm::Function *OutlinedFn, in emitTeamsCall() argument
[all …]
DCGOpenMPRuntime.cpp2056 llvm::Function *OutlinedFn, in emitParallelCall() argument
2063 auto &&ThenGen = [&M, OutlinedFn, CapturedVars, RTLoc, in emitParallelCall()
2070 CGF.Builder.CreateBitCast(OutlinedFn, RT.getKmpc_MicroPointerTy())}; in emitParallelCall()
2079 auto &&ElseGen = [&M, OutlinedFn, CapturedVars, RTLoc, Loc, in emitParallelCall()
2101 RT.emitOutlinedFunctionCall(CGF, Loc, OutlinedFn, OutlinedFnArgs); in emitParallelCall()
6351 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunction() argument
6366 emitTargetOutlinedFunctionHelper(D, ParentName, OutlinedFn, OutlinedFnID, in emitTargetOutlinedFunction()
6423 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunctionHelper() argument
6452 OutlinedFn = CGF.GenerateOpenMPCapturedStmtFunction(CS, D.getBeginLoc()); in emitTargetOutlinedFunctionHelper()
6471 OutlinedFnID = llvm::ConstantExpr::getBitCast(OutlinedFn, CGM.Int8PtrTy); in emitTargetOutlinedFunctionHelper()
[all …]
DCGStmtOpenMP.cpp1529 llvm::Function *OutlinedFn = in emitCommonOMPParallelDirective() local
1562 CGF.CGM.getOpenMPRuntime().emitParallelCall(CGF, S.getBeginLoc(), OutlinedFn, in emitCommonOMPParallelDirective()
4127 llvm::Function *OutlinedFn = CGM.getOpenMPRuntime().emitTaskOutlinedFunction( in EmitOMPTaskBasedDirective() local
4133 TaskGen(*this, OutlinedFn, Data); in EmitOMPTaskBasedDirective()
4287 llvm::Function *OutlinedFn = CGM.getOpenMPRuntime().emitTaskOutlinedFunction( in EmitOMPTargetTaskBasedDirective() local
4295 CGM.getOpenMPRuntime().emitTaskCall(*this, S.getBeginLoc(), S, OutlinedFn, in EmitOMPTargetTaskBasedDirective()
4320 IfCond](CodeGenFunction &CGF, llvm::Function *OutlinedFn, in EmitOMPTaskDirective()
4322 CGF.CGM.getOpenMPRuntime().emitTaskCall(CGF, S.getBeginLoc(), S, OutlinedFn, in EmitOMPTaskDirective()
4880 llvm::Function *OutlinedFn = in EmitOMPOrderedDirective() local
4883 OutlinedFn, CapturedVars); in EmitOMPOrderedDirective()
[all …]
/external/llvm-project/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp155 Function *OutlinedFn = Extractor.extractCodeRegion(CEAC); in finalize() local
158 LLVM_DEBUG(dbgs() << " Outlined function: " << *OutlinedFn << "\n"); in finalize()
159 assert(OutlinedFn->getReturnType()->isVoidTy() && in finalize()
164 OutlinedFn->removeFromParent(); in finalize()
165 M.getFunctionList().insertAfter(OuterFn->getIterator(), OutlinedFn); in finalize()
170 BasicBlock &ArtificialEntry = OutlinedFn->getEntryBlock(); in finalize()
176 assert(&OutlinedFn->getEntryBlock() == OI.EntryBB); in finalize()
177 assert(OutlinedFn && OutlinedFn->getNumUses() == 1); in finalize()
181 OI.PostOutlineCB(*OutlinedFn); in finalize()
575 OI.PostOutlineCB = [=](Function &OutlinedFn) { in createParallel() argument
[all …]
/external/clang/lib/CodeGen/
DCGOpenMPRuntimeNVPTX.h132 llvm::Function *&OutlinedFn,
172 SourceLocation Loc, llvm::Value *OutlinedFn,
DCGOpenMPRuntimeNVPTX.cpp309 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunction() argument
336 emitTargetOutlinedFunctionHelper(D, ParentName, OutlinedFn, OutlinedFnID, in emitTargetOutlinedFunction()
344 WST.WorkerFn->setName(OutlinedFn->getName() + "_worker"); in emitTargetOutlinedFunction()
382 llvm::Value *OutlinedFn, in emitTeamsCall() argument
395 CGF.EmitCallOrInvoke(OutlinedFn, OutlinedFnArgs); in emitTeamsCall()
DCGOpenMPRuntime.h128 llvm::Function *&OutlinedFn,
554 llvm::Value *OutlinedFn,
935 llvm::Function *&OutlinedFn,
953 llvm::Value *OutlinedFn,
989 SourceLocation Loc, llvm::Value *OutlinedFn,
DCGStmtOpenMP.cpp1195 auto OutlinedFn = CGF.CGM.getOpenMPRuntime(). in emitCommonOMPParallelDirective() local
1222 CGF.CGM.getOpenMPRuntime().emitParallelCall(CGF, S.getLocStart(), OutlinedFn, in emitCommonOMPParallelDirective()
2550 auto *OutlinedFn = CGM.getOpenMPRuntime().emitTaskOutlinedFunction( in EmitOMPTaskBasedDirective() local
2554 TaskGen(*this, OutlinedFn, Data); in EmitOMPTaskBasedDirective()
2578 IfCond](CodeGenFunction &CGF, llvm::Value *OutlinedFn, in EmitOMPTaskDirective()
2580 CGF.CGM.getOpenMPRuntime().emitTaskCall(CGF, S.getLocStart(), S, OutlinedFn, in EmitOMPTaskDirective()
2769 auto *OutlinedFn = emitOutlinedOrderedFunction(CGM, CS); in EmitOMPOrderedDirective() local
2770 CGF.EmitNounwindRuntimeCall(OutlinedFn, CapturedVars); in EmitOMPOrderedDirective()
3247 llvm::Function *OutlinedFn = nullptr; in EmitOMPTargetDirectiveOutlinedFunction() local
3260 S, ParentName, OutlinedFn, OutlinedFnID, IsOffloadEntry, CodeGen); in EmitOMPTargetDirectiveOutlinedFunction()
[all …]
DCGOpenMPRuntime.cpp1932 llvm::Value *OutlinedFn, in emitParallelCall() argument
1938 auto &&ThenGen = [OutlinedFn, CapturedVars, RTLoc](CodeGenFunction &CGF, in emitParallelCall()
1945 CGF.Builder.CreateBitCast(OutlinedFn, RT.getKmpc_MicroPointerTy())}; in emitParallelCall()
1953 auto &&ElseGen = [OutlinedFn, CapturedVars, RTLoc, Loc](CodeGenFunction &CGF, in emitParallelCall()
1973 CGF.EmitCallOrInvoke(OutlinedFn, OutlinedFnArgs); in emitParallelCall()
4779 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunction() argument
4783 emitTargetOutlinedFunctionHelper(D, ParentName, OutlinedFn, OutlinedFnID, in emitTargetOutlinedFunction()
4789 llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, in emitTargetOutlinedFunctionHelper() argument
4818 OutlinedFn = CGF.GenerateOpenMPCapturedStmtFunction(CS); in emitTargetOutlinedFunctionHelper()
4837 OutlinedFnID = llvm::ConstantExpr::getBitCast(OutlinedFn, CGM.Int8PtrTy); in emitTargetOutlinedFunctionHelper()
[all …]
/external/llvm-project/llvm/lib/Transforms/IPO/
DOpenMPOpt.cpp702 Function *OutlinedFn = MergableCIs.front()->getCaller(); in mergeParallelRegions() local
713 Args.push_back(OutlinedFn->getArg(0)); in mergeParallelRegions()
714 Args.push_back(OutlinedFn->getArg(1)); in mergeParallelRegions()
754 assert(OutlinedFn != OriginalFn && "Outlining failed"); in mergeParallelRegions()
755 CGUpdater.registerOutlinedFunction(*OutlinedFn); in mergeParallelRegions()