Searched refs:FormatStr (Results 1 – 1 of 1) sorted by relevance
1764 StringRef FormatStr; in optimizePrintFString() local1765 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr)) in optimizePrintFString()1769 if (FormatStr.empty()) // Tolerate printf's declared void. in optimizePrintFString()1779 if (FormatStr.size() == 1) { in optimizePrintFString()1780 Value *Res = EmitPutChar(B.getInt32(FormatStr[0]), B, TLI); in optimizePrintFString()1787 if (FormatStr[FormatStr.size() - 1] == '\n' && in optimizePrintFString()1788 FormatStr.find('%') == StringRef::npos) { // No format characters. in optimizePrintFString()1791 FormatStr = FormatStr.drop_back(); in optimizePrintFString()1792 Value *GV = B.CreateGlobalString(FormatStr, "str"); in optimizePrintFString()1796 : ConstantInt::get(CI->getType(), FormatStr.size() + 1); in optimizePrintFString()[all …]