Lines Matching defs:FormatStr
3274 StringRef FormatStr;
3275 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr))
3279 if (FormatStr.empty()) // Tolerate printf's declared void.
3290 if (FormatStr.size() == 1 || FormatStr == "%%") {
3294 Value *IntChar = ConstantInt::get(IntTy, (unsigned char)FormatStr[0]);
3299 if (FormatStr == "%s" && CI->arg_size() > 1) {
3324 if (FormatStr.back() == '\n' &&
3325 !FormatStr.contains('%')) { // No format characters.
3328 FormatStr = FormatStr.drop_back();
3329 Value *GV = B.CreateGlobalString(FormatStr, "str");
3335 if (FormatStr == "%c" && CI->arg_size() > 1 &&
3344 if (FormatStr == "%s\n" && CI->arg_size() > 1 &&
3391 StringRef FormatStr;
3392 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
3400 if (FormatStr.contains('%'))
3406 TLI->getAsSizeT(FormatStr.size() + 1, *CI->getModule()));
3407 return ConstantInt::get(CI->getType(), FormatStr.size());
3412 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() < 3)
3416 if (FormatStr[1] == 'c') {
3429 if (FormatStr[1] == 's') {
3574 StringRef FormatStr;
3575 if (!getConstantStringInfo(FmtArg, FormatStr))
3580 if (FormatStr.contains('%'))
3585 return emitSnPrintfMemCpy(CI, FmtArg, FormatStr, N, B);
3590 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() != 4)
3594 if (FormatStr[1] == 'c') {
3614 if (FormatStr[1] != 's')
3641 StringRef FormatStr;
3642 if (!getConstantStringInfo(CI->getArgOperand(1), FormatStr))
3654 if (FormatStr.contains('%'))
3659 TLI->getAsSizeT(FormatStr.size(), *CI->getModule()),
3665 if (FormatStr.size() != 2 || FormatStr[0] != '%' || CI->arg_size() < 3)
3669 if (FormatStr[1] == 'c') {
3679 if (FormatStr[1] == 's') {