Lines Matching defs:SrcStr
468 Value *SrcStr = CI->getArgOperand(0);
472 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
479 uint64_t Len = GetStringLength(SrcStr);
494 emitMemChr(SrcStr, CharVal, // include nul.
510 if (!getConstantStringInfo(SrcStr, Str)) {
512 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI))
513 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr");
526 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr");
530 Value *SrcStr = CI->getArgOperand(0);
536 if (!getConstantStringInfo(SrcStr, Str)) {
539 return copyFlags(*CI, emitStrChr(SrcStr, '\0', B, TLI));
550 return copyFlags(*CI, emitMemRChr(SrcStr, CharVal, Size, B, DL, TLI));
909 std::string SrcStr = Str.str();
912 SrcStr.resize(N, '\0');
913 Src = B.CreateGlobalString(SrcStr, "str");
1212 Value *SrcStr = CI->getArgOperand(0);
1227 Value *Val = B.CreateLoad(B.getInt8Ty(), SrcStr, "memrchr.char0");
1231 return B.CreateSelect(Cmp, SrcStr, NullPtr, "memrchr.sel");
1236 if (!getConstantStringInfo(SrcStr, Str, /*TrimAtNul=*/false))
1263 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(Pos));
1272 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr,
1295 B.CreateInBoundsGEP(Int8Ty, SrcStr, SizeM1, "memrchr.ptr_plus");
1300 Value *SrcStr = CI->getArgOperand(0);
1305 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
1322 Value *Val = B.CreateLoad(B.getInt8Ty(), SrcStr, "memchr.char0");
1326 return B.CreateSelect(Cmp, SrcStr, NullPtr, "memchr.sel");
1331 if (!getConstantStringInfo(SrcStr, Str, /*TrimAtNul=*/false))
1346 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(Pos),
1386 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, PosVal);
1394 return B.CreateSelect(And, SrcStr, Sel1, "memchr.sel2");
1398 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
1641 StringRef SrcStr;
1648 if (!getConstantStringInfo(Src, SrcStr, /*TrimAtNul=*/false) ||
1657 size_t Pos = SrcStr.find(StopChar->getSExtValue() & 0xFF);
1659 if (N->getZExtValue() <= SrcStr.size()) {