Lines Matching defs:FormatStr

3166   StringRef FormatStr;
3167 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr))
3171 if (FormatStr.empty()) // Tolerate printf's declared void.
3182 if (FormatStr.size() == 1 || FormatStr == "%%") {
3186 Value *IntChar = ConstantInt::get(IntTy, (unsigned char)FormatStr[0]);
3191 if (FormatStr == "%s" && CI->arg_size() > 1) {
3216 if (FormatStr.back() == '\n' &&
3217 !FormatStr.contains('%')) { // No format characters.
3220 FormatStr = FormatStr.drop_back();
3221 Value *GV = B.CreateGlobalString(FormatStr, "str");
3227 if (FormatStr == "%c" && CI->arg_size() > 1 &&
3236 if (FormatStr == "%s\n" && CI->arg_size() > 1 &&
3283 StringRef FormatStr;
3284 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
3292 if (FormatStr.contains('%'))
3299 FormatStr.size() + 1)); // Copy the null byte.
3300 return ConstantInt::get(CI->getType(), FormatStr.size());
3305 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() < 3)
3309 if (FormatStr[1] == 'c') {
3322 if (FormatStr[1] == 's') {
3473 StringRef FormatStr;
3474 if (!getConstantStringInfo(FmtArg, FormatStr))
3479 if (FormatStr.contains('%'))
3484 return emitSnPrintfMemCpy(CI, FmtArg, FormatStr, N, B);
3489 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() != 4)
3493 if (FormatStr[1] == 'c') {
3513 if (FormatStr[1] != 's')
3540 StringRef FormatStr;
3541 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
3553 if (FormatStr.contains('%'))
3560 ConstantInt::get(SizeTTy, FormatStr.size()),
3566 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() < 3)
3570 if (FormatStr[1] == 'c') {
3580 if (FormatStr[1] == 's') {