Lines Matching refs:OutlinedFn
155 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
577 OutlinedFn.addParamAttr(0, Attribute::NoAlias); in createParallel()
578 OutlinedFn.addParamAttr(1, Attribute::NoAlias); in createParallel()
579 OutlinedFn.addFnAttr(Attribute::NoUnwind); in createParallel()
580 OutlinedFn.addFnAttr(Attribute::NoRecurse); in createParallel()
582 assert(OutlinedFn.arg_size() >= 2 && in createParallel()
585 OutlinedFn.arg_size() - /* tid & bounded tid */ 2; in createParallel()
587 CallInst *CI = cast<CallInst>(OutlinedFn.user_back()); in createParallel()
594 Builder.CreateBitCast(&OutlinedFn, ParallelTaskPtr)}; in createParallel()
609 Function::arg_iterator OutlinedAI = OutlinedFn.arg_begin(); in createParallel()