Lines Matching defs:oldFunction
826 Function *oldFunction = Blocks.front()->getParent();
878 RetTy, ParamTy, AllowVarArgs && oldFunction->isVarArg());
883 oldFunction->getAddressSpace(), Name, M);
886 if (oldFunction->hasPersonalityFn())
887 newFunction->setPersonalityFn(oldFunction->getPersonalityFn());
896 for (const auto &Attr : oldFunction->getAttributes().getFnAttrs()) {
1056 static void applyFirstDebugLoc(Function *oldFunction,
1059 if (oldFunction->getSubprogram()) {
1408 Function *oldFunction = header->getParent();
1489 inputs, outputs, EntryFreq, oldFunction->getName() + "." + SuffixToUse,
1491 newFunction->IsNewDbgInfoFormat = oldFunction->IsNewDbgInfoFormat;
1498 inputs, outputs, StructValues, newFunction, StructTy, oldFunction, ReplIP,
1501 insertReplacerCall(oldFunction, header, TheCall->getParent(), outputs,
1504 fixupDebugInfoPostExtraction(*oldFunction, *newFunction, *TheCall);
1510 LLVM_DEBUG(if (verifyFunction(*oldFunction))
1511 report_fatal_error("verification of oldFunction failed!"));
1512 LLVM_DEBUG(if (AC && verifyAssumptionCache(*oldFunction, *newFunction, AC))
1570 Function *oldFunction = header->getParent();
1571 LLVMContext &Context = oldFunction->getContext();
1577 newFuncRoot->IsNewDbgInfoFormat = oldFunction->IsNewDbgInfoFormat;
1694 applyFirstDebugLoc(oldFunction, Blocks.getArrayRef(), BranchI);
1768 StructType *StructArgTy, Function *oldFunction, BasicBlock *ReplIP,
1771 LLVMContext &Context = oldFunction->getContext();
1772 Module *M = oldFunction->getParent();
1777 BasicBlock::Create(Context, "codeRepl", oldFunction, ReplIP);
1778 codeReplacer->IsNewDbgInfoFormat = oldFunction->IsNewDbgInfoFormat;
1780 AllocationBlock ? AllocationBlock : &oldFunction->getEntryBlock();
1781 AllocaBlock->IsNewDbgInfoFormat = oldFunction->IsNewDbgInfoFormat;
1961 insertLifetimeMarkersSurroundingCall(oldFunction->getParent(), LifetimesStart,
1968 Function *oldFunction, BasicBlock *header, BasicBlock *codeReplacer,
1980 if (I->isTerminator() && I->getFunction() == oldFunction &&
2011 if (inst->getParent()->getParent() == oldFunction)