Lines Matching refs:getArgOperand
205 Value *Dst = CI->getArgOperand(0);
206 Value *Src = CI->getArgOperand(1);
253 Value *Dst = CI->getArgOperand(0);
254 Value *Src = CI->getArgOperand(1);
258 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2)))
293 Value *SrcStr = CI->getArgOperand(0);
297 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
303 return EmitMemChr(SrcStr, CI->getArgOperand(1), // include nul.
338 Value *SrcStr = CI->getArgOperand(0);
339 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
373 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1);
415 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1);
421 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2)))
430 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, DL, TLI);
459 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
480 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
507 Value *Dst = CI->getArgOperand(0);
508 Value *Src = CI->getArgOperand(1);
509 Value *LenOp = CI->getArgOperand(2);
550 Value *Src = CI->getArgOperand(0);
588 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
589 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
602 return B.CreateGEP(B.getInt8Ty(), CI->getArgOperand(0), B.getInt64(I), "strpbrk");
607 return EmitStrChr(CI->getArgOperand(0), S2[0], B, TLI);
620 Value *EndPtr = CI->getArgOperand(1);
639 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
640 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
667 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
668 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
684 return EmitStrLen(CI->getArgOperand(0), B, DL, TLI);
698 if (CI->getArgOperand(0) == CI->getArgOperand(1))
699 return B.CreateBitCast(CI->getArgOperand(0), CI->getType());
702 if (isOnlyUsedInEqualityComparison(CI, CI->getArgOperand(0))) {
703 Value *StrLen = EmitStrLen(CI->getArgOperand(1), B, DL, TLI);
706 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1),
722 bool HasStr1 = getConstantStringInfo(CI->getArgOperand(0), SearchStr);
723 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr);
727 return B.CreateBitCast(CI->getArgOperand(0), CI->getType());
737 Value *Result = CastToCStr(CI->getArgOperand(0), B);
744 Value *StrChr = EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI);
759 Value *SrcStr = CI->getArgOperand(0);
760 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
761 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
810 Value *C = B.CreateZExtOrTrunc(CI->getArgOperand(1), BitfieldC->getType());
844 Value *LHS = CI->getArgOperand(0), *RHS = CI->getArgOperand(1);
850 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
916 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
917 CI->getArgOperand(2), 1);
918 return CI->getArgOperand(0);
928 B.CreateMemMove(CI->getArgOperand(0), CI->getArgOperand(1),
929 CI->getArgOperand(2), 1);
930 return CI->getArgOperand(0);
940 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false);
941 B.CreateMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), 1);
942 return CI->getArgOperand(0);
992 Value *V = valueHasFloatPrecision(CI->getArgOperand(0));
1023 Value *V1 = valueHasFloatPrecision(CI->getArgOperand(0));
1026 Value *V2 = valueHasFloatPrecision(CI->getArgOperand(1));
1053 Value *Op1 = CI->getArgOperand(0);
1101 Value *Op1 = CI->getArgOperand(0), *Op2 = CI->getArgOperand(1);
1141 B.CreateFMul(OpC->getArgOperand(0), Op2, "mul"),
1228 Value *Op = CI->getArgOperand(0);
1279 Value *Op = CI->getArgOperand(0);
1331 Value *Op0 = CI->getArgOperand(0);
1332 Value *Op1 = CI->getArgOperand(1);
1354 Value *Op1 = CI->getArgOperand(0);
1373 return B.CreateFMul(OpC->getArgOperand(1),
1381 OpC->getArgOperand(0),
1398 Value *Op = CI->getArgOperand(0);
1471 Value *Op1 = CI->getArgOperand(0);
1485 Ret = OpC->getArgOperand(0);
1501 Value *Arg = CI->getArgOperand(0);
1647 Value *Op = CI->getArgOperand(0);
1678 Value *Op = CI->getArgOperand(0);
1690 Value *Op = CI->getArgOperand(0);
1701 Value *Op = CI->getArgOperand(0);
1711 return B.CreateAnd(CI->getArgOperand(0),
1753 LoadInst *LI = dyn_cast<LoadInst>(CI->getArgOperand(StreamArg));
1765 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr))
1802 CI->getArgOperand(1)->getType()->isIntegerTy()) {
1803 Value *Res = EmitPutChar(CI->getArgOperand(1), B, TLI);
1812 CI->getArgOperand(1)->getType()->isPointerTy()) {
1813 return EmitPutS(CI->getArgOperand(1), B, TLI);
1848 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
1860 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
1876 if (!CI->getArgOperand(2)->getType()->isIntegerTy())
1878 Value *V = B.CreateTrunc(CI->getArgOperand(2), B.getInt8Ty(), "char");
1879 Value *Ptr = CastToCStr(CI->getArgOperand(0), B);
1889 if (!CI->getArgOperand(2)->getType()->isPointerTy())
1892 Value *Len = EmitStrLen(CI->getArgOperand(2), B, DL, TLI);
1897 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(2), IncLen, 1);
1937 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
1953 CI->getArgOperand(1),
1955 CI->getArgOperand(0), B, DL, TLI);
1967 if (!CI->getArgOperand(2)->getType()->isIntegerTy())
1969 return EmitFPutC(CI->getArgOperand(2), CI->getArgOperand(0), B, TLI);
1974 if (!CI->getArgOperand(2)->getType()->isPointerTy())
1976 return EmitFPutS(CI->getArgOperand(2), CI->getArgOperand(0), B, TLI);
2022 ConstantInt *SizeC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
2023 ConstantInt *CountC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
2035 Value *Char = B.CreateLoad(CastToCStr(CI->getArgOperand(0), B), "char");
2036 Value *NewCI = EmitFPutC(Char, CI->getArgOperand(3), B, TLI);
2055 uint64_t Len = GetStringLength(CI->getArgOperand(0));
2061 CI->getArgOperand(0),
2063 CI->getArgOperand(1), B, DL, TLI);
2076 if (!getConstantStringInfo(CI->getArgOperand(0), Str))
2399 if (CI->getArgOperand(ObjSizeOp) == CI->getArgOperand(SizeOp))
2402 dyn_cast<ConstantInt>(CI->getArgOperand(ObjSizeOp))) {
2409 uint64_t Len = GetStringLength(CI->getArgOperand(SizeOp));
2416 if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getArgOperand(SizeOp)))
2429 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
2430 CI->getArgOperand(2), 1);
2431 return CI->getArgOperand(0);
2443 B.CreateMemMove(CI->getArgOperand(0), CI->getArgOperand(1),
2444 CI->getArgOperand(2), 1);
2445 return CI->getArgOperand(0);
2457 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false);
2458 B.CreateMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), 1);
2459 return CI->getArgOperand(0);
2474 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1),
2475 *ObjSize = CI->getArgOperand(2);
2518 Value *Ret = EmitStrNCpy(CI->getArgOperand(0), CI->getArgOperand(1),
2519 CI->getArgOperand(2), B, TLI, Name.substr(2, 7));