| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | StringSwitchTest.cpp | 119 return llvm::StringSwitch<Suffix>(S) in TEST() 120 .EndsWith("able", Suffix::Possible) in TEST() 121 .EndsWith("ed", Suffix::PastTense) in TEST() 122 .EndsWith("ation", Suffix::Process) in TEST() 123 .EndsWith("ing", Suffix::InProgressAction) in TEST() 124 .Default(Suffix::Unknown); in TEST() 139 return llvm::StringSwitch<Suffix>(S) in TEST() 140 .EndsWithLower("able", Suffix::Possible) in TEST() 141 .EndsWithLower("ed", Suffix::PastTense) in TEST() 142 .EndsWithLower("ation", Suffix::Process) in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | TableGenBackend.cpp | 23 StringRef Suffix) { in printLine() argument 25 assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) && in printLine() 28 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size(); in printLine() 31 OS << Suffix << '\n'; in printLine() 37 StringRef Suffix(" *|"); in emitSourceFileHeader() local 38 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader() 39 size_t PSLen = Prefix.size() + Suffix.size(); in emitSourceFileHeader() 44 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); in emitSourceFileHeader() 47 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader() 49 Suffix); in emitSourceFileHeader() [all …]
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | DumpFunctionPass.cpp | 31 static void runDumpFunction(llvm::Function &F, StringRef Suffix) { in runDumpFunction() argument 37 std::string Dumpfile = (Twine(Stem) + "-" + FName + Suffix + ".ll").str(); in runDumpFunction() 91 std::string Suffix; member in __anon34c286f40111::DumpFunctionWrapperPass 96 explicit DumpFunctionWrapperPass() : FunctionPass(ID), Suffix("-dump") {} in DumpFunctionWrapperPass() 98 explicit DumpFunctionWrapperPass(std::string Suffix) in DumpFunctionWrapperPass() argument 99 : FunctionPass(ID), Suffix(std::move(Suffix)) {} in DumpFunctionWrapperPass() 108 runDumpFunction(F, Suffix); in runOnFunction() 117 FunctionPass *polly::createDumpFunctionWrapperPass(std::string Suffix) { in createDumpFunctionWrapperPass() argument 118 return new DumpFunctionWrapperPass(std::move(Suffix)); in createDumpFunctionWrapperPass() 123 runDumpFunction(F, Suffix); in run()
|
| H A D | GICHelper.cpp | 156 const std::string &Suffix) { in getIslCompatibleName() argument 157 std::string S = Prefix + Middle + Suffix; in getIslCompatibleName() 164 const std::string &Suffix, in getIslCompatibleName() argument 173 S += Suffix; in getIslCompatibleName() 181 const std::string &Suffix, in getIslCompatibleName() argument 190 return getIslCompatibleName(Prefix, ValStr, Suffix); in getIslCompatibleName()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 144 Result.Suffix = getEndianAdjustedWord(BucketPtr->Suffix); in getBucket() 191 StringRef Suffix = getStringOrInvalid(B.Suffix); in dump() local 193 << Suffix << "'\n"; in dump() 220 Optional<StringRef> Suffix = getString(B.Suffix); in lookupFilename() local 223 if (LLVM_LIKELY(Prefix && Suffix)) { in lookupFilename() 225 DestPath.append(Suffix->begin(), Suffix->end()); in lookupFilename() 245 Optional<StringRef> Suffix = getString(B.Suffix); in reverseLookupFilename() local 246 if (LLVM_LIKELY(Key && Prefix && Suffix)) { in reverseLookupFilename() 249 Buf.append(Suffix->begin(), Suffix->end()); in reverseLookupFilename()
|
| H A D | Preprocessor.cpp | 1190 SmallVector<Token, 32> Suffix; in LexAfterModuleImport() local 1195 Suffix.push_back(Result); in LexAfterModuleImport() 1202 EnterTokens(Suffix); in LexAfterModuleImport() 1229 Suffix.emplace_back(); in LexAfterModuleImport() 1243 Suffix[0].setAnnotationEndLoc(Suffix[0].getLocation()); in LexAfterModuleImport() 1252 EnterTokens(Suffix); in LexAfterModuleImport() 1256 EnterTokens(Suffix); in LexAfterModuleImport() 1293 Suffix.push_back(Result); in LexAfterModuleImport() 1297 EnterTokens(Suffix); in LexAfterModuleImport() 1332 if (!Suffix.empty()) { in LexAfterModuleImport() [all …]
|
| /llvm-project-15.0.7/polly/include/polly/Support/ |
| H A D | DumpFunctionPass.h | 25 llvm::FunctionPass *createDumpFunctionWrapperPass(std::string Suffix); 29 std::string Suffix; member 31 DumpFunctionPass(std::string Suffix) : Suffix(std::move(Suffix)) {} in DumpFunctionPass()
|
| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | StringView.h | 141 bool ends_with(const char Suffix) const { in ends_with() argument 142 return !empty() && back() == Suffix; in ends_with() 146 bool ends_with(StringView Suffix) const { in ends_with() argument 147 return Len >= Suffix.Len && in ends_with() 148 compareMemory(end() - Suffix.Len, Suffix.Data, Suffix.Len) == 0; in ends_with() 282 bool consume_back(StringView Suffix) { in consume_back() argument 283 if (!ends_with(Suffix)) in consume_back() 286 *this = drop_back(Suffix.size()); in consume_back()
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | HeaderMapTestUtils.h | 66 unsigned Suffix) { in addBucket() 67 addBucket(getHash(Str), Key, Prefix, Suffix); in addBucket() 71 unsigned Suffix) { in addBucket() 78 File.Buckets[I].Suffix = Suffix; in addBucket()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | Twine.h | 445 Twine concat(const Twine &Suffix) const; 510 inline Twine Twine::concat(const Twine &Suffix) const { in concat() argument 512 if (isNull() || Suffix.isNull()) in concat() 517 return Suffix; in concat() 518 if (Suffix.isEmpty()) in concat() 525 NewRHS.twine = &Suffix; in concat() 531 if (Suffix.isUnary()) { in concat() 532 NewRHS = Suffix.LHS; in concat() 533 NewRHSKind = Suffix.getLHSKind(); in concat()
|
| H A D | StringRef.h | 301 bool endswith(StringRef Suffix) const { in endswith() argument 302 return Length >= Suffix.Length && in endswith() 303 compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; in endswith() 308 bool endswith_insensitive(StringRef Suffix) const; 706 bool consume_back(StringRef Suffix) { in consume_back() argument 707 if (!endswith(Suffix)) in consume_back() 710 *this = drop_back(Suffix.size()); in consume_back() 716 bool consume_back_insensitive(StringRef Suffix) { in consume_back_insensitive() argument 717 if (!endswith_insensitive(Suffix)) in consume_back_insensitive() 720 *this = drop_back(Suffix.size()); in consume_back_insensitive()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | MipsLinux.cpp | 127 const char *Suffix; in getCompilerRT() local 130 Suffix = ".o"; in getCompilerRT() 133 Suffix = ".a"; in getCompilerRT() 136 Suffix = ".so"; in getCompilerRT() 140 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix)); in getCompilerRT()
|
| H A D | PS4CPU.cpp | 27 const char *Base, const char *Suffix) { in makeArgString() argument 29 return Args.MakeArgString(Twine(StringRef(Prefix), Base) + Suffix); in makeArgString() 93 const char *Suffix) const { in addSanitizerArgs() 95 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs() 107 const char *Suffix) const { in addSanitizerArgs() 109 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | WindowsResource.h | 107 uint16_t getDataVersion() const { return Suffix->DataVersion; } in getDataVersion() 108 uint16_t getLanguage() const { return Suffix->Language; } in getLanguage() 109 uint16_t getMemoryFlags() const { return Suffix->MemoryFlags; } in getMemoryFlags() 110 uint16_t getMajorVersion() const { return Suffix->Version >> 16; } in getMajorVersion() 111 uint16_t getMinorVersion() const { return Suffix->Version; } in getMinorVersion() 112 uint32_t getCharacteristics() const { return Suffix->Characteristics; } in getCharacteristics() 132 const WinResHeaderSuffix *Suffix = nullptr; variable
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | recursive-cxx-member-calls.cpp | 56 bool endswith(StringRef Suffix) const { in endswith() 57 return Length >= Suffix.Length && in endswith() 58 memcmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; in endswith()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kMCInstLower.cpp | 51 StringRef Suffix; in GetSymbolFromOperand() local 53 if (!Suffix.empty()) in GetSymbolFromOperand() 62 assert(Suffix.empty()); in GetSymbolFromOperand() 66 Name += Suffix; in GetSymbolFromOperand()
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | Hexagon.cpp | 216 llvm::StringLiteral Suffix; member 232 return Item->Suffix.data(); in getHexagonCPUSuffix() 237 for (const CPUSuffix &Suffix : Suffixes) in fillValidCPUList() local 238 Values.push_back(Suffix.Name); in fillValidCPUList()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | GlobPattern.h | 38 assert(!Suffix); in isTrivialMatchAll() 53 Optional<StringRef> Suffix; variable
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | Miscompilation.cpp | 62 std::vector<std::string> &Suffix) { in doTest() argument 65 outs() << "Checking to see if '" << getPassesString(Suffix) in doTest() 73 BD.setPassesToRun(Suffix); in doTest() 88 if (Suffix.empty()) { in doTest() 147 if (Suffix.empty()) in doTest() 150 outs() << "Checking to see if '" << getPassesString(Suffix) in doTest() 160 BD.setPassesToRun(Suffix); in doTest() 200 if (!Suffix.empty()) { in doTest() 201 Expected<bool> Ret = TestFuncs(Suffix); in doTest() 462 if (!Suffix.empty()) { in doTest() [all …]
|
| H A D | ListReducer.h | 121 std::vector<ElTy> Suffix(TheList.begin() + Mid, TheList.end()); in reduceList() 123 Expected<TestResult> Result = doTest(Prefix, Suffix); in reduceList() 130 TheList.swap(Suffix); in reduceList()
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | DefinitionBlockSeparatorTest.cpp | 192 std::string Suffix = "enum Bar { FOOBAR, BARFOO };\n" in TEST_F() local 207 removeEmptyLines(Suffix), in TEST_F() 208 Style, Prefix + "\n" + CommentedCode + "\n" + Suffix); in TEST_F() 210 removeEmptyLines(Suffix), in TEST_F() 211 Style, Prefix + "\n" + CommentedCode + Suffix); in TEST_F()
|
| /llvm-project-15.0.7/bolt/include/bolt/Utils/ |
| H A D | NameResolver.h | 46 static std::string append(StringRef UniqueName, StringRef Suffix) { in append() argument 49 return (LHS + Suffix + Twine(Sep) + RHS).str(); in append()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | GlobPattern.cpp | 127 Pat.Suffix = S.drop_front(); in create() 148 if (Suffix) in match() 149 return S.endswith(*Suffix); in match()
|
| /llvm-project-15.0.7/llvm/include/llvm/Testing/Support/ |
| H A D | SupportHelpers.h | 213 TempFile(StringRef Name, StringRef Suffix = "", StringRef Contents = "", 218 EC = llvm::sys::fs::createTemporaryFile(Name, Suffix, fd, Path); 221 if (!Suffix.empty()) { 223 Path.append(Suffix);
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | CodeExtractor.h | 115 std::string Suffix; variable 137 std::string Suffix = ""); 147 std::string Suffix = "");
|