Home
last modified time | relevance | path

Searched refs:SrcStr (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp185 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() local
191 uint64_t Len = GetStringLength(SrcStr); in optimizeStrChr()
195 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
203 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrChr()
205 return B.CreateGEP(B.getInt8Ty(), SrcStr, emitStrLen(SrcStr, B, DL, TLI), in optimizeStrChr()
219 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
223 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() local
231 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrRChr()
234 return emitStrChr(SrcStr, '\0', B, TLI); in optimizeStrRChr()
246 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strrchr"); in optimizeStrRChr()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp319 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() local
326 uint64_t Len = GetStringLength(SrcStr); in optimizeStrChr()
334 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
342 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrChr()
344 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr()
345 return B.CreateGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr"); in optimizeStrChr()
358 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
362 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() local
371 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrRChr()
374 return emitStrChr(SrcStr, '\0', B, TLI); in optimizeStrRChr()
[all …]
/external/llvm/unittests/Linker/
DLinkModulesTest.cpp240 const char *SrcStr = "define void @foo() !attach !0 {\n" in TEST_F() local
253 std::unique_ptr<Module> Src = parseAssemblyString(SrcStr, Err, C); in TEST_F()
/external/llvm-project/llvm/unittests/Linker/
DLinkModulesTest.cpp239 const char *SrcStr = "define void @foo() !attach !0 {\n" in TEST_F() local
252 std::unique_ptr<Module> Src = parseAssemblyString(SrcStr, Err, C); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DNotNullTerminatedResultCheck.cpp203 StringRef DestStr = "", SrcStr = "", LengthStr = ""; in isStringDataAndLength() local
210 SrcStr = SrcMD->getName(); in isStringDataAndLength()
217 (SrcStr == "data" || DestStr == "data"); in isStringDataAndLength()