Lines Matching defs:NewF
898 // create aliases for G and NewF, or because a thunk for F is profitable.
899 // F here has the same signature as NewF below, so that's what we check.
905 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
907 NewF->copyAttributesFrom(F);
908 NewF->takeName(F);
909 NewF->IsNewDbgInfoFormat = F->IsNewDbgInfoFormat;
911 copyMetadataIfPresent(F, NewF, "type");
912 copyMetadataIfPresent(F, NewF, "kcfi_type");
914 F->replaceAllUsesWith(NewF);
916 // We collect alignment before writeThunkOrAlias that overwrites NewF and
918 const MaybeAlign NewFAlign = NewF->getAlign();
922 writeThunkOrAlias(F, NewF);