Home
last modified time | relevance | path

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

/external/llvm/unittests/ADT/
DStringRefTest.cpp233 StringRef Str2(" hello "); in TEST() local
237 EXPECT_EQ(StringRef(" hello"), Str2.rtrim()); in TEST()
240 EXPECT_EQ(StringRef("hello "), Str2.ltrim()); in TEST()
243 EXPECT_EQ(StringRef("hello"), Str2.trim()); in TEST()
540 StringRef Str2 = "bye"; in TEST() local
542 StringRef Str2c = Str2.copy(Alloc); in TEST()
545 EXPECT_TRUE(Str2.equals(Str2c)); in TEST()
546 EXPECT_NE(Str2.data(), Str2c.data()); in TEST()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp370 StringRef Str1, Str2; in optimizeStrCmp() local
372 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp()
376 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp()
382 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in optimizeStrCmp()
425 StringRef Str1, Str2; in optimizeStrNCmp() local
427 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp()
432 StringRef SubStr2 = Str2.substr(0, Length); in optimizeStrNCmp()
440 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in optimizeStrNCmp()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp858 SmallString<128> Str2; in emitGlobals() local
859 raw_svector_ostream OS2(Str2); in emitGlobals()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp3932 StringRef Str2 = parseStringToEndOfStatement(); in parseDirectiveIfc() local
3939 TheCondState.CondMet = ExpectEqual == (Str1.trim() == Str2.trim()); in parseDirectiveIfc()