Home
last modified time | relevance | path

Searched refs:Str2 (Results 1 – 15 of 15) sorted by relevance

/external/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp435 StringRef Str2 = Str; in consumeUnsignedInteger() local
437 while (!Str2.empty()) { in consumeUnsignedInteger()
439 if (Str2[0] >= '0' && Str2[0] <= '9') in consumeUnsignedInteger()
440 CharVal = Str2[0] - '0'; in consumeUnsignedInteger()
441 else if (Str2[0] >= 'a' && Str2[0] <= 'z') in consumeUnsignedInteger()
442 CharVal = Str2[0] - 'a' + 10; in consumeUnsignedInteger()
443 else if (Str2[0] >= 'A' && Str2[0] <= 'Z') in consumeUnsignedInteger()
444 CharVal = Str2[0] - 'A' + 10; in consumeUnsignedInteger()
461 Str2 = Str2.substr(1); in consumeUnsignedInteger()
466 if (Str.size() == Str2.size()) in consumeUnsignedInteger()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DStringRef.cpp421 StringRef Str2 = Str; in consumeUnsignedInteger() local
423 while (!Str2.empty()) { in consumeUnsignedInteger()
425 if (Str2[0] >= '0' && Str2[0] <= '9') in consumeUnsignedInteger()
426 CharVal = Str2[0] - '0'; in consumeUnsignedInteger()
427 else if (Str2[0] >= 'a' && Str2[0] <= 'z') in consumeUnsignedInteger()
428 CharVal = Str2[0] - 'a' + 10; in consumeUnsignedInteger()
429 else if (Str2[0] >= 'A' && Str2[0] <= 'Z') in consumeUnsignedInteger()
430 CharVal = Str2[0] - 'A' + 10; in consumeUnsignedInteger()
447 Str2 = Str2.substr(1); in consumeUnsignedInteger()
452 if (Str.size() == Str2.size()) in consumeUnsignedInteger()
[all …]
/external/llvm/unittests/DebugInfo/PDB/
DMappedBlockStreamTest.cpp206 StringRef Str2; in TEST() local
212 EXPECT_NO_ERROR(R.readFixedString(Str2, 3)); in TEST()
213 EXPECT_EQ(Str2, StringRef("CDE")); in TEST()
214 EXPECT_EQ(Str1.data() + 2, Str2.data()); in TEST()
226 StringRef Str2; in TEST() local
232 EXPECT_NO_ERROR(R.readFixedString(Str2, 4)); in TEST()
233 EXPECT_EQ(Str2, StringRef("EFGH")); in TEST()
/external/llvm/unittests/ADT/
DStringRefTest.cpp286 StringRef Str2(" hello "); in TEST() local
290 EXPECT_EQ(StringRef(" hello"), Str2.rtrim()); in TEST()
293 EXPECT_EQ(StringRef("hello "), Str2.ltrim()); in TEST()
296 EXPECT_EQ(StringRef("hello"), Str2.trim()); in TEST()
602 StringRef Str2 = "bye"; in TEST() local
604 StringRef Str2c = Str2.copy(Alloc); in TEST()
607 EXPECT_TRUE(Str2.equals(Str2c)); in TEST()
608 EXPECT_NE(Str2.data(), Str2c.data()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/MSF/
DMappedBlockStreamTest.cpp211 StringRef Str2; in TEST() local
217 EXPECT_THAT_ERROR(R.readFixedString(Str2, 3), Succeeded()); in TEST()
218 EXPECT_EQ(Str2, StringRef("CDE")); in TEST()
219 EXPECT_EQ(Str1.data() + 2, Str2.data()); in TEST()
232 StringRef Str2; in TEST() local
238 EXPECT_THAT_ERROR(R.readFixedString(Str2, 4), Succeeded()); in TEST()
239 EXPECT_EQ(Str2, StringRef("EFGH")); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DStringRefTest.cpp333 StringRef Str2(" hello "); in TEST() local
337 EXPECT_EQ(StringRef(" hello"), Str2.rtrim()); in TEST()
340 EXPECT_EQ(StringRef("hello "), Str2.ltrim()); in TEST()
343 EXPECT_EQ(StringRef("hello"), Str2.trim()); in TEST()
950 StringRef Str2 = "bye"; in TEST() local
952 StringRef Str2c = Str2.copy(Alloc); in TEST()
955 EXPECT_TRUE(Str2.equals(Str2c)); in TEST()
956 EXPECT_NE(Str2.data(), Str2c.data()); in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp337 std::string Str1, Str2; in CallOptimizer() local
339 bool HasStr2 = GetConstantStringInfo(Str2P, Str2); in CallOptimizer()
344 StringRef(Str1).compare(Str2)); in CallOptimizer()
350 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in CallOptimizer()
400 std::string Str1, Str2; in CallOptimizer() local
402 bool HasStr2 = GetConstantStringInfo(Str2P, Str2); in CallOptimizer()
407 StringRef SubStr2 = StringRef(Str2).substr(0, Length); in CallOptimizer()
415 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in CallOptimizer()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp254 StringRef Str1, Str2; in optimizeStrCmp() local
256 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp()
260 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp()
266 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in optimizeStrCmp()
300 StringRef Str1, Str2; in optimizeStrNCmp() local
302 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp()
307 StringRef SubStr2 = Str2.substr(0, Length); in optimizeStrNCmp()
315 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in optimizeStrNCmp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp300 StringRef Str1, Str2; in optimizeStrCmp() local
302 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp()
306 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp()
312 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in optimizeStrCmp()
346 StringRef Str1, Str2; in optimizeStrNCmp() local
348 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp()
353 StringRef SubStr2 = Str2.substr(0, Length); in optimizeStrNCmp()
361 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in optimizeStrNCmp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp835 SmallString<128> Str2; in emitGlobals() local
836 raw_svector_ostream OS2(Str2); in emitGlobals()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp880 SmallString<128> Str2; in emitGlobals() local
881 raw_svector_ostream OS2(Str2); in emitGlobals()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp4433 StringRef Str2 = parseStringToEndOfStatement(); in parseDirectiveIfc() local
4440 TheCondState.CondMet = ExpectEqual == (Str1.trim() == Str2.trim()); in parseDirectiveIfc()
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp2363 StringRef Str2) { in printFields() argument
2367 OS << Str2 << "\n"; in printFields()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DAsmParser.cpp4936 StringRef Str2 = parseStringToEndOfStatement(); in parseDirectiveIfc() local
4942 TheCondState.CondMet = ExpectEqual == (Str1.trim() == Str2.trim()); in parseDirectiveIfc()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DELFDumper.cpp2453 StringRef Str2) { in printFields() argument
2457 OS << Str2 << "\n"; in printFields()