Home
last modified time | relevance | path

Searched refs:SrcLen (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp207 uint64_t SrcLen = GetStringLength(Src); in CallOptimizer() local
208 if (SrcLen == 0) return 0; in CallOptimizer()
209 --SrcLen; // Unbias length. in CallOptimizer()
214 if (SrcLen == 0 || Len == 0) return Dst; in CallOptimizer()
220 if (Len < SrcLen) return 0; in CallOptimizer()
224 EmitStrLenMemCpy(Src, Dst, SrcLen, B); in CallOptimizer()
482 uint64_t SrcLen = GetStringLength(Src); in CallOptimizer() local
483 if (SrcLen == 0) return 0; in CallOptimizer()
484 --SrcLen; in CallOptimizer()
486 if (SrcLen == 0) { in CallOptimizer()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp162 uint64_t SrcLen = GetStringLength(Src); in optimizeStrNCat() local
163 if (SrcLen == 0) in optimizeStrNCat()
165 --SrcLen; // Unbias length. in optimizeStrNCat()
170 if (SrcLen == 0 || Len == 0) in optimizeStrNCat()
174 if (Len < SrcLen) in optimizeStrNCat()
179 return emitStrLenMemCpy(Src, Dst, SrcLen, B); in optimizeStrNCat()
369 uint64_t SrcLen = GetStringLength(Src); in optimizeStrNCpy() local
370 if (SrcLen == 0) in optimizeStrNCpy()
372 --SrcLen; in optimizeStrNCpy()
374 if (SrcLen == 0) { in optimizeStrNCpy()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp208 uint64_t SrcLen = GetStringLength(Src); in optimizeStrNCat() local
209 if (SrcLen == 0) in optimizeStrNCat()
211 --SrcLen; // Unbias length. in optimizeStrNCat()
216 if (SrcLen == 0 || Len == 0) in optimizeStrNCat()
220 if (Len < SrcLen) in optimizeStrNCat()
225 return emitStrLenMemCpy(Src, Dst, SrcLen, B); in optimizeStrNCat()
415 uint64_t SrcLen = GetStringLength(Src); in optimizeStrNCpy() local
416 if (SrcLen == 0) in optimizeStrNCpy()
418 --SrcLen; in optimizeStrNCpy()
420 if (SrcLen == 0) { in optimizeStrNCpy()
[all …]