Home
last modified time | relevance | path

Searched refs:FName (Results 1 – 20 of 20) sorted by relevance

/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDPthreadLockChecker.cpp85 StringRef FName = C.getCalleeName(CE); in REGISTER_LIST_WITH_PROGRAMSTATE() local
86 if (FName.empty()) in REGISTER_LIST_WITH_PROGRAMSTATE()
92 if (FName == "pthread_mutex_lock" || in REGISTER_LIST_WITH_PROGRAMSTATE()
93 FName == "pthread_rwlock_rdlock" || in REGISTER_LIST_WITH_PROGRAMSTATE()
94 FName == "pthread_rwlock_wrlock") in REGISTER_LIST_WITH_PROGRAMSTATE()
97 else if (FName == "lck_mtx_lock" || in REGISTER_LIST_WITH_PROGRAMSTATE()
98 FName == "lck_rw_lock_exclusive" || in REGISTER_LIST_WITH_PROGRAMSTATE()
99 FName == "lck_rw_lock_shared") in REGISTER_LIST_WITH_PROGRAMSTATE()
102 else if (FName == "pthread_mutex_trylock" || in REGISTER_LIST_WITH_PROGRAMSTATE()
103 FName == "pthread_rwlock_tryrdlock" || in REGISTER_LIST_WITH_PROGRAMSTATE()
[all …]
HDMacOSXAPIChecker.cpp40 StringRef FName) const;
44 StringRef FName) const;
53 StringRef FName) const { in CheckDispatchOnce()
78 StringRef TrimmedFName = FName.ltrim("_"); in CheckDispatchOnce()
79 if (TrimmedFName != FName) in CheckDispatchOnce()
80 FName = TrimmedFName; in CheckDispatchOnce()
85 os << "Call to '" << FName << "' uses"; in CheckDispatchOnce()
HDRetainCountChecker.cpp883 static bool isRetain(const FunctionDecl *FD, StringRef FName) { in isRetain() argument
884 return FName.endswith("Retain"); in isRetain()
887 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease() argument
888 return FName.endswith("Release"); in isRelease()
891 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease() argument
892 return FName.endswith("Autorelease"); in isAutorelease()
895 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) { in isMakeCollectable() argument
898 return FName.find("MakeCollectable") != StringRef::npos; in isMakeCollectable()
1053 StringRef FName = II->getName(); in getFunctionSummary() local
1057 FName = FName.substr(FName.find_first_not_of('_')); in getFunctionSummary()
[all …]
HDUnixAPIChecker.cpp356 StringRef FName = C.getCalleeName(FD); in checkPreStmt() local
357 if (FName.empty()) in checkPreStmt()
361 llvm::StringSwitch<SubChecker>(FName) in checkPreStmt()
HDMallocChecker.cpp2447 StringRef FName = II->getName(); in mayFreeAnyEscapedMemoryOrIsModeledExplicitly() local
2451 if (FName.endswith("NoCopy")) { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2470 if (FName == "funopen") in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2477 if (FName == "setbuf" || FName =="setbuffer" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2478 FName == "setlinebuf" || FName == "setvbuf") { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2493 if (FName == "CGBitmapContextCreate" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2494 FName == "CGBitmapContextCreateWithData" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2495 FName == "CVPixelBufferCreateWithBytes" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2496 FName == "CVPixelBufferCreateWithPlanarBytes" || in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
2497 FName == "OSAtomicEnqueue") { in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDCheckerContext.cpp77 StringRef FName = II->getName(); in isCLibraryFunction() local
78 if (FName.equals(Name)) in isCLibraryFunction()
81 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction()
84 if (FName.startswith("__") && FName.endswith("_chk") && in isCLibraryFunction()
85 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
HDCallEvent.cpp357 StringRef FName = II->getName(); in argumentsMayEscape() local
361 if (FName.endswith("NoCopy")) in argumentsMayEscape()
366 if (FName.startswith("NS") && (FName.find("Insert") != StringRef::npos)) in argumentsMayEscape()
371 if (FName.startswith("CF") || FName.startswith("CG")) { in argumentsMayEscape()
372 return StrInStrNoCase(FName, "InsertValue") != StringRef::npos || in argumentsMayEscape()
373 StrInStrNoCase(FName, "AddValue") != StringRef::npos || in argumentsMayEscape()
374 StrInStrNoCase(FName, "SetValue") != StringRef::npos || in argumentsMayEscape()
375 StrInStrNoCase(FName, "WithData") != StringRef::npos || in argumentsMayEscape()
376 StrInStrNoCase(FName, "AppendValue") != StringRef::npos || in argumentsMayEscape()
377 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos; in argumentsMayEscape()
/NextBSD/contrib/llvm/lib/ProfileData/
HDSampleProfReader.cpp134 void SampleProfileReader::dumpFunctionProfile(StringRef FName, in dumpFunctionProfile() argument
136 OS << "Function: " << FName << ": "; in dumpFunctionProfile()
137 Profiles[FName].print(OS); in dumpFunctionProfile()
181 StringRef FName = Matches[1]; in read() local
185 Profiles[FName] = FunctionSamples(); in read()
186 FunctionSamples &FProfile = Profiles[FName]; in read()
269 auto FName(readString()); in read() local
270 if (std::error_code EC = FName.getError()) in read()
273 Profiles[*FName] = FunctionSamples(); in read()
274 FunctionSamples &FProfile = Profiles[*FName]; in read()
HDSampleProfWriter.cpp33 bool SampleProfileWriterText::write(StringRef FName, const FunctionSamples &S) { in write() argument
37 OS << FName << ":" << S.getTotalSamples() << ":" << S.getHeadSamples() in write()
72 bool SampleProfileWriterBinary::write(StringRef FName, in write() argument
77 OS << FName; in write()
/NextBSD/contrib/llvm/include/llvm/ProfileData/
HDSampleProfWriter.h41 virtual bool write(StringRef FName, const FunctionSamples &S) = 0;
65 StringRef FName = I.first(); in write() local
67 if (!write(FName, Profile)) in write()
89 bool write(StringRef FName, const FunctionSamples &S) override;
HDSampleProf.h184 std::string FName, unsigned Num) {
186 BodySamples[LineLocation(LineOffset, Discriminator)].addCalledTarget(FName,
HDSampleProfReader.h75 void dumpFunctionProfile(StringRef FName, raw_ostream &OS = dbgs());
/NextBSD/contrib/compiler-rt/lib/ubsan/
HDubsan_handlers.cc353 const char *FName = FLoc.get()->info.function; in handleFunctionTypeMismatch() local
354 if (!FName) in handleFunctionTypeMismatch()
355 FName = "(unknown)"; in handleFunctionTypeMismatch()
359 << FName << Data->Type; in handleFunctionTypeMismatch()
360 Diag(FLoc, DL_Note, "%0 defined here") << FName; in handleFunctionTypeMismatch()
/NextBSD/contrib/llvm/include/llvm/ExecutionEngine/Orc/
HDCompileOnDemandLayer.h269 std::string FName = SubF->getName(); in extractAndCompile() local
271 BaseLayer.findSymbolIn(PartitionH, Mangle(FName, SrcM.getDataLayout()), in extractAndCompile()
275 Mangle(FName + "$orc_addr", in extractAndCompile()
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsSEISelDAGToDAG.cpp155 const GlobalValue *FName = MF.getFunction(); in initGlobalBaseReg() local
157 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
161 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
184 const GlobalValue *FName = MF.getFunction(); in initGlobalBaseReg() local
186 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
189 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
/NextBSD/contrib/llvm/tools/llvm-profdata/
HDllvm-profdata.cpp95 StringRef FName = I->first(); in mergeSampleProfile() local
97 ProfileMap[FName].merge(Samples); in mergeSampleProfile()
/NextBSD/contrib/llvm/lib/CodeGen/
HDIntrinsicLowering.cpp39 const char *FName, in EnsureFPIntrinsicsExist() argument
44 EnsureFunctionExists(M, FName, Fn->arg_begin(), Fn->arg_end(), in EnsureFPIntrinsicsExist()
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDGCOVProfiling.cpp443 StringRef FName = sys::path::filename(Filename); in mangleName() local
445 if (sys::fs::current_path(CurPath)) return FName; in mangleName()
446 sys::path::append(CurPath, FName); in mangleName()
HDDataFlowSanitizer.cpp265 Constant *getOrBuildTrampolineFunction(FunctionType *FT, StringRef FName);
559 StringRef FName) { in getOrBuildTrampolineFunction() argument
561 Constant *C = Mod->getOrInsertFunction(FName, FTT); in getOrBuildTrampolineFunction()
/NextBSD/contrib/llvm/lib/Support/
HDCommandLine.cpp706 static bool ExpandResponseFile(const char *FName, StringSaver &Saver, in ExpandResponseFile() argument
711 MemoryBuffer::getFile(FName); in ExpandResponseFile()