Home
last modified time | relevance | path

Searched refs:FormatStr (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1784 StringRef FormatStr; in optimizePrintFString() local
1785 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr)) in optimizePrintFString()
1789 if (FormatStr.empty()) // Tolerate printf's declared void. in optimizePrintFString()
1799 if (FormatStr.size() == 1 || FormatStr == "%%") in optimizePrintFString()
1800 return emitPutChar(B.getInt32(FormatStr[0]), B, TLI); in optimizePrintFString()
1803 if (FormatStr == "%s" && CI->getNumArgOperands() > 1) { in optimizePrintFString()
1813 if (FormatStr[FormatStr.size() - 1] == '\n' && in optimizePrintFString()
1814 FormatStr.find('%') == StringRef::npos) { // No format characters. in optimizePrintFString()
1817 FormatStr = FormatStr.drop_back(); in optimizePrintFString()
1818 Value *GV = B.CreateGlobalString(FormatStr, "str"); in optimizePrintFString()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp1098 std::string FormatStr; in OptimizeFixedFormatString() local
1099 if (!GetConstantStringInfo(CI->getArgOperand(0), FormatStr)) in OptimizeFixedFormatString()
1103 if (FormatStr.empty()) // Tolerate printf's declared void. in OptimizeFixedFormatString()
1114 if (FormatStr.size() == 1) { in OptimizeFixedFormatString()
1115 Value *Res = EmitPutChar(B.getInt32(FormatStr[0]), B, TD); in OptimizeFixedFormatString()
1121 if (FormatStr[FormatStr.size()-1] == '\n' && in OptimizeFixedFormatString()
1122 FormatStr.find('%') == std::string::npos) { // no format characters. in OptimizeFixedFormatString()
1125 FormatStr.erase(FormatStr.end()-1); in OptimizeFixedFormatString()
1126 Constant *C = ConstantArray::get(*Context, FormatStr, true); in OptimizeFixedFormatString()
1131 ConstantInt::get(CI->getType(), FormatStr.size()+1); in OptimizeFixedFormatString()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1587 StringRef FormatStr; in optimizePrintFString() local
1588 if (!getConstantStringInfo(CI->getArgOperand(0), FormatStr)) in optimizePrintFString()
1592 if (FormatStr.empty()) // Tolerate printf's declared void. in optimizePrintFString()
1602 if (FormatStr.size() == 1 || FormatStr == "%%") in optimizePrintFString()
1603 return emitPutChar(B.getInt32(FormatStr[0]), B, TLI); in optimizePrintFString()
1606 if (FormatStr == "%s" && CI->getNumArgOperands() > 1) { in optimizePrintFString()
1616 if (FormatStr[FormatStr.size() - 1] == '\n' && in optimizePrintFString()
1617 FormatStr.find('%') == StringRef::npos) { // No format characters. in optimizePrintFString()
1620 FormatStr = FormatStr.drop_back(); in optimizePrintFString()
1621 Value *GV = B.CreateGlobalString(FormatStr, "str"); in optimizePrintFString()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DLaneBitmask.h44 constexpr static const char *const FormatStr = "%08X"; member
96 OS << format(LaneBitmask::FormatStr, LaneMask.getAsInteger()); in PrintLaneMask()