Lines Matching defs:SubFn
21 void ParallelLoopGeneratorGOMP::createCallSpawnThreads(Value *SubFn,
45 Value *Args[] = {SubFn, SubFnParam, Builder.getInt32(PollyNumThreads),
52 void ParallelLoopGeneratorGOMP::deployParallelExecution(Function *SubFn,
57 createCallSpawnThreads(SubFn, SubFnParam, LB, UB, Stride);
58 CallInst *Call = Builder.CreateCall(SubFn, SubFnParam);
66 Function *SubFn = Function::Create(FT, Function::InternalLinkage,
69 SubFn->arg_begin()->setName("polly.par.userContext");
70 return SubFn;
109 Function *SubFn = createSubFnDefinition();
110 LLVMContext &Context = SubFn->getContext();
113 BasicBlock *HeaderBB = BasicBlock::Create(Context, "polly.par.setup", SubFn);
114 SubFnDT = std::make_unique<DominatorTree>(*SubFn);
117 BasicBlock *ExitBB = BasicBlock::Create(Context, "polly.par.exit", SubFn);
119 BasicBlock::Create(Context, "polly.par.checkNext", SubFn);
121 BasicBlock::Create(Context, "polly.par.loadIVBounds", SubFn);
131 Value *UserContext = &*SubFn->arg_begin();
174 return std::make_tuple(IV, SubFn);