Home | History | Annotate | Download | only in Utils

Lines Matching refs:Dst

205   Value *Dst = CI->getArgOperand(0);
216 return Dst;
218 return emitStrLenMemCpy(Src, Dst, Len, B);
221 Value *LibCallSimplifier::emitStrLenMemCpy(Value *Src, Value *Dst, uint64_t Len,
225 Value *DstLen = EmitStrLen(Dst, B, DL, TLI);
232 Value *CpyDst = B.CreateGEP(B.getInt8Ty(), Dst, DstLen, "endptr");
239 return Dst;
253 Value *Dst = CI->getArgOperand(0);
273 return Dst;
281 return emitStrLenMemCpy(Src, Dst, SrcLen, B);
459 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
460 if (Dst == Src) // strcpy(x,x) -> x
470 B.CreateMemCpy(Dst, Src,
472 return Dst;
480 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
481 if (Dst == Src) { // stpcpy(x,x) -> x+strlen(x)
483 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr;
494 B.CreateGEP(B.getInt8Ty(), Dst, ConstantInt::get(DL.getIntPtrType(PT), Len - 1));
498 B.CreateMemCpy(Dst, Src, LenV, 1);
507 Value *Dst = CI->getArgOperand(0);
519 B.CreateMemSet(Dst, B.getInt8('\0'), LenOp, 1);
520 return Dst;
530 return Dst; // strncpy(x, y, 0) -> x
538 B.CreateMemCpy(Dst, Src, ConstantInt::get(DL.getIntPtrType(PT), Len), 1);
540 return Dst;
1875 // sprintf(dst, "%c", chr) --> *(i8*)dst = chr; *((i8*)dst+1) = 0
2474 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1),
2478 if (Func == LibFunc::stpcpy_chk && !OnlyLowerUnknownSize && Dst == Src) {
2480 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr;
2489 return EmitStrCpy(Dst, Src, B, TLI, Name.substr(2, 6));
2501 Value *Ret = EmitMemCpyChk(Dst, Src, LenV, ObjSize, B, DL, TLI);
2505 return B.CreateGEP(B.getInt8Ty(), Dst, ConstantInt::get(SizeTTy, Len - 1));