Searched refs:Str2 (Results 1 – 7 of 7) sorted by relevance
/external/llvm/unittests/DebugInfo/PDB/ |
D | MappedBlockStreamTest.cpp | 206 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/ |
D | StringRefTest.cpp | 286 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/lib/Transforms/Scalar/ |
D | SimplifyLibCalls.cpp | 337 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/ |
D | SimplifyLibCalls.cpp | 254 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/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 880 SmallString<128> Str2; in emitGlobals() local 881 raw_svector_ostream OS2(Str2); in emitGlobals()
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 4433 StringRef Str2 = parseStringToEndOfStatement(); in parseDirectiveIfc() local 4440 TheCondState.CondMet = ExpectEqual == (Str1.trim() == Str2.trim()); in parseDirectiveIfc()
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 2363 StringRef Str2) { in printFields() argument 2367 OS << Str2 << "\n"; in printFields()
|