Lines Matching refs:FormatStr

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