reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
834 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { 834 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { 835 if (F->isDeclaration() && !F->use_empty() && 835 if (F->isDeclaration() && !F->use_empty() && 836 &*F != resolverFunc.getCallee() && 837 !F->isIntrinsic() /* ignore intrinsics */) { 838 Function *TestFn = Test->getFunction(F->getName()); 844 ConstantDataArray::getString(F->getContext(), F->getName()); 844 ConstantDataArray::getString(F->getContext(), F->getName()); 847 GlobalValue::InternalLinkage, InitArray, F->getName() + "_name"); 854 2, Constant::getNullValue(Type::getInt32Ty(F->getContext()))); 862 if (!F->use_empty()) { 864 Constant *NullPtr = ConstantPointerNull::get(F->getType()); 866 *F->getParent(), F->getType(), false, 866 *F->getParent(), F->getType(), false, 867 GlobalValue::InternalLinkage, NullPtr, F->getName() + ".fpcache"); 870 FunctionType *FuncTy = F->getFunctionType(); 873 F->getName() + "_wrapper", F->getParent()); 873 F->getName() + "_wrapper", F->getParent()); 875 BasicBlock::Create(F->getContext(), "entry", FuncWrapper); 877 BasicBlock::Create(F->getContext(), "usecache", FuncWrapper); 879 BasicBlock::Create(F->getContext(), "lookupfp", FuncWrapper); 883 new LoadInst(F->getType(), Cache, "fpcache", EntryBB); 896 Resolver, PointerType::getUnqual(F->getFunctionType()), 914 if (F->getReturnType()->isVoidTy()) { 916 ReturnInst::Create(F->getContext(), DoCallBB); 920 ReturnInst::Create(F->getContext(), Call, DoCallBB); 924 F->replaceAllUsesWith(FuncWrapper);