| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | RetainSummaryManager.cpp | 191 static bool isRetain(const FunctionDecl *FD, StringRef FName) { in isRetain() argument 192 return FName.starts_with_insensitive("retain") || in isRetain() 193 FName.ends_with_insensitive("retain"); in isRetain() 196 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease() argument 197 return FName.starts_with_insensitive("release") || in isRelease() 198 FName.ends_with_insensitive("release"); in isRelease() 201 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease() argument 202 return FName.starts_with_insensitive("autorelease") || in isAutorelease() 203 FName.ends_with_insensitive("autorelease"); in isAutorelease() 206 static bool isMakeCollectable(StringRef FName) { in isMakeCollectable() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MacOSXAPIChecker.cpp | 41 StringRef FName) const; 45 StringRef FName) const; 65 StringRef FName) const { in CheckDispatchOnce() 85 StringRef TrimmedFName = FName.ltrim('_'); in CheckDispatchOnce() 86 if (TrimmedFName != FName) in CheckDispatchOnce() 87 FName = TrimmedFName; in CheckDispatchOnce() 93 os << "Call to '" << FName << "' uses"; in CheckDispatchOnce()
|
| H A D | UnixAPIChecker.cpp | 166 StringRef FName = C.getCalleeName(FD); in checkPreCall() local 167 if (FName.empty()) in checkPreCall() 170 if (FName == "open") in checkPreCall() 173 else if (FName == "openat") in checkPreCall() 176 else if (FName == "pthread_once") in checkPreCall() 179 else if (is_contained({"getdelim", "getline"}, FName)) in checkPreCall() 605 StringRef FName = C.getCalleeName(FD); in checkPreStmt() local 606 if (FName.empty()) in checkPreStmt() 609 if (FName == "calloc") in checkPreStmt() 612 else if (FName == "malloc") in checkPreStmt() [all …]
|
| H A D | MallocChecker.cpp | 3446 StringRef FName = II->getName(); in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() local 3450 if (FName.ends_with("NoCopy")) { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3469 if (FName == "funopen") in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3476 if (FName == "setbuf" || FName =="setbuffer" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3477 FName == "setlinebuf" || FName == "setvbuf") { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3492 if (FName == "CGBitmapContextCreate" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3493 FName == "CGBitmapContextCreateWithData" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3494 FName == "CVPixelBufferCreateWithBytes" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3495 FName == "CVPixelBufferCreateWithPlanarBytes" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() 3496 FName == "OSAtomicEnqueue") { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 106 StringRef FName = II->getName(); in isCLibraryFunction() local 107 if (FName == Name) in isCLibraryFunction() 110 if (FName.starts_with("__inline") && FName.contains(Name)) in isCLibraryFunction() 123 StringRef FName = II->getName(); in isHardenedVariantOf() local 124 return (FName.consume_front(Parts) && ...) && FName.empty(); in isHardenedVariantOf()
|
| H A D | CallEvent.cpp | 657 StringRef FName = II->getName(); in argumentsMayEscape() local 661 if (FName.ends_with("NoCopy")) in argumentsMayEscape() 666 if (FName.starts_with("NS") && FName.contains("Insert")) in argumentsMayEscape() 671 if (FName.starts_with("CF") || FName.starts_with("CG")) { in argumentsMayEscape() 672 return StrInStrNoCase(FName, "InsertValue") != StringRef::npos || in argumentsMayEscape() 673 StrInStrNoCase(FName, "AddValue") != StringRef::npos || in argumentsMayEscape() 674 StrInStrNoCase(FName, "SetValue") != StringRef::npos || in argumentsMayEscape() 675 StrInStrNoCase(FName, "WithData") != StringRef::npos || in argumentsMayEscape() 676 StrInStrNoCase(FName, "AppendValue") != StringRef::npos || in argumentsMayEscape() 677 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos; in argumentsMayEscape()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsMachineFunction.cpp | 94 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() 96 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg() 100 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg() 123 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() 125 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg() 128 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg() 93 const GlobalValue *FName = &MF.getFunction(); initGlobalBaseReg() local 122 const GlobalValue *FName = &MF.getFunction(); initGlobalBaseReg() local
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | SampleProfReader.cpp | 157 static bool ParseHead(const StringRef &Input, StringRef &FName, in ParseHead() argument 163 FName = Input.substr(0, n1); in ParseHead() 358 StringRef FName; in readImpl() local 359 if (!ParseHead(*LineIt, FName, NumSamples, NumHeadSamples)) { in readImpl() 365 SampleContext FContext(FName, CSNameTable); in readImpl() 375 StringRef FName; in readImpl() local 383 Discriminator, FName, TargetCountMap, FunctionHash, in readImpl() 406 LineLocation(LineOffset, Discriminator))[FunctionId(FName)]; in readImpl() 407 FSamples.setFunction(FunctionId(FName)); in readImpl() 482 StringRef FName; in hasFormat() local [all …]
|
| H A D | SampleProfWriter.cpp | 633 std::error_code SampleProfileWriterBinary::writeNameIdx(FunctionId FName) { in writeNameIdx() argument 635 const auto &Ret = NTable.find(FName); in writeNameIdx() 642 void SampleProfileWriterBinary::addName(FunctionId FName) { in addName() argument 644 NTable.insert(std::make_pair(FName, 0)); in addName()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | SampleContextTracker.h | 38 FunctionId FName = FunctionId(), 41 : ParentContext(Parent), FuncName(FName), FuncSamples(FSamples), in ParentContext() 200 ContextTrieNode *getTopLevelContextNode(FunctionId FName); 201 ContextTrieNode &addTopLevelContextNode(FunctionId FName);
|
| H A D | ProfiledCallGraph.h | 54 ProfiledCallGraphNode(FunctionId FName = FunctionId()) : Name(FName) in Name()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | SampleContextTracker.cpp | 236 FunctionId FName = getRepInFormat(CalleeName); in getCalleeContextSamplesFor() local 240 ContextTrieNode *CalleeContext = getCalleeContextFor(DIL, FName); in getCalleeContextSamplesFor() 542 SampleContextTracker::getTopLevelContextNode(FunctionId FName) { in getTopLevelContextNode() argument 543 assert(!FName.empty() && "Top level node query must provide valid name"); in getTopLevelContextNode() 544 return RootContext.getChildContext(LineLocation(0, 0), FName); in getTopLevelContextNode() 548 SampleContextTracker::addTopLevelContextNode(FunctionId FName) { in addTopLevelContextNode() argument 549 assert(!getTopLevelContextNode(FName) && "Node to add must not exist"); in addTopLevelContextNode() 550 return *RootContext.getOrCreateChildContext(LineLocation(0, 0), FName); in addTopLevelContextNode()
|
| H A D | SampleProfileProbe.cpp | 347 StringRef FName = F.getName(); in instrumentOneFunc() local 349 FName = SP->getLinkageName(); in instrumentOneFunc() 350 if (FName.empty()) in instrumentOneFunc() 351 FName = SP->getName(); in instrumentOneFunc() 353 uint64_t Guid = Function::getGUIDAssumingExternalLinkage(FName); in instrumentOneFunc() 444 auto *MD = MDB.createPseudoProbeDesc(Guid, Hash, FName); in instrumentOneFunc()
|
| H A D | SampleProfileMatcher.cpp | 736 auto GetBaseName = [&](StringRef FName) { in functionMatchesProfileHelper() argument 737 auto FunctionName = FName.str(); in functionMatchesProfileHelper()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cpp | 879 const char *FName = FLoc.get()->info.function; in handleCFIBadIcall() local 880 if (!FName) in handleCFIBadIcall() 881 FName = "(unknown)"; in handleCFIBadIcall() 882 Diag(FLoc, DL_Note, ET, "%0 defined here") << FName; in handleCFIBadIcall() 955 const char *FName = FLoc.get()->info.function; in handleFunctionTypeMismatch() local 956 if (!FName) in handleFunctionTypeMismatch() 957 FName = "(unknown)"; in handleFunctionTypeMismatch() 961 << FName << Data->Type; in handleFunctionTypeMismatch() 962 Diag(FLoc, DL_Note, ET, "%0 defined here") << FName; in handleFunctionTypeMismatch()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 374 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT); 469 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *FT) { in AMDGPUUnmangledLibFunc() argument 470 Name = std::string(FName); in AMDGPUUnmangledLibFunc()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | CommandLine.cpp | 1153 StringRef FName, SmallVectorImpl<const char *> &NewArgv) { in expandResponseFile() argument 1154 assert(sys::path::is_absolute(FName)); in expandResponseFile() 1156 FS->getBufferForFile(FName); in expandResponseFile() 1159 return llvm::createStringError(EC, Twine("cannot not open file '") + FName + in expandResponseFile() 1189 StringRef BasePath = llvm::sys::path::parent_path(FName); in expandResponseFile() 1271 const char *FName = Arg + 1; in expandResponseFiles() local 1275 if (llvm::sys::path::is_relative(FName)) { in expandResponseFiles() 1281 CWD.getError(), Twine("cannot get absolute path for: ") + FName); in expandResponseFiles() 1286 llvm::sys::path::append(CurrDir, FName); in expandResponseFiles() 1287 FName = CurrDir.c_str(); in expandResponseFiles() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | SampleProfWriter.h | 216 std::error_code writeNameIdx(FunctionId FName); 223 void addName(FunctionId FName);
|
| H A D | SampleProf.h | 1419 FrameNode(FunctionId FName = FunctionId(), 1422 : FuncName(FName), FuncSamples(FSamples), CallSiteLoc(CallLoc){}; 1588 inline std::string getUniqueInternalLinkagePostfix(const StringRef &FName) { 1590 Md5.update(FName);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 100 StringRef FName);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 352 StringRef FName) { in createPseudoProbeDesc() argument 357 Ops[2] = createString(FName); in createPseudoProbeDesc()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
| H A D | RetainSummaryManager.h | 607 StringRef FName, QualType RetTy); 612 StringRef FName,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | GCOVProfiling.cpp | 526 StringRef FName = sys::path::filename(Filename); in mangleName() local 529 return std::string(FName); in mangleName() 530 sys::path::append(CurPath, FName); in mangleName()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | CommonArgs.cpp | 1205 StringRef FName = A->getValue(); in addLTOOptions() local 1206 if (!llvm::sys::fs::exists(FName)) in addLTOOptions() 1207 D.Diag(diag::err_drv_no_such_file) << FName; in addLTOOptions() 1210 "sample-profile=" + FName)); in addLTOOptions()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 1227 StringRef FName = Name.substr(0, PrefixPos - 1); in adjustInstrProfile() local 1247 NewName.str() + getUniqueInternalLinkagePostfix(FName); in adjustInstrProfile()
|