Home
last modified time | relevance | path

Searched refs:Str (Results 1 – 25 of 680) sorted by relevance

12345678910>>...28

/external/swiftshader/third_party/LLVM/lib/Support/
DTriple.cpp192 Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) { in getArchTypeForDarwinArchName() argument
205 if (Str == "ppc" || Str == "ppc601" || Str == "ppc603" || Str == "ppc604" || in getArchTypeForDarwinArchName()
206 Str == "ppc604e" || Str == "ppc750" || Str == "ppc7400" || in getArchTypeForDarwinArchName()
207 Str == "ppc7450" || Str == "ppc970") in getArchTypeForDarwinArchName()
210 if (Str == "ppc64") in getArchTypeForDarwinArchName()
213 if (Str == "i386" || Str == "i486" || Str == "i486SX" || Str == "pentium" || in getArchTypeForDarwinArchName()
214 Str == "i586" || Str == "pentpro" || Str == "i686" || Str == "pentIIm3" || in getArchTypeForDarwinArchName()
215 Str == "pentIIm5" || Str == "pentium4") in getArchTypeForDarwinArchName()
218 if (Str == "x86_64") in getArchTypeForDarwinArchName()
222 if (Str == "arm" || Str == "armv4t" || Str == "armv5" || Str == "xscale" || in getArchTypeForDarwinArchName()
[all …]
DStringRef.cpp143 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument
144 size_t N = Str.size(); in find()
148 if (substr(i, N).equals(Str)) in find()
157 size_t StringRef::rfind(StringRef Str) const { in rfind()
158 size_t N = Str.size(); in rfind()
163 if (substr(i, N).equals(Str)) in rfind()
232 size_t StringRef::count(StringRef Str) const { in count()
234 size_t N = Str.size(); in count()
238 if (substr(i, N).equals(Str)) in count()
243 static unsigned GetAutoSenseRadix(StringRef &Str) { in GetAutoSenseRadix() argument
[all …]
/external/swiftshader/third_party/LLVM/unittests/ADT/
DStringRefTest.cpp102 StringRef Str("hello"); in TEST() local
103 EXPECT_EQ("lo", Str.substr(3)); in TEST()
104 EXPECT_EQ("", Str.substr(100)); in TEST()
105 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST()
106 EXPECT_EQ("o", Str.substr(4, 10)); in TEST()
110 StringRef Str("hello"); in TEST() local
111 EXPECT_EQ("l", Str.slice(2, 3)); in TEST()
112 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST()
113 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST()
114 EXPECT_EQ("", Str.slice(2, 1)); in TEST()
[all …]
/external/llvm/include/llvm/ADT/
DStringSwitch.h45 StringRef Str; variable
54 : Str(S), Result(nullptr) { } in StringSwitch()
59 if (!Result && N-1 == Str.size() && in Case()
60 (std::memcmp(S, Str.data(), N-1) == 0)) { in Case()
70 if (!Result && Str.size() >= N-1 && in EndsWith()
71 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { in EndsWith()
81 if (!Result && Str.size() >= N-1 && in StartsWith()
82 std::memcmp(S, Str.data(), N-1) == 0) { in StartsWith()
94 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases()
95 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) { in Cases()
[all …]
/external/llvm/lib/Support/
DStringRef.cpp142 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument
146 const char *Needle = Str.data(); in find()
147 size_t N = Str.size(); in find()
172 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find()
189 size_t StringRef::rfind(StringRef Str) const { in rfind()
190 size_t N = Str.size(); in rfind()
195 if (substr(i, N).equals(Str)) in rfind()
342 size_t StringRef::count(StringRef Str) const { in count()
344 size_t N = Str.size(); in count()
348 if (substr(i, N).equals(Str)) in count()
[all …]
DScaledNumber.cpp138 static void appendDigit(std::string &Str, unsigned D) { in appendDigit() argument
140 Str += '0' + D % 10; in appendDigit()
143 static void appendNumber(std::string &Str, uint64_t N) { in appendNumber() argument
145 appendDigit(Str, N % 10); in appendNumber()
239 std::string Str; in toString() local
242 appendNumber(Str, Above0); in toString()
243 DigitsOut = Str.size(); in toString()
245 appendDigit(Str, 0); in toString()
246 std::reverse(Str.begin(), Str.end()); in toString()
250 return Str + ".0"; in toString()
[all …]
/external/llvm/tools/llvm-mc/
DDisassembler.cpp80 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument
82 if (Str.empty()) in SkipToToken()
86 if (size_t Pos = Str.find_first_not_of(" \t\r\n,")) { in SkipToToken()
87 Str = Str.substr(Pos); in SkipToToken()
92 if (Str[0] == '#') { in SkipToToken()
93 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken()
102 StringRef &Str, in ByteArrayFromString() argument
104 while (SkipToToken(Str)) { in ByteArrayFromString()
106 if (Str[0] == '[' || Str[0] == ']') in ByteArrayFromString()
110 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp147 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument
154 const char *Needle = Str.data(); in find()
155 size_t N = Str.size(); in find()
181 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find()
196 size_t StringRef::find_lower(StringRef Str, size_t From) const { in find_lower() argument
198 while (This.size() >= Str.size()) { in find_lower()
199 if (This.startswith_lower(Str)) in find_lower()
222 size_t StringRef::rfind(StringRef Str) const { in rfind()
223 size_t N = Str.size(); in rfind()
228 if (substr(i, N).equals(Str)) in rfind()
[all …]
/external/llvm/unittests/ADT/
DStringRefTest.cpp109 StringRef Str("hello"); in TEST() local
110 EXPECT_EQ("lo", Str.substr(3)); in TEST()
111 EXPECT_EQ("", Str.substr(100)); in TEST()
112 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST()
113 EXPECT_EQ("o", Str.substr(4, 10)); in TEST()
117 StringRef Str("hello"); in TEST() local
118 EXPECT_EQ("l", Str.slice(2, 3)); in TEST()
119 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST()
120 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST()
121 EXPECT_EQ("", Str.slice(2, 1)); in TEST()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceInst.cpp648 Ostream &Str = Func->getContext()->getStrDump(); in dumpDecorated() local
654 Str << "[XXX]"; in dumpDecorated()
656 Str << llvm::format("[%3d]", Number); in dumpDecorated()
658 Str << " "; in dumpDecorated()
660 Str << " //"; in dumpDecorated()
663 Str << "\n"; in dumpDecorated()
669 Ostream &Str = Func->getContext()->getStrDump(); in dump() local
671 Str << " =~ " << getInstName() << " "; in dump()
678 Ostream &Str = Func->getContext()->getStrDump(); in dumpExtras() local
686 Str << " // LIVEEND={"; in dumpExtras()
[all …]
DIceELFSection.h85 template <bool IsELF64> void writeHeader(ELFStreamer &Str);
110 void appendData(ELFStreamer &Str, const llvm::StringRef MoreData);
124 void appendData(ELFStreamer &Str, const llvm::StringRef MoreData);
126 void appendZeros(ELFStreamer &Str, SizeT NumBytes);
128 void appendRelocationOffset(ELFStreamer &Str, bool IsRela,
134 void padToAlignment(ELFStreamer &Str, Elf64_Xword Align);
198 void writeData(ELFStreamer &Str, bool IsELF64);
207 void writeSymbolMap(ELFStreamer &Str, const SymMap &Map);
246 void writeData(ELFStreamer &Str, const ELFSymbolTableSection *SymTab);
269 void add(const std::string &Str);
[all …]
DIceInstX8664.cpp61 void TargetX8664Traits::X86Operand::dump(const Cfg *, Ostream &Str) const { in dump()
63 Str << "<OperandX8664>"; in dump()
122 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local
128 Str << Disp; in emit()
132 Str << CI->getValue() + Disp; in emit()
143 Str << "(%rip)"; in emit()
145 Str << "(%eip)"; in emit()
156 Str << "("; in emit()
179 Str << ","; in emit()
182 Str << "," << (1u << Shift); in emit()
[all …]
DIceInstX8632.cpp72 void TargetX8632Traits::X86Operand::dump(const Cfg *, Ostream &Str) const { in dump()
74 Str << "<OperandX8632>"; in dump()
149 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local
152 Str << "%" << X8632::Traits::InstSegmentRegNames[SegmentReg] << ":"; in emit()
159 Str << Disp; in emit()
163 Str << CI->getValue() + Disp; in emit()
175 Str << "("; in emit()
179 Str << ","; in emit()
182 Str << "," << (1u << getShift()); in emit()
184 Str << ")"; in emit()
[all …]
DIceInstARM32.cpp111 void InstARM32Pred::dumpOpcodePred(Ostream &Str, const char *Opcode, in dumpOpcodePred() argument
113 Str << Opcode << getPredicate() << "." << Ty; in dumpOpcodePred()
165 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopGPR() local
168 Str << "\t" << Opcode; in emitUnaryopGPR()
170 Str << getWidthString(SrcTy); in emitUnaryopGPR()
171 Str << Instr->getPredicate() << "\t"; in emitUnaryopGPR()
173 Str << ", "; in emitUnaryopGPR()
179 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopFP() local
182 Str << "\t" << Opcode << Instr->getPredicate(); in emitUnaryopFP()
185 Str << getFpWidthString(SrcTy); in emitUnaryopFP()
[all …]
DIceInstMIPS32.h34 inline void emitRelocOp(Ostream &Str, RelocOp Reloc) { in emitRelocOp() argument
39 Str << "%hi"; in emitRelocOp()
42 Str << "%lo"; in emitRelocOp()
64 void dump(const Cfg *, Ostream &Str) const override { in dump() argument
66 Str << "<OperandMIPS32>"; in dump()
90 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local
91 Str << "$fcc" << static_cast<uint16_t>(FpCondCode); in emit()
98 void dump(const Cfg *Func, Ostream &Str) const override { in dump() argument
102 Str << "$fcc" << static_cast<uint16_t>(FpCondCode); in dump()
152 void dump(const Cfg *Func, Ostream &Str) const override { in dump() argument
[all …]
DIceInstX86BaseImpl.h404 Ostream &Str = Func->getContext()->getStrDump(); in dump() local
405 Str << "[" << Traits::TargetName << "] "; in dump()
413 Ostream &Str = Func->getContext()->getStrDump(); in dump() local
415 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump()
417 Str << ", "; in dump()
419 Str << ", beacon="; in dump()
429 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local
430 Str << "\t" in emit()
450 Ostream &Str = Func->getContext()->getStrDump(); in dump() local
452 Str << " = call getIP"; in dump()
[all …]
DIceELFSection.cpp27 void ELFTextSection::appendData(ELFStreamer &Str, in appendData() argument
29 Str.writeBytes(MoreData); in appendData()
35 void ELFDataSection::appendData(ELFStreamer &Str, in appendData() argument
37 Str.writeBytes(MoreData); in appendData()
41 void ELFDataSection::appendZeros(ELFStreamer &Str, SizeT NumBytes) { in appendZeros() argument
42 Str.writeZeroPadding(NumBytes); in appendZeros()
46 void ELFDataSection::appendRelocationOffset(ELFStreamer &Str, bool IsRela, in appendRelocationOffset() argument
50 appendZeros(Str, RelocAddrSize); in appendRelocationOffset()
54 Str.writeLE32(RelocOffset); in appendRelocationOffset()
58 void ELFDataSection::padToAlignment(ELFStreamer &Str, Elf64_Xword Align) { in padToAlignment() argument
[all …]
/external/syslinux/gnu-efi/gnu-efi-3.0/lib/
Ddpath.c468 IN OUT POOL_PRINT *Str, in _DevPathPci() argument
475 CatPrint(Str, L"Pci(%x|%x)", Pci->Device, Pci->Function); in _DevPathPci()
480 IN OUT POOL_PRINT *Str, in _DevPathPccard() argument
487 CatPrint(Str, L"Pccard(Socket%x)", Pccard->SocketNumber); in _DevPathPccard()
492 IN OUT POOL_PRINT *Str, in _DevPathMemMap() argument
499 CatPrint(Str, L"MemMap(%d:%x-%x)", in _DevPathMemMap()
508 IN OUT POOL_PRINT *Str, in _DevPathController() argument
515 CatPrint(Str, L"Ctrl(%d)", in _DevPathController()
522 IN OUT POOL_PRINT *Str, in _DevPathVendor() argument
538 CatPrint(Str, L"Ven%s(%g", Type, &Vendor->Guid); in _DevPathVendor()
[all …]
/external/clang/tools/libclang/
DCXString.cpp46 CXString Str; in createEmpty() local
47 Str.data = ""; in createEmpty()
48 Str.private_flags = CXS_Unmanaged; in createEmpty()
49 return Str; in createEmpty()
53 CXString Str; in createNull() local
54 Str.data = nullptr; in createNull()
55 Str.private_flags = CXS_Unmanaged; in createNull()
56 return Str; in createNull()
63 CXString Str; in createRef() local
64 Str.data = String; in createRef()
[all …]
/external/swiftshader/third_party/LLVM/tools/llvm-mc/
DDisassembler.cpp96 StringRef &Str, in ByteArrayFromString() argument
98 while (!Str.empty()) { in ByteArrayFromString()
100 if (size_t Pos = Str.find_first_not_of(" \t\r")) { in ByteArrayFromString()
101 Str = Str.substr(Pos); in ByteArrayFromString()
107 if (Str[0] == '\n' || Str[0] == '#') { in ByteArrayFromString()
110 if (Str[0] == '\n') { in ByteArrayFromString()
111 Str = Str.substr(1); in ByteArrayFromString()
113 Str = Str.substr(Str.find_first_of('\n')); in ByteArrayFromString()
114 if (!Str.empty()) in ByteArrayFromString()
115 Str = Str.substr(1); in ByteArrayFromString()
[all …]
/external/libtextclassifier/util/hash/
Dfarmhash.h162 template <typename Str>
163 inline size_t Hash(const Str& s) { in Hash()
171 template <typename Str>
172 inline uint32_t Hash32(const Str& s) { in Hash32()
181 template <typename Str>
182 inline uint32_t Hash32WithSeed(const Str& s, uint32_t seed) { in Hash32WithSeed()
191 template <typename Str>
192 inline uint64_t Hash64(const Str& s) { in Hash64()
201 template <typename Str>
202 inline uint64_t Hash64WithSeed(const Str& s, uint64_t seed) { in Hash64WithSeed()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DMangler.cpp48 static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) { in NameNeedsEscaping() argument
49 assert(!Str.empty() && "Cannot create an empty MCSymbol"); in NameNeedsEscaping()
53 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') in NameNeedsEscaping()
59 for (unsigned i = 0, e = Str.size(); i != e; ++i) in NameNeedsEscaping()
60 if (!isAcceptableChar(Str[i], AllowPeriod)) in NameNeedsEscaping()
67 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str, in appendMangledName() argument
71 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') { in appendMangledName()
72 MangleLetter(OutName, Str[0]); in appendMangledName()
73 Str = Str.substr(1); in appendMangledName()
77 for (unsigned i = 0, e = Str.size(); i != e; ++i) { in appendMangledName()
[all …]
/external/webrtc/webrtc/libjingle/xmpp/
Djid_unittest.cc21 EXPECT_EQ("dude", jid.Str()); in TEST()
22 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST()
33 EXPECT_EQ("walter@dude", jid.Str()); in TEST()
34 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST()
45 EXPECT_EQ("dude/bowlingalley", jid.Str()); in TEST()
46 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST()
57 EXPECT_EQ("walter@dude/bowlingalley", jid.Str()); in TEST()
58 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST()
69 EXPECT_EQ("", jid.Str()); in TEST()
70 EXPECT_EQ("", jid.BareJid().Str()); in TEST()
[all …]
/external/webrtc/webrtc/libjingle/xmllite/
Dxmlbuilder_unittest.cc27 EXPECT_EQ("<testing/>", builder.BuiltElement()->Str()); in TEST()
33 EXPECT_EQ("<testing a=\"b\"/>", builder.BuiltElement()->Str()); in TEST()
40 builder.BuiltElement()->Str()); in TEST()
48 builder.BuiltElement()->Str()); in TEST()
59 "</second></top>", builder.BuiltElement()->Str()); in TEST()
65 EXPECT_EQ("<testing a=\"&gt;\"/>", builder.BuiltElement()->Str()); in TEST()
72 builder.BuiltElement()->Str()); in TEST()
79 builder.BuiltElement()->Str()); in TEST()
86 builder.BuiltElement()->Str()); in TEST()
94 builder.BuiltElement()->Str()); in TEST()
[all …]
Dxmlparser_unittest.cc53 std::string Str() { in Str() function in XmlParserTestHandler
71 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
78 EXPECT_EQ("START (testing, a='b') END ", handler.Str()); in TEST()
83 EXPECT_EQ("START (testing, e='', long='some text') END ", handler.Str()); in TEST()
93 "END END END ", handler.Str()); in TEST()
103 handler.Str()); in TEST()
111 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
117 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
124 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
133 handler.Str()); in TEST()
[all …]

12345678910>>...28