Lines Matching defs:SF
503 Function *copyFunctionProto(const Function *SF);
678 Function *IRLinker::copyFunctionProto(const Function *SF) {
680 // bring SF over.
681 auto *F = Function::Create(TypeMap.get(SF->getFunctionType()),
683 SF->getAddressSpace(), SF->getName(), &DstM);
684 F->copyAttributesFrom(SF);
686 F->IsNewDbgInfoFormat = SF->IsNewDbgInfoFormat;
721 } else if (auto *SF = dyn_cast<Function>(SGV)) {
722 NewGV = copyFunctionProto(SF);