Lines Matching defs:SrcStr
474 Value *SrcStr = CI->getArgOperand(0);
478 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
485 uint64_t Len = GetStringLength(SrcStr);
500 emitMemChr(SrcStr, CharVal, // include nul.
516 if (!getConstantStringInfo(SrcStr, Str)) {
518 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI))
519 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr");
532 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr");
536 Value *SrcStr = CI->getArgOperand(0);
542 if (!getConstantStringInfo(SrcStr, Str)) {
545 return copyFlags(*CI, emitStrChr(SrcStr, '\0', B, TLI));
556 return copyFlags(*CI, emitMemRChr(SrcStr, CharVal, Size, B, DL, TLI));
900 std::string SrcStr = Str.str();
903 SrcStr.resize(N, '\0');
904 Src = B.CreateGlobalString(SrcStr, "str", /*AddressSpace=*/0,
1204 Value *SrcStr = CI->getArgOperand(0);
1219 Value *Val = B.CreateLoad(B.getInt8Ty(), SrcStr, "memrchr.char0");
1223 return B.CreateSelect(Cmp, SrcStr, NullPtr, "memrchr.sel");
1228 if (!getConstantStringInfo(SrcStr, Str, /*TrimAtNul=*/false))
1255 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(Pos));
1264 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr,
1287 B.CreateInBoundsGEP(Int8Ty, SrcStr, SizeM1, "memrchr.ptr_plus");
1292 Value *SrcStr = CI->getArgOperand(0);
1297 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
1314 Value *Val = B.CreateLoad(B.getInt8Ty(), SrcStr, "memchr.char0");
1318 return B.CreateSelect(Cmp, SrcStr, NullPtr, "memchr.sel");
1323 if (!getConstantStringInfo(SrcStr, Str, /*TrimAtNul=*/false))
1338 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, B.getInt64(Pos),
1378 Value *SrcPlus = B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, PosVal);
1386 return B.CreateSelect(And, SrcStr, Sel1, "memchr.sel2");
1390 if (isOnlyUsedInEqualityComparison(CI, SrcStr))
1634 StringRef SrcStr;
1641 if (!getConstantStringInfo(Src, SrcStr, /*TrimAtNul=*/false) ||
1650 size_t Pos = SrcStr.find(StopChar->getSExtValue() & 0xFF);
1652 if (N->getZExtValue() <= SrcStr.size()) {