Lines Matching defs:NewF
538 Function *NewF = Function::Create(NewFT, NewFLink, NewFName,
540 NewF->copyAttributesFrom(F);
541 NewF->removeAttributes(
546 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF);
548 NewF->removeAttributes(
559 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n)
568 return NewF;
687 Function *NewF =
689 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
690 NewF->takeName(GA);
692 FnsToInstrument.push_back(NewF);
717 Function *NewF = Function::Create(NewFT, F.getLinkage(), "", &M);
718 NewF->copyAttributesFrom(&F);
719 NewF->removeAttributes(
721 AttributeSet::get(NewF->getContext(), AttributeSet::ReturnIndex,
724 NewFArg = NewF->arg_begin(),
729 NewF->getBasicBlockList().splice(NewF->begin(), F.getBasicBlockList());
737 BlockAddress::get(NewF, BA->getBasicBlock()));
742 ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT)));
743 NewF->takeName(&F);
745 *i = NewF;
746 addGlobalNamePrefix(NewF);
757 Function *NewF = buildWrapperFunction(
761 NewF->removeAttributes(AttributeSet::FunctionIndex, ReadOnlyNoneAttrs);
764 ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT));
768 *i = NewF;