Searched refs:FormatStr (Results 1 – 1 of 1) sorted by relevance
1557 StringRef FormatStr; in optimizePrintFString() local1558 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr)) in optimizePrintFString()1562 if (FormatStr.empty()) // Tolerate printf's declared void. in optimizePrintFString()1572 if (FormatStr.size() == 1) { in optimizePrintFString()1573 Value *Res = EmitPutChar(B.getInt32(FormatStr[0]), B, TLI); in optimizePrintFString()1580 if (FormatStr[FormatStr.size() - 1] == '\n' && in optimizePrintFString()1581 FormatStr.find('%') == StringRef::npos) { // No format characters. in optimizePrintFString()1584 FormatStr = FormatStr.drop_back(); in optimizePrintFString()1585 Value *GV = B.CreateGlobalString(FormatStr, "str"); in optimizePrintFString()1589 : ConstantInt::get(CI->getType(), FormatStr.size() + 1); in optimizePrintFString()[all …]