Lines Matching refs:SF
160 StableFunction SF(FI.FunctionHash, get_stable_name(Func.getName()).str(), in analyze() local
164 LocalFunctionMap->insert(SF); in analyze()
171 StableFunctionMap::StableFunctionEntry *SF; member
174 FuncMergeInfo(StableFunctionMap::StableFunctionEntry *SF, Function *F, in FuncMergeInfo()
176 : SF(SF), F(F), IndexInstruction(std::move(IndexInstruction)) {} in FuncMergeInfo()
325 checkConstLocationCompatible(const StableFunctionMap::StableFunctionEntry &SF, in checkConstLocationCompatible() argument
332 assert(SF.IndexOperandHashMap->count(Loc)); in checkConstLocationCompatible()
333 auto CurrHash = SF.IndexOperandHashMap->at(Loc); in checkConstLocationCompatible()
364 auto &SF = SFS[J]; in computeParamInfo() local
365 auto SHash = SF->IndexOperandHashMap->at(IndexPair); in computeParamInfo()
418 auto hasValidSharedConst = [&](StableFunctionMap::StableFunctionEntry *SF, in merge()
420 for (auto &[Index, Hash] : *SF->IndexOperandHashMap) { in merge()
432 for (auto &SF : SFS) { in merge() local
433 assert(SF->InstCount == FI.IndexInstruction->size()); in merge()
434 assert(hasValidSharedConst(SF.get(), FI)); in merge()
437 if (!checkConstHashCompatible(*SF->IndexOperandHashMap, in merge()
445 if (!checkConstLocationCompatible(*SF, *FI.IndexInstruction, in merge()
451 FuncMergeInfos.emplace_back(SF.get(), F, FI.IndexInstruction.get()); in merge()
483 dbgs() << "[GlobalMergeFunc] Merged function (hash:" << FMI.SF->Hash in merge()