• Home
  • Raw
  • Download

Lines Matching refs:NewF

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