Home
last modified time | relevance | path

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

123

/external/llvm-project/clang/lib/Analysis/
DRetainSummaryManager.cpp187 static bool isRetain(const FunctionDecl *FD, StringRef FName) { in isRetain() argument
188 return FName.startswith_lower("retain") || FName.endswith_lower("retain"); in isRetain()
191 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease() argument
192 return FName.startswith_lower("release") || FName.endswith_lower("release"); in isRelease()
195 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease() argument
196 return FName.startswith_lower("autorelease") || in isAutorelease()
197 FName.endswith_lower("autorelease"); in isAutorelease()
200 static bool isMakeCollectable(StringRef FName) { in isMakeCollectable() argument
201 return FName.contains_lower("MakeCollectable"); in isMakeCollectable()
237 StringRef FName, QualType RetTy) { in getSummaryForOSObject() argument
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DPthreadLockChecker.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 …]
DMacOSXAPIChecker.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()
DRetainCountChecker.cpp885 static bool isRetain(const FunctionDecl *FD, StringRef FName) { in isRetain() argument
886 return FName.endswith("Retain"); in isRetain()
889 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease() argument
890 return FName.endswith("Release"); in isRelease()
893 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease() argument
894 return FName.endswith("Autorelease"); in isAutorelease()
897 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) { in isMakeCollectable() argument
900 return FName.find("MakeCollectable") != StringRef::npos; in isMakeCollectable()
1054 StringRef FName = II->getName(); in getFunctionSummary() local
1058 FName = FName.substr(FName.find_first_not_of('_')); in getFunctionSummary()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp80 StringRef FName = II->getName(); in isCLibraryFunction() local
81 if (FName.equals(Name)) in isCLibraryFunction()
84 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction()
87 if (FName.startswith("__") && FName.endswith("_chk") && in isCLibraryFunction()
88 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
DCallEvent.cpp385 StringRef FName = II->getName(); in argumentsMayEscape() local
389 if (FName.endswith("NoCopy")) in argumentsMayEscape()
394 if (FName.startswith("NS") && (FName.find("Insert") != StringRef::npos)) in argumentsMayEscape()
399 if (FName.startswith("CF") || FName.startswith("CG")) { in argumentsMayEscape()
400 return StrInStrNoCase(FName, "InsertValue") != StringRef::npos || in argumentsMayEscape()
401 StrInStrNoCase(FName, "AddValue") != StringRef::npos || in argumentsMayEscape()
402 StrInStrNoCase(FName, "SetValue") != StringRef::npos || in argumentsMayEscape()
403 StrInStrNoCase(FName, "WithData") != StringRef::npos || in argumentsMayEscape()
404 StrInStrNoCase(FName, "AppendValue") != StringRef::npos || in argumentsMayEscape()
405 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos; in argumentsMayEscape()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMacOSXAPIChecker.cpp42 StringRef FName) const;
46 StringRef FName) const;
66 StringRef FName) const { in CheckDispatchOnce()
87 StringRef TrimmedFName = FName.ltrim('_'); in CheckDispatchOnce()
88 if (TrimmedFName != FName) in CheckDispatchOnce()
89 FName = TrimmedFName; in CheckDispatchOnce()
95 os << "Call to '" << FName << "' uses"; in CheckDispatchOnce()
DUnixAPIChecker.cpp116 StringRef FName = C.getCalleeName(FD); in checkPreStmt() local
117 if (FName.empty()) in checkPreStmt()
120 if (FName == "open") in checkPreStmt()
123 else if (FName == "openat") in checkPreStmt()
126 else if (FName == "pthread_once") in checkPreStmt()
472 StringRef FName = C.getCalleeName(FD); in checkPreStmt() local
473 if (FName.empty()) in checkPreStmt()
476 if (FName == "calloc") in checkPreStmt()
479 else if (FName == "malloc") in checkPreStmt()
482 else if (FName == "realloc") in checkPreStmt()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp78 StringRef FName = II->getName(); in isCLibraryFunction() local
79 if (FName.equals(Name)) in isCLibraryFunction()
82 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction()
85 if (FName.startswith("__") && FName.endswith("_chk") && in isCLibraryFunction()
86 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
DCallEvent.cpp631 StringRef FName = II->getName(); in argumentsMayEscape() local
635 if (FName.endswith("NoCopy")) in argumentsMayEscape()
640 if (FName.startswith("NS") && (FName.find("Insert") != StringRef::npos)) in argumentsMayEscape()
645 if (FName.startswith("CF") || FName.startswith("CG")) { in argumentsMayEscape()
646 return StrInStrNoCase(FName, "InsertValue") != StringRef::npos || in argumentsMayEscape()
647 StrInStrNoCase(FName, "AddValue") != StringRef::npos || in argumentsMayEscape()
648 StrInStrNoCase(FName, "SetValue") != StringRef::npos || in argumentsMayEscape()
649 StrInStrNoCase(FName, "WithData") != StringRef::npos || in argumentsMayEscape()
650 StrInStrNoCase(FName, "AppendValue") != StringRef::npos || in argumentsMayEscape()
651 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos; in argumentsMayEscape()
/external/llvm/lib/ProfileData/
DSampleProfReader.cpp39 void SampleProfileReader::dumpFunctionProfile(StringRef FName, in dumpFunctionProfile() argument
41 OS << "Function: " << FName << ": " << Profiles[FName]; in dumpFunctionProfile()
57 static bool ParseHead(const StringRef &Input, StringRef &FName, in ParseHead() argument
63 FName = Input.substr(0, n1); in ParseHead()
172 StringRef FName; in read() local
173 if (!ParseHead(*LineIt, FName, NumSamples, NumHeadSamples)) { in read()
178 Profiles[FName] = FunctionSamples(); in read()
179 FunctionSamples &FProfile = Profiles[FName]; in read()
180 FProfile.setName(FName); in read()
187 StringRef FName; in read() local
[all …]
DSampleProfWriter.cpp83 std::error_code SampleProfileWriterBinary::writeNameIdx(StringRef FName) { in writeNameIdx() argument
84 const auto &ret = NameTable.find(FName); in writeNameIdx()
91 void SampleProfileWriterBinary::addName(StringRef FName) { in addName() argument
93 NameTable.insert(std::make_pair(FName, NextIdx)); in addName()
/external/elfutils/libelf/
Dgelf_xlate.c92 #define INLINE2(Bytes, FName, TName) \ argument
93 INLINE3 (Bytes, FName, TName)
94 #define INLINE3(Bytes, FName, TName) \ argument
95 static inline void FName##1 (void *dest, const void *ptr) \
107 static void FName (void *dest, const void *ptr, size_t len, \
114 FName##1 (dest, ptr); \
126 FName##1 (dest, ptr); \
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DSampleProfReader.cpp51 void SampleProfileReader::dumpFunctionProfile(StringRef FName, in dumpFunctionProfile() argument
53 OS << "Function: " << FName << ": " << Profiles[FName]; in dumpFunctionProfile()
69 static bool ParseHead(const StringRef &Input, StringRef &FName, in ParseHead() argument
75 FName = Input.substr(0, n1); in ParseHead()
217 StringRef FName; in readImpl() local
218 if (!ParseHead(*LineIt, FName, NumSamples, NumHeadSamples)) { in readImpl()
223 Profiles[FName] = FunctionSamples(); in readImpl()
224 FunctionSamples &FProfile = Profiles[FName]; in readImpl()
225 FProfile.setName(FName); in readImpl()
232 StringRef FName; in readImpl() local
[all …]
/external/llvm-project/llvm/lib/ProfileData/
DSampleProfReader.cpp51 void SampleProfileReader::dumpFunctionProfile(StringRef FName, in dumpFunctionProfile() argument
53 OS << "Function: " << FName << ": " << Profiles[FName]; in dumpFunctionProfile()
69 static bool ParseHead(const StringRef &Input, StringRef &FName, in ParseHead() argument
75 FName = Input.substr(0, n1); in ParseHead()
219 StringRef FName; in readImpl() local
220 if (!ParseHead(*LineIt, FName, NumSamples, NumHeadSamples)) { in readImpl()
225 SampleContext FContext(FName); in readImpl()
240 StringRef FName; in readImpl() local
245 Discriminator, FName, TargetCountMap)) { in readImpl()
256 LineLocation(LineOffset, Discriminator))[std::string(FName)]; in readImpl()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsMachineFunction.cpp87 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() local
89 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
93 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
116 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() local
118 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
121 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
/external/llvm-project/llvm/include/llvm/Transforms/IPO/
DSampleContextTracker.h38 StringRef FName = StringRef(),
41 : ParentContext(Parent), FuncName(FName), FuncSamples(FSamples), in ParentContext()
122 ContextTrieNode *getTopLevelContextNode(StringRef FName);
123 ContextTrieNode &addTopLevelContextNode(StringRef FName);
/external/llvm-project/llvm/lib/Target/Mips/
DMipsMachineFunction.cpp86 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() local
88 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
92 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
115 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() local
117 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI); in initGlobalBaseReg()
120 .addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO); in initGlobalBaseReg()
/external/llvm-project/compiler-rt/lib/ubsan/
Dubsan_handlers_cxx.cpp177 const char *FName = FLoc.get()->info.function; in handleFunctionTypeMismatch() local
178 if (!FName) in handleFunctionTypeMismatch()
179 FName = "(unknown)"; in handleFunctionTypeMismatch()
183 << FName << Data->Type; in handleFunctionTypeMismatch()
184 Diag(FLoc, DL_Note, ET, "%0 defined here") << FName; in handleFunctionTypeMismatch()
/external/clang/tools/scan-build/bin/
Dscan-build272 my $FName = shift;
273 DieDiag("Cannot read $FName to compute Digest.\n") if (! -r $FName);
279 open(FILE, $FName) or DieDiag("Cannot open $FName when computing Digest.\n");
379 my $FName = shift;
385 my $digest = ComputeDigest("$Dir/$FName");
389 unlink("$Dir/$FName");
396 chmod(0644, "$Dir/$FName");
399 open(IN, "$Dir/$FName") or DieDiag("Cannot open '$Dir/$FName'\n");
454 push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugFunction, $BugLine,
603 my $FName = "$Dir/index.html";
[all …]
/external/llvm-project/clang/tools/scan-build/bin/
Dscan-build276 my $FName = shift;
277 DieDiag("Cannot read $FName to compute Digest.\n") if (! -r $FName);
283 open(FILE, $FName) or DieDiag("Cannot open $FName when computing Digest.\n");
383 my $FName = shift;
389 my $digest = ComputeDigest("$Dir/$FName");
393 unlink("$Dir/$FName");
400 chmod(0644, "$Dir/$FName");
403 open(IN, "$Dir/$FName") or DieDiag("Cannot open '$Dir/$FName'\n");
435 unlink("$Dir/$FName");
472 push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugFunction, $BugLine,
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc450 const char *FName = FLoc.get()->info.function; in handleFunctionTypeMismatch() local
451 if (!FName) in handleFunctionTypeMismatch()
452 FName = "(unknown)"; in handleFunctionTypeMismatch()
456 << FName << Data->Type; in handleFunctionTypeMismatch()
457 Diag(FLoc, DL_Note, "%0 defined here") << FName; in handleFunctionTypeMismatch()
544 const char *FName = FLoc.get()->info.function; in handleCFIBadIcall() local
545 if (!FName) in handleCFIBadIcall()
546 FName = "(unknown)"; in handleCFIBadIcall()
547 Diag(FLoc, DL_Note, "%0 defined here") << FName; in handleCFIBadIcall()
/external/llvm/include/llvm/ProfileData/
DSampleProfWriter.h122 std::error_code writeNameIdx(StringRef FName);
126 void addName(StringRef FName);
/external/llvm-project/llvm/unittests/Analysis/
DCaptureTrackingTest.cpp53 auto Test = [&M](const char *FName, unsigned FalseMaxUsesLimit, in TEST()
55 Function *F = M->getFunction(FName); in TEST()
/external/llvm-project/llvm/lib/Transforms/IPO/
DSampleContextTracker.cpp447 ContextTrieNode *SampleContextTracker::getTopLevelContextNode(StringRef FName) { in getTopLevelContextNode() argument
448 return RootContext.getChildContext(LineLocation(0, 0), FName); in getTopLevelContextNode()
451 ContextTrieNode &SampleContextTracker::addTopLevelContextNode(StringRef FName) { in addTopLevelContextNode() argument
452 assert(!getTopLevelContextNode(FName) && "Node to add must not exist"); in addTopLevelContextNode()
453 return *RootContext.getOrCreateChildContext(LineLocation(0, 0), FName); in addTopLevelContextNode()

123