| /llvm-project-15.0.7/libcxx/benchmarks/ |
| H A D | ordered_set.bench.cpp | 40 std::shuffle(std::begin(Keys), std::end(Keys), M); in sortKeysBy() 46 std::vector<uint64_t> Keys; member 59 sortKeysBy(R.Keys, Access); in makeTestingSets() 85 std::vector<uint64_t> Keys(TableSize); in run() local 86 std::iota(Keys.begin(), Keys.end(), uint64_t{0}); in run() 87 sortKeysBy(Keys, Access()); in run() 91 for (auto K : Keys) { in run() 112 for (auto K : Data.Keys) { in run() 133 for (auto K : Data.Keys) { in run() 154 for (auto K : Data.Keys) { in run() [all …]
|
| H A D | map.bench.cpp | 51 std::vector<uint64_t> Keys; member 73 if (shuffle == Shuffle::Keys) in makeTestingSets() 74 std::shuffle(R.Keys.begin(), R.Keys.end(), std::mt19937()); in makeTestingSets() 246 for (auto K : Data.Keys) { in run() 288 for (auto K : Data.Keys) { in run() 319 for (auto K : Data.Keys) { in run() 827 for (auto K : Data.Keys) { in run() 859 for (auto K : Data.Keys) { in run() 891 for (auto K : Data.Keys) { in run() 931 for (auto K : Data.Keys) { in run() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | ReverseIterationTest.cpp | 37 int Keys[] = { 1, 2, 3, 4 }; in TEST() local 40 for (auto Key: Keys) in TEST() 90 PtrLikeInt *Keys[] = { &a, &b, &c, &d }; in TEST() local 94 for (auto *Key : Keys) in TEST() 100 std::reverse(&Keys[0], &Keys[4]); in TEST() 103 for (auto Tuple : zip(Map, Keys)) in TEST() 109 ASSERT_EQ(iter->second, Keys[i]->value); in TEST()
|
| H A D | ItaniumManglingCanonicalizerTest.cpp | 308 std::map<const EquivalenceClass*, CanonKey> Keys; in testTestcases() local 311 Keys.insert({&Class, Canonicalizer.canonicalize(*Class.begin())}); in testTestcases() 315 CanonKey ClassKey = Keys[&Class]; in testTestcases()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 52 Keys(Io, R); in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR() 54 Io.mapRequired("Offset", Keys->Offset); in LLVM_YAML_IS_SEQUENCE_VECTOR() 55 Io.mapRequired("Length", Keys->Length); in LLVM_YAML_IS_SEQUENCE_VECTOR() 56 Io.mapRequired("ReplacementText", Keys->ReplacementText); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | DiagnosticsYaml.h | 85 MappingNormalization<NormalizedDiagnostic, clang::tooling::Diagnostic> Keys( in LLVM_YAML_IS_SEQUENCE_VECTOR() 87 Io.mapRequired("DiagnosticName", Keys->DiagnosticName); in LLVM_YAML_IS_SEQUENCE_VECTOR() 88 Io.mapRequired("DiagnosticMessage", Keys->Message); in LLVM_YAML_IS_SEQUENCE_VECTOR() 89 Io.mapOptional("Notes", Keys->Notes); in LLVM_YAML_IS_SEQUENCE_VECTOR() 90 Io.mapOptional("Level", Keys->DiagLevel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 91 Io.mapOptional("BuildDirectory", Keys->BuildDirectory); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /llvm-project-15.0.7/llvm/lib/TextAPI/ |
| H A D | TextStub.cpp | 1024 IO.mapRequired("archs", Keys->Architectures); in mapKeysToValues() 1026 IO.mapOptional("uuids", Keys->UUIDs); in mapKeysToValues() 1027 IO.mapRequired("platform", Keys->Platforms); in mapKeysToValues() 1046 IO.mapOptional("exports", Keys->Exports); in mapKeysToValues() 1048 IO.mapOptional("undefineds", Keys->Undefineds); in mapKeysToValues() 1055 IO.mapRequired("tbd-version", Keys->TBDVersion); in mapKeysToValuesV4() 1056 IO.mapRequired("targets", Keys->Targets); in mapKeysToValuesV4() 1057 IO.mapOptional("uuids", Keys->UUIDs); in mapKeysToValuesV4() 1072 IO.mapOptional("exports", Keys->Exports); in mapKeysToValuesV4() 1073 IO.mapOptional("reexports", Keys->Reexports); in mapKeysToValuesV4() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DebugCheckers.cpp | 273 SmallVector<const Table::MapEntryTy *, 32> Keys; in checkEndOfTranslationUnit() local 276 Keys.push_back(&*I); in checkEndOfTranslationUnit() 277 llvm::array_pod_sort(Keys.begin(), Keys.end(), compareEntry); in checkEndOfTranslationUnit() 280 for (unsigned I = 0, E = Keys.size(); I != E; ++I) in checkEndOfTranslationUnit() 281 llvm::errs() << Keys[I]->getKey() << " = " in checkEndOfTranslationUnit() 282 << (Keys[I]->second.empty() ? "\"\"" : Keys[I]->second) in checkEndOfTranslationUnit()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | DenseMapTest.cpp | 651 int Keys[3] = {0, 0, 0}; in TEST() local 697 B Keys[3] = {{0}, {1}, {2}}; in TEST() local 698 Map.insert({Keys[0], 1}); in TEST() 699 Map.insert({Keys[1], 2}); in TEST() 700 Map.insert({Keys[2], 3}); in TEST() 701 EXPECT_EQ(Map.count(Keys[0]), 1u); in TEST() 702 EXPECT_EQ(Map[Keys[0]], 1); in TEST() 703 EXPECT_EQ(Map[Keys[1]], 2); in TEST() 704 EXPECT_EQ(Map[Keys[2]], 3); in TEST() 706 EXPECT_EQ(Map.find(Keys[0]), Map.end()); in TEST() [all …]
|
| H A D | StringSetTest.cpp | 26 auto Keys = to_vector<4>(Set.keys()); in TEST_F() local 27 llvm::sort(Keys); in TEST_F() 30 EXPECT_EQ(Expected, Keys); in TEST_F()
|
| H A D | StringMapTest.cpp | 323 std::vector<StringRef> Keys{Map.keys().begin(), Map.keys().end()}; in TEST_F() local 324 llvm::sort(Keys); in TEST_F() 327 EXPECT_EQ(Expected, Keys); in TEST_F() 337 auto Keys = to_vector<4>(Map.keys()); in TEST_F() local 338 llvm::sort(Keys); in TEST_F() 341 EXPECT_EQ(Expected, Keys); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 70 Keys(Io, Doc); in mapping() local 71 Io.mapRequired("Key", Keys->Key); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 73 Io.mapRequired("Error", Keys->Error); in mapping() 74 Io.mapRequired("InsertedHeaders", Keys->InsertedHeaders); in mapping() 75 Io.mapRequired("RemovedHeaders", Keys->RemovedHeaders); in mapping() 76 Io.mapRequired("Replacements", Keys->Replaces); in mapping()
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | DynoStats.cpp | 68 ArrayRef<Category> Keys) const { in lessThan() 70 Keys.begin(), Keys.end(), Keys.begin(), Keys.end(), in lessThan()
|
| /llvm-project-15.0.7/llvm/utils/UnicodeData/ |
| H A D | UnicodeNameMappingGenerator.cpp | 147 std::set<std::string> Keys; in getNameFragments() local 148 collectKeys(Root.get(), Keys); in getNameFragments() 149 return Keys; in getNameFragments() 296 void collectKeys(Node *N, std::set<std::string> &Keys) { in collectKeys() argument 297 Keys.insert(N->Name); in collectKeys() 299 collectKeys(Child.get(), Keys); in collectKeys()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 569 SmallVector<const Expr *, 8> Keys; in rewriteToDictionaryLiteral() local 570 if (!getNSArrayObjects(Msg->getArg(1), NS, Keys)) in rewriteToDictionaryLiteral() 573 if (Vals.size() != Keys.size()) in rewriteToDictionaryLiteral() 583 objectifyExpr(Keys[i], commit); in rewriteToDictionaryLiteral() 586 SourceRange KeyRange = Keys[i]->getSourceRange(); in rewriteToDictionaryLiteral() 593 SourceRange ArgRange(Keys.front()->getBeginLoc(), Keys.back()->getEndLoc()); in rewriteToDictionaryLiteral() 625 SmallVector<const Expr *, 8> Keys; in shouldNotRewriteImmediateMessageArgs() local 626 if (!getNSArrayObjects(Msg->getArg(1), NS, Keys)) in shouldNotRewriteImmediateMessageArgs() 629 if (Vals.size() != Keys.size()) in shouldNotRewriteImmediateMessageArgs()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ConfigYAML.cpp | 258 std::vector<std::pair<llvm::StringRef, std::function<void(Node &)>>> Keys; member in clang::clangd::config::__anon32148bf40111::Parser::DictParser 270 for (const auto &Entry : Keys) { in handle() 274 Keys.emplace_back(Key, std::move(Parse)); in handle() 311 for (const auto &Handler : Keys) { in parse() 335 for (const auto &KeyAndHandler : Keys) in warnUnknownKeys()
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SarifTest.cpp | 87 std::vector<StringRef> Keys(EmptyDoc.size()); in TEST_F() local 88 std::transform(EmptyDoc.begin(), EmptyDoc.end(), Keys.begin(), in TEST_F() 92 ASSERT_THAT(Keys, testing::UnorderedElementsAre("$schema", "version")); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 1145 std::vector<MatchKey> Keys; in matchesAnyAncestorOf() local 1148 for (const auto &Key : Keys) { in matchesAnyAncestorOf() 1161 Keys.emplace_back(); in matchesAnyAncestorOf() 1162 Keys.back().MatcherID = Matcher.getID(); in matchesAnyAncestorOf() 1163 Keys.back().Node = Node; in matchesAnyAncestorOf() 1164 Keys.back().BoundNodes = *Builder; in matchesAnyAncestorOf() 1165 Keys.back().Traversal = Ctx.getParentMapContext().getTraversalKind(); in matchesAnyAncestorOf() 1166 Keys.back().Type = MatchType::Ancestors; in matchesAnyAncestorOf() 1169 MemoizationMap::iterator I = ResultCache.find(Keys.back()); in matchesAnyAncestorOf() 1171 Keys.pop_back(); // Don't populate the cache for the matching node! in matchesAnyAncestorOf()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_dense_map_test.cpp | 534 int Keys[3] = {0, 0, 0}; in TEST() local 535 IncompleteStruct *K1 = reinterpret_cast<IncompleteStruct *>(&Keys[0]); in TEST() 536 IncompleteStruct *K2 = reinterpret_cast<IncompleteStruct *>(&Keys[1]); in TEST() 537 IncompleteStruct *K3 = reinterpret_cast<IncompleteStruct *>(&Keys[2]); in TEST()
|
| /llvm-project-15.0.7/lldb/unittests/tools/lldb-server/tests/ |
| H A D | MessageObjects.cpp | 77 auto Keys = KeysObj->GetAsArray(); in parseRegisters() local 78 for (size_t i = 0; i < Keys->GetSize(); i++) { in parseRegisters() 80 Keys->GetItemAtIndexAsString(i, KeyStr); in parseRegisters()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/tool/ |
| H A D | ClangIncludeFixer.cpp | 51 MappingNormalization<NormalizedRange, tooling::Range> Keys(IO, Info); in mapping() local 52 IO.mapRequired("Offset", Keys->Offset); in mapping() 53 IO.mapRequired("Length", Keys->Length); in mapping()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | VirtualFileSystem.cpp | 1635 DenseMap<StringRef, KeyStatus> &Keys) { in checkDuplicateOrUnknownKey() argument 1636 if (!Keys.count(Key)) { in checkDuplicateOrUnknownKey() 1640 KeyStatus &S = Keys[Key]; in checkDuplicateOrUnknownKey() 1651 for (const auto &I : Keys) { in checkMissingKeys() 1754 DenseMap<StringRef, KeyStatus> Keys(std::begin(Fields), std::end(Fields)); in parseEntry() local 1773 if (!checkDuplicateOrUnknownKey(I.getKey(), Key, Keys)) in parseEntry() 1862 if (!checkMissingKeys(N, Keys)) in parseEntry() 1981 if (!checkDuplicateOrUnknownKey(I.getKey(), Key, Keys)) in parse() 2026 if (Keys["redirecting-with"].Seen) { in parse() 2042 if (Keys["fallthrough"].Seen) { in parse() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIMachineFunctionInfo.h | 167 auto Keys = YamlIO.keys(); 168 if (is_contained(Keys, "reg")) { 171 } else if (is_contained(Keys, "offset"))
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | DynoStats.h | 116 bool lessThan(const DynoStats &Other, ArrayRef<Category> Keys) const;
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 991 std::vector<FileID> Keys; in dumpForTests() local 993 Keys.push_back(F.first); in dumpForTests() 994 llvm::sort(Keys); in dumpForTests() 996 for (FileID ID : Keys) { in dumpForTests()
|