Lines Matching defs:NewF
2214 Function *NewF =
2216 NewF->IsNewDbgInfoFormat = OldF->IsNewDbgInfoFormat;
2217 NewF->copyAttributesFrom(OldF);
2218 NewF->copyMetadata(OldF, 0);
2219 NewF->takeName(OldF);
2220 NewF->updateAfterNameChange();
2221 NewF->setDLLStorageClass(OldF->getDLLStorageClass());
2222 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), NewF);
2227 BB->insertInto(NewF);
2237 for (auto [I, OldArg, NewArg] : enumerate(OldF->args(), NewF->args())) {
2250 NewF->getContext(),
2255 if (OldF->getReturnType() != NewF->getReturnType() && !IsIntrinsic)
2257 NewF->getContext(),
2258 AttributeFuncs::typeIncompatible(NewF->getReturnType(), RetAttrs));
2259 NewF->setAttributes(AttributeList::get(
2260 NewF->getContext(), OldAttrs.getFnAttrs(), RetAttrs, ArgAttrs));
2261 return NewF;
2348 Function *NewF = F;
2350 NewF = moveFunctionAdaptingType(
2355 LowerInFuncs.remapFunction(*NewF);
2356 if (NewF->isIntrinsic())
2357 Intrinsics.push_back(NewF);
2359 NeedsPostProcess.push_back(NewF);
2361 F->replaceAllUsesWith(NewF);
2377 std::optional<Function *> NewF = Intrinsic::remangleIntrinsicFunction(F);
2378 if (NewF)
2379 F->replaceAllUsesWith(*NewF);