Lines Matching refs:getArgOperand
135 if (CI->getArgOperand(SizeCIOp) == CI->getArgOperand(SizeArgOp))
138 dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp))) {
142 uint64_t Len = GetStringLength(CI->getArgOperand(SizeArgOp));
149 CI->getArgOperand(SizeArgOp)))
171 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
172 CI->getArgOperand(2), 1);
173 return CI->getArgOperand(0);
194 B.CreateMemMove(CI->getArgOperand(0), CI->getArgOperand(1),
195 CI->getArgOperand(2), 1);
196 return CI->getArgOperand(0);
217 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(),
219 B.CreateMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), 1);
220 return CI->getArgOperand(0);
241 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
264 CI->getArgOperand(2), B, TD, TLI);
286 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
313 if (!EmitMemCpyChk(Dst, Src, LenV, CI->getArgOperand(2), B, TD, TLI))
337 Value *Ret = EmitStrNCpy(CI->getArgOperand(0), CI->getArgOperand(1),
338 CI->getArgOperand(2), B, TD, TLI,
361 Value *Dst = CI->getArgOperand(0);
362 Value *Src = CI->getArgOperand(1);
412 Value *Dst = CI->getArgOperand(0);
413 Value *Src = CI->getArgOperand(1);
417 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2)))
454 Value *SrcStr = CI->getArgOperand(0);
458 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
467 return EmitMemChr(SrcStr, CI->getArgOperand(1), // include nul.
500 Value *SrcStr = CI->getArgOperand(0);
501 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
536 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1);
582 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1);
588 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2)))
597 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, TD, TLI);
631 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
663 Value *Dst = CI->getArgOperand(0), *Src = CI->getArgOperand(1);
695 Value *Dst = CI->getArgOperand(0);
696 Value *Src = CI->getArgOperand(1);
697 Value *LenOp = CI->getArgOperand(2);
742 Value *Src = CI->getArgOperand(0);
766 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
767 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
780 return B.CreateGEP(CI->getArgOperand(0), B.getInt64(I), "strpbrk");
785 return EmitStrChr(CI->getArgOperand(0), S2[0], B, TD, TLI);
799 Value *EndPtr = CI->getArgOperand(1);
820 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
821 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
849 bool HasS1 = getConstantStringInfo(CI->getArgOperand(0), S1);
850 bool HasS2 = getConstantStringInfo(CI->getArgOperand(1), S2);
865 return EmitStrLen(CI->getArgOperand(0), B, TD, TLI);
881 if (CI->getArgOperand(0) == CI->getArgOperand(1))
882 return B.CreateBitCast(CI->getArgOperand(0), CI->getType());
885 if (TD && isOnlyUsedInEqualityComparison(CI, CI->getArgOperand(0))) {
886 Value *StrLen = EmitStrLen(CI->getArgOperand(1), B, TD, TLI);
889 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1),
906 bool HasStr1 = getConstantStringInfo(CI->getArgOperand(0), SearchStr);
907 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr);
911 getArgOperand(0), CI->getType());
921 Value *Result = CastToCStr(CI->getArgOperand(0), B);
928 Value *StrChr= EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TD, TLI);
943 Value *LHS = CI->getArgOperand(0), *RHS = CI->getArgOperand(1);
949 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
1000 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
1001 CI->getArgOperand(2), 1);
1002 return CI->getArgOperand(0);
1019 B.CreateMemMove(CI->getArgOperand(0), CI->getArgOperand(1),
1020 CI->getArgOperand(2), 1);
1021 return CI->getArgOperand(0);
1038 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false);
1039 B.CreateMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), 1);
1040 return CI->getArgOperand(0);
1071 FPExtInst *Cast = dyn_cast<FPExtInst>(CI->getArgOperand(0));
1107 Value *Op1 = CI->getArgOperand(0);
1134 Value *Op1 = CI->getArgOperand(0), *Op2 = CI->getArgOperand(1);
1193 Value *Op = CI->getArgOperand(0);
1246 Value *Op = CI->getArgOperand(0);
1279 Value *Op = CI->getArgOperand(0);
1296 Value *Op = CI->getArgOperand(0);
1312 Value *Op = CI->getArgOperand(0);
1327 return B.CreateAnd(CI->getArgOperand(0),
1341 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr))
1378 CI->getArgOperand(1)->getType()->isIntegerTy()) {
1379 Value *Res = EmitPutChar(CI->getArgOperand(1), B, TD, TLI);
1387 CI->getArgOperand(1)->getType()->isPointerTy()) {
1388 return EmitPutS(CI->getArgOperand(1), B, TD, TLI);
1425 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
1440 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1),
1455 if (!CI->getArgOperand(2)->getType()->isIntegerTy()) return 0;
1456 Value *V = B.CreateTrunc(CI->getArgOperand(2), B.getInt8Ty(), "char");
1457 Value *Ptr = CastToCStr(CI->getArgOperand(0), B);
1470 if (!CI->getArgOperand(2)->getType()->isPointerTy()) return 0;
1472 Value *Len = EmitStrLen(CI->getArgOperand(2), B, TD, TLI);
1478 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(2), IncLen, 1);
1518 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
1536 return EmitFWrite(CI->getArgOperand(1),
1539 CI->getArgOperand(0), B, TD, TLI);
1551 if (!CI->getArgOperand(2)->getType()->isIntegerTy()) return 0;
1552 return EmitFPutC(CI->getArgOperand(2), CI->getArgOperand(0), B, TD, TLI);
1557 if (!CI->getArgOperand(2)->getType()->isPointerTy())
1559 return EmitFPutS(CI->getArgOperand(2), CI->getArgOperand(0), B, TD, TLI);
1603 ConstantInt *SizeC = dyn_cast<ConstantInt>(CI->getArgOperand(1));
1604 ConstantInt *CountC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
1615 Value *Char = B.CreateLoad(CastToCStr(CI->getArgOperand(0), B), "char");
1616 Value *NewCI = EmitFPutC(Char, CI->getArgOperand(3), B, TD, TLI);
1637 uint64_t Len = GetStringLength(CI->getArgOperand(0));
1640 return EmitFWrite(CI->getArgOperand(0),
1642 CI->getArgOperand(1), B, TD, TLI);
1657 if (!getConstantStringInfo(CI->getArgOperand(0), Str))