Home
last modified time | relevance | path

Searched refs:Keys (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/libcxx/benchmarks/
H A Dordered_set.bench.cpp40 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 Dmap.bench.cpp51 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 DReverseIterationTest.cpp37 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 DItaniumManglingCanonicalizerTest.cpp308 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 DReplacementsYaml.h52 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 DDiagnosticsYaml.h85 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 DTextStub.cpp1024 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 DDebugCheckers.cpp273 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 DDenseMapTest.cpp651 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 DStringSetTest.cpp26 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 DStringMapTest.cpp323 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 DAtomicChange.cpp70 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 DDynoStats.cpp68 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 DUnicodeNameMappingGenerator.cpp147 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 DRewriteObjCFoundationAPI.cpp569 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 DConfigYAML.cpp258 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 DSarifTest.cpp87 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 DASTMatchFinder.cpp1145 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 Dsanitizer_dense_map_test.cpp534 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 DMessageObjects.cpp77 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 DClangIncludeFixer.cpp51 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 DVirtualFileSystem.cpp1635 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 DSIMachineFunctionInfo.h167 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 DDynoStats.h116 bool lessThan(const DynoStats &Other, ArrayRef<Category> Keys) const;
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTokens.cpp991 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()

12