| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_dense_map_test.cpp | 110 typename T::key_type getKey(int i = 0) { in getKey() function in __anona16976e80111::DenseMapTest 137 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST() 140 this->Map.lookup(this->getKey())); in TYPED_TEST() 152 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 159 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST() 167 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 176 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 185 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 186 this->Map.erase(this->getKey()); in TYPED_TEST() 202 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | DenseMapTest.cpp | 86 typename T::key_type getKey(int i = 0) { in getKey() function in __anon07952c110111::DenseMapTest 123 this->Map.lookup(this->getKey())); in TYPED_TEST() 136 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 145 EXPECT_EQ(this->getKey(), it->first); in TYPED_TEST() 151 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST() 159 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 169 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 179 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 180 this->Map.erase(this->getKey()); in TYPED_TEST() 196 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SymbolRewriter.cpp | 300 Key = dyn_cast<yaml::ScalarNode>(Entry.getKey()); in parseEntry() 302 YS.printError(Entry.getKey(), "rewrite type must be a scalar"); in parseEntry() 320 YS.printError(Entry.getKey(), "unknown rewrite type"); in parseEntry() 340 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteFunctionDescriptor() 358 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteFunctionDescriptor() 371 YS.printError(Field.getKey(), "unknown key for function"); in parseRewriteFunctionDescriptor() 409 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteGlobalVariableDescriptor() 427 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteGlobalVariableDescriptor() 472 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteGlobalAliasDescriptor() 490 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteGlobalAliasDescriptor() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyModule.cpp | 28 if (Context->isCheckEnabled(Factory.getKey())) in createChecks() 29 Checks.emplace_back(Factory.getValue()(Factory.getKey(), Context)); in createChecks() 39 if (!Context->isCheckEnabled(Factory.getKey())) in createChecksForLanguage() 42 Factory.getValue()(Factory.getKey(), Context); in createChecksForLanguage()
|
| H A D | ClangTidyCheck.cpp | 122 if (auto Result = getAsBool(Iter->getValue().Value, Iter->getKey())) in getLocalOrGlobal() 124 diagnoseBadBooleanOption(Iter->getKey(), Iter->getValue().Value); in getLocalOrGlobal() 182 diagnoseBadEnumOption(Iter->getKey(), Iter->getValue().Value, Closest); in getEnumInt() 184 diagnoseBadEnumOption(Iter->getKey(), Iter->getValue().Value); in getEnumInt()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/DLTI/ |
| H A D | DLTI.cpp | 60 DataLayoutEntryKey DataLayoutEntryAttr::getKey() const { in getKey() function in DataLayoutEntryAttr 97 if (auto type = getKey().dyn_cast<Type>()) in print() 100 os << "\"" << getKey().get<StringAttr>().strref() << "\""; in print() 151 if (auto type = entry.getKey().dyn_cast<Type>()) { in verify() 155 auto id = entry.getKey().get<StringAttr>(); in verify() 177 if (oldEntries[i].getKey() == entry.getKey()) { in overwriteDuplicateEntries() 210 Type typeSample = kvp.second.front().getKey().get<Type>(); in combineOneSpec() 223 StringAttr id = kvp.second.getKey().get<StringAttr>(); in combineOneSpec() 320 StringRef entryName = entry.getKey().get<StringAttr>().strref(); in verifyEntry()
|
| /llvm-project-15.0.7/lldb/unittests/TestingSupport/ |
| H A D | MockTildeExpressionResolver.cpp | 53 if (User.getKey() != Expr) in ResolveExact() 72 if (!User.getKey().startswith(Expr)) in ResolvePartial() 75 QualifiedName.append(User.getKey().begin(), User.getKey().end()); in ResolvePartial()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | DwarfStringPoolEntryRefTest.cpp | 25 EXPECT_TRUE(StringEntry1->getKey() == "Key1"); in TEST() 45 EXPECT_TRUE(StringEntry2->getKey() == "Key2"); in TEST() 70 EXPECT_TRUE(StringEntry1->getKey() == "Key1"); in TEST() 92 EXPECT_TRUE(StringEntry2->getKey() == "Key2"); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugCrossImpSubsection.cpp | 82 return Strings.getIdForString(L1->getKey()) < in commit() 83 Strings.getIdForString(L2->getKey()); in commit() 88 Imp.ModuleNameOffset = Strings.getIdForString(Item->getKey()); in commit()
|
| H A D | DebugStringTableSubsection.cpp | 53 IdToString.insert({P.first->getValue(), P.first->getKey()}); in insert() 73 StringRef S = Pair.getKey(); in commit()
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | StorageUniquer.h | 26 using has_impltype_getkey_t = decltype(ImplTy::getKey(std::declval<Args>()...)); 198 auto derivedKey = getKey<Storage>(std::forward<Args>(args)...); in get() 302 getKey(Args &&...args) { in getKey() function 303 return ImplTy::getKey(args...); in getKey() 311 getKey(Args &&...args) { in getKey() function
|
| /llvm-project-15.0.7/mlir/lib/Support/ |
| H A D | DebugCounter.cpp | 93 return (*lhs)->getKey().compare((*rhs)->getKey()); in print() 98 os << llvm::left_justify(counter->getKey(), 32) << ": {" in print()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | DraftStore.cpp | 33 ResultVector.push_back(std::string(DraftIt->getKey())); in getActiveFiles() 120 MemFS->addFile(Draft.getKey(), Draft.getValue().MTime, in asVFS() 122 Draft.getValue().D.Contents, Draft.getKey())); in asVFS()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | DataLayoutInterfaces.cpp | 96 entry.getKey().get<Type>().getIntOrFloatBitWidth(), entry)); in findEntryForIntegerType() 221 auto type = entry.getKey().dyn_cast<Type>(); in filterEntriesForType() 230 if (!entry.getKey().is<StringAttr>()) in filterEntryForIdentifier() 232 return entry.getKey().get<StringAttr>() == id; in filterEntryForIdentifier() 467 if (auto type = entry.getKey().dyn_cast<Type>()) in bucketEntriesByType() 470 ids[entry.getKey().get<StringAttr>()] = entry; in bucketEntriesByType() 488 auto sampleType = kvp.second.front().getKey().get<Type>(); in verifyDataLayoutSpec() 542 StringAttr identifier = kvp.second.getKey().get<StringAttr>(); in verifyDataLayoutSpec()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | AssumeBundleQueries.cpp | 54 if (BOI.Tag->getKey() != AttrName) in hasAttributeInAssume() 73 nullptr, Attribute::getAttrKindFromName(Bundles.Tag->getKey())}; in fillMapFromAssume() 102 Result.AttrKind = Attribute::getAttrKindFromName(BOI.Tag->getKey()); in getKnowledgeFromBundle() 128 return BOI.Tag->getKey() != IgnoreBundleTag; in isAssumeWithEmptyBundle()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestDialect.h | 80 llvm::StringRef getKey() const { return getResource()->getKey(); } in getKey() function
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | ScopedHashTable.h | 55 const K &getKey() const { return Key; } in getKey() function 243 assert(HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry && in ~ScopedHashTableScope() 245 HT.TopLevelMap.erase(ThisEntry->getKey()); in ~ScopedHashTableScope() 247 ScopedHashTableVal<K, V> *&KeyEntry = HT.TopLevelMap[ThisEntry->getKey()]; in ~ScopedHashTableScope()
|
| H A D | StringMap.h | 159 static_cast<MapEntryTy *>(Bucket)->getKey(), getAllocator(), in StringMap() 249 return count(MapEntry.getKey()); in count() 258 auto FindInRHS = RHS.find(KeyValue.getKey()); 276 unsigned BucketNo = LookupBucketFor(KeyValue->getKey()); in insert() 483 StringRef operator*() const { return this->wrapped()->getKey(); }
|
| /llvm-project-15.0.7/clang/unittests/CrossTU/ |
| H A D | CrossTranslationUnitTest.cpp | 175 EXPECT_TRUE(ParsedIndex.count(E.getKey())); in TEST() 176 EXPECT_EQ(ParsedIndex[E.getKey()], E.getValue()); in TEST() 179 EXPECT_TRUE(Index.count(E.getKey())); in TEST() 262 EXPECT_EQ(It->getKey(), "/tmp/main.cpp"); in TEST()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | 153 const auto &Distribution = Pair.getKey(); in fillScores() 163 const auto &Distribution = Pair.getKey(); in fillScores() 176 const StringRef Distribution = Pair.getKey(); in castVotes()
|
| /llvm-project-15.0.7/clang/tools/diagtool/ |
| H A D | DiagTool.cpp | 45 toolNames.push_back(it->getKey()); in printCommands() 46 unsigned len = it->getKey().size(); in printCommands()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | TraceTests.cpp | 49 auto *K = llvm::dyn_cast_or_null<llvm::yaml::ScalarNode>(Prop.getKey()); in verifyObject() 109 ASSERT_THAT(Prop->getKey(), stringNode("displayTimeUnit")); in TEST() 112 EXPECT_THAT(Prop->getKey(), stringNode("traceEvents")); in TEST()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DebugCheckers.cpp | 264 return (*LHS)->getKey().compare((*RHS)->getKey()); in compareEntry() 281 llvm::errs() << Keys[I]->getKey() << " = " in checkEndOfTranslationUnit()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundIndexLoader.cpp | 69 auto AbsPath = URI::resolve(It.getKey(), StartSourceFile); in loadShard() 105 ToVisit.push(It.first->getKey()); in load()
|
| /llvm-project-15.0.7/mlir/lib/Pass/ |
| H A D | PassCrashRecovery.cpp | 450 if (entry.getKey() == "pipeline") { in attachPassReproducerAsmResource() 456 if (entry.getKey() == "disable_threading") { in attachPassReproducerAsmResource() 465 if (entry.getKey() == "verify_each") { in attachPassReproducerAsmResource() 472 << entry.getKey() << "'"; in attachPassReproducerAsmResource()
|