Lines Matching refs:PGOFuncName
163 StringRef getFuncNameWithoutPrefix(StringRef PGOFuncName, StringRef FileName) { in getFuncNameWithoutPrefix() argument
165 return PGOFuncName; in getFuncNameWithoutPrefix()
167 if (PGOFuncName.startswith(FileName)) in getFuncNameWithoutPrefix()
168 PGOFuncName = PGOFuncName.drop_front(FileName.size() + 1); in getFuncNameWithoutPrefix()
169 return PGOFuncName; in getFuncNameWithoutPrefix()
194 StringRef PGOFuncName) { in createPGOFuncNameVar() argument
208 ConstantDataArray::getString(M.getContext(), PGOFuncName, false); in createPGOFuncNameVar()
211 getPGOFuncNameVarName(PGOFuncName, Linkage)); in createPGOFuncNameVar()
220 GlobalVariable *createPGOFuncNameVar(Function &F, StringRef PGOFuncName) { in createPGOFuncNameVar() argument
221 return createPGOFuncNameVar(*F.getParent(), F.getLinkage(), PGOFuncName); in createPGOFuncNameVar()
230 const std::string &PGOFuncName = getPGOFuncName(F, InLTO); in create() local
231 addFuncName(PGOFuncName); in create()
232 MD5FuncMap.emplace_back(Function::getGUID(PGOFuncName), &F); in create()
771 void createPGOFuncNameMetadata(Function &F, StringRef PGOFuncName) { in createPGOFuncNameMetadata() argument
773 if (PGOFuncName == F.getName()) in createPGOFuncNameMetadata()
779 MDNode *N = MDNode::get(C, MDString::get(C, PGOFuncName)); in createPGOFuncNameMetadata()