| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | poisoned_hash_helper.h | 26 template <class Hash, class Key, class InputKey = Key> 35 template <class Hash, class Key> 117 template <class Hasher, class Key, class Res = decltype(std::declval<Hasher&>()(std::declval<Key>()… 125 template <class Hasher, class Key> 127 return can_hash<Hasher, Key>(0); in can_hash() 131 template <class Hash, class Key, class InputKey> 150 static_assert(can_hash<Hash, Key&>(), ""); in test_hash_enabled() 152 static_assert(can_hash<Hash, Key&&>(), ""); in test_hash_enabled() 171 template <class Hash, class Key> 189 static_assert(!can_hash<Hash, Key&>(), ""); in test_hash_disabled() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | AMDGPUMetadata.cpp | 98 YIO.mapOptional(Kernel::Attrs::Key::VecTypeHint, in mapping() 110 YIO.mapRequired(Kernel::Arg::Key::Size, MD.mSize); in mapping() 111 YIO.mapRequired(Kernel::Arg::Key::Align, MD.mAlign); in mapping() 116 YIO.mapOptional(Kernel::Arg::Key::ValueType, Unused); in mapping() 146 YIO.mapOptional(Kernel::CodeProps::Key::NumSGPRs, in mapping() 148 YIO.mapOptional(Kernel::CodeProps::Key::NumVGPRs, in mapping() 182 YIO.mapRequired(Kernel::Key::Name, MD.mName); in mapping() 188 YIO.mapOptional(Kernel::Key::Attrs, MD.mAttrs); in mapping() 190 YIO.mapOptional(Kernel::Key::Args, MD.mArgs); in mapping() 201 YIO.mapRequired(Key::Version, MD.mVersion); in mapping() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | Context.h | 40 template <class Type> class Key { 45 constexpr Key() = default; 47 Key(Key const &) = delete; 48 Key &operator=(Key const &) = delete; 49 Key(Key &&) = delete; 50 Key &operator=(Key &&) = delete; 98 template <class Type> const Type *get(const Key<Type> &Key) const { in get() argument 109 template <class Type> const Type &getExisting(const Key<Type> &Key) const { in getExisting() argument 110 auto Val = get(Key); in getExisting() 119 Context derive(const Key<Type> &Key, in derive() argument [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | TypeTraits.h | 22 #define TYPE_TRAIT_1(Spelling, Name, Key) UTT_##Name, argument 25 #define TYPE_TRAIT_1(Spelling, Name, Key) +1 argument 28 #define TYPE_TRAIT_2(Spelling, Name, Key) BTT_##Name, argument 31 #define TYPE_TRAIT_2(Spelling, Name, Key) +1 argument 34 #define TYPE_TRAIT_N(Spelling, Name, Key) TT_##Name, argument 37 #define TYPE_TRAIT_N(Spelling, Name, Key) +1 argument 43 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) ATT_##Name, argument 46 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) +1 argument 52 #define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) UETT_##Name, argument 56 #define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) +1 argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DiagnosticInfo.cpp | 158 : Key(std::string(Key)) { in Argument() 178 : Key(std::string(Key)) { in Argument() 184 : Key(std::string(Key)), Val(S.str()) {} in Argument() 187 : Key(std::string(Key)), Val(itostr(N)) {} in Argument() 193 : Key(std::string(Key)), Val(itostr(N)) {} in Argument() 196 : Key(std::string(Key)), Val(itostr(N)) {} in Argument() 199 : Key(std::string(Key)), Val(utostr(N)) {} in Argument() 203 : Key(std::string(Key)), Val(utostr(N)) {} in Argument() 211 : Key(std::string(Key)) { in Argument() 218 : Key(std::string(Key)) { in Argument() [all …]
|
| H A D | ProfileSummary.cpp | 26 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument 29 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyValMD() 34 static Metadata *getKeyFPValMD(LLVMContext &Context, const char *Key, in getKeyFPValMD() argument 37 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyFPValMD() 44 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument 104 static ConstantAsMetadata *getValMD(MDTuple *MD, const char *Key) { in getValMD() argument 113 if (!KeyMD->getString().equals(Key)) in getValMD() 119 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal() argument 120 if (auto *ValMD = getValMD(MD, Key)) { in getVal() 127 static bool getVal(MDTuple *MD, const char *Key, double &Val) { in getVal() argument [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | container-contains.cpp | 6 template <class Key, class T> 8 unsigned count(const Key &K) const; 9 bool contains(const Key &K) const; 10 void *find(const Key &K); 14 template <class Key> 16 unsigned count(const Key &K) const; 17 bool contains(const Key &K) const; 20 template <class Key> 26 template <class Key, class T> 213 template <class Key, class T> [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | TypeTraits.cpp | 19 #define TYPE_TRAIT_1(Spelling, Name, Key) #Name, argument 21 #define TYPE_TRAIT_2(Spelling, Name, Key) #Name, argument 23 #define TYPE_TRAIT_N(Spelling, Name, Key) #Name, argument 28 #define TYPE_TRAIT_1(Spelling, Name, Key) #Spelling, argument 30 #define TYPE_TRAIT_2(Spelling, Name, Key) #Spelling, argument 32 #define TYPE_TRAIT_N(Spelling, Name, Key) #Spelling, argument 37 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) #Name, argument 42 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) #Spelling, argument 47 #define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) #Name, argument 48 #define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) #Name, argument [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/associative/map/ |
| H A D | compare.pass.cpp | 24 struct Key { struct 25 template <typename T> Key(const T&) {} in Key() argument 26 bool operator< (const Key&) const { return false; } in operator <() argument 31 typedef std::map<Key, int> MapT; in main() 37 m_contains[Key(0)] = 42; in main() 39 Iter it = m_empty.find(Key(0)); in main() 41 it = m_contains.find(Key(0)); in main() 46 IterBool result = map.insert(std::make_pair(Key(0), 42)); in main() 49 IterBool result2 = map.insert(std::make_pair(Key(0), 43)); in main() 51 assert(map[Key(0)] == 42); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/ |
| H A D | compare.pass.cpp | 23 struct Key { struct 24 template <typename T> Key(const T&) {} in Key() function 25 bool operator== (const Key&) const { return true; } in operator ==() argument 31 struct hash<Key> 33 size_t operator()(Key const &) const {return 0;} in operator ()() 39 typedef std::unordered_map<Key, int> MapT; in main() 42 Iter it = map.find(Key(0)); in main() 44 std::pair<Iter, bool> result = map.insert(std::make_pair(Key(0), 42)); in main()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | 2009-01-08-AlignAlloca.ll | 7 %struct.Key = type { { i32, i32 } } 15 ; CHECK-NEXT: [[TMP0:%.*]] = getelementptr inbounds [[STRUCT_KEY]], %struct.Key* [[IOSPEC]], i32… 17 ; CHECK-NEXT: [[TMP1:%.*]] = getelementptr inbounds [[STRUCT_KEY]], %struct.Key* [[IOSPEC]], i32… 19 ; CHECK-NEXT: [[TMP2:%.*]] = bitcast %struct.Key* [[IOSPEC]] to i64* 21 ; CHECK-NEXT: [[TMP3:%.*]] = call i32 (...) @foo(%struct.Key* nonnull byval(%struct.Key) align 4… 26 %iospec = alloca %struct.Key ; <%struct.Key*> [#uses=3] 29 %0 = getelementptr %struct.Key, %struct.Key* %iospec, i32 0, i32 0 ; <{ i32, i32 }*> [#uses=2] 34 %3 = getelementptr %struct.Key, %struct.Key* %iospec, i32 0, i32 0 ; <{ i32, i32 }*> [#uses=1] 37 …%5 = call i32 (...) @foo(%struct.Key* byval(%struct.Key) align 4 %iospec, i32* %ret) nounwind ; <…
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 134 Result.Key = HMAP_EmptyBucketKey; in getBucket() 142 Result.Key = getEndianAdjustedWord(BucketPtr->Key); in getBucket() 187 if (B.Key == HMAP_EmptyBucketKey) continue; in dump() 189 StringRef Key = getStringOrInvalid(B.Key); in dump() local 211 Optional<StringRef> Key = getString(B.Key); in lookupFilename() local 212 if (LLVM_UNLIKELY(!Key)) in lookupFilename() 214 if (!Filename.equals_insensitive(*Key)) in lookupFilename() 240 if (B.Key == HMAP_EmptyBucketKey) in reverseLookupFilename() 243 Optional<StringRef> Key = getString(B.Key); in reverseLookupFilename() local 251 ReverseMap[Value] = *Key; in reverseLookupFilename() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | SparseSet.h | 78 unsigned operator()(const KeyT &Key) const { 79 return KeyFunctorT()(Key); 225 iterator find(const KeyT &Key) { 226 return findIndex(KeyIndexOf(Key)); 229 const_iterator find(const KeyT &Key) const { 236 bool contains(const KeyT &Key) const { return find(Key) == end() ? 0 : 1; } 241 size_type count(const KeyT &Key) const { return contains(Key) ? 1 : 0; } 266 ValueT &operator[](const KeyT &Key) { 267 return *insert(ValueT(Key)).first; 308 bool erase(const KeyT &Key) { [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/Offloading/Inputs/ |
| H A D | binary.yaml | 6 - Key: "triple" 8 - Key: "arch" 13 - Key: "triple" 15 - Key: "arch" 20 - Key: "triple" 22 - Key: "arch" 27 - Key: "triple" 29 - Key: "arch"
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | SymbolRemappingReaderTest.cpp | 87 auto Key = Reader.insert("_ZN1B3bar3bazIiEEvv"); in TEST_F() local 88 EXPECT_NE(Key, SymbolRemappingReader::Key()); in TEST_F() 89 EXPECT_EQ(Key, Reader.lookup("_ZN1A3foo3bazIlEEvv")); in TEST_F() 90 EXPECT_NE(Key, Reader.lookup("_ZN1C3foo3bazIlEEvv")); in TEST_F() 92 Key = Reader.insert("_Z1fIiEvv"); in TEST_F() 93 EXPECT_NE(Key, SymbolRemappingReader::Key()); in TEST_F() 94 EXPECT_EQ(Key, Reader.lookup("_Z1gIlEvv")); in TEST_F()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_dense_map.h | 78 value_type *find(const KeyT &Key) { in find() argument 80 if (LookupBucketFor(Key, TheBucket)) in find() 86 if (LookupBucketFor(Key, TheBucket)) in find() 99 if (LookupBucketFor(Key, TheBucket)) in find_as() 106 if (LookupBucketFor(Key, TheBucket)) in find_as() 113 ValueT lookup(const KeyT &Key) const { in lookup() argument 115 if (LookupBucketFor(Key, TheBucket)) in lookup() 142 if (LookupBucketFor(Key, TheBucket)) in try_emplace() 215 ValueT &operator[](const KeyT &Key) { return FindAndConstruct(Key).second; } 225 ValueT &operator[](KeyT &&Key) { [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_dense_map_test.cpp | 211 for (int Key = 0; Key < 5; ++Key) in TYPED_TEST() local 212 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST() 216 for (int Key = 0; Key < 5; ++Key) in TYPED_TEST() local 217 EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); in TYPED_TEST() 229 for (int Key = 0; Key < 5; ++Key) in TYPED_TEST() local 230 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST() 252 for (int Key = 0; Key < 5; ++Key) in TYPED_TEST() local 253 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST() 257 for (int Key = 0; Key < 5; ++Key) in TYPED_TEST() local 258 EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); in TYPED_TEST() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | SharedClusterTest.cpp | 18 DestructNotifier(std::vector<int> &Queue, int Key) : Queue(Queue), Key(Key) {} in DestructNotifier() argument 19 ~DestructNotifier() { Queue.push_back(Key); } in ~DestructNotifier() 22 const int Key; member in __anonfa81659b0111::DestructNotifier 38 ASSERT_EQ(OnePtr->Key, 1); in TEST() 43 ASSERT_EQ(OnePtrCopy->Key, 1); in TEST() 49 ASSERT_EQ(TwoPtr->Key, 2); in TEST()
|
| /llvm-project-15.0.7/libcxx/include/experimental/ |
| H A D | unordered_map | 22 template <class Key, class T, 23 class Hash = hash<Key>, 24 class Pred = equal_to<Key>> 26 std::unordered_map<Key, T, Hash, Pred, 27 polymorphic_allocator<pair<const Key,T>>>; 29 template <class Key, class T, 30 class Hash = hash<Key>, 31 class Pred = equal_to<Key>> 33 std::unordered_multimap<Key, T, Hash, Pred, 34 polymorphic_allocator<pair<const Key,T>>>;
|
| /llvm-project-15.0.7/llvm/test/ObjectYAML/Offload/ |
| H A D | multiple_members.yaml | 8 - Key: "triple" 10 - Key: "arch" 17 - Key: "triple" 19 - Key: "arch" 29 # CHECK-NEXT: - Key: triple 31 # CHECK-NEXT: - Key: arch 38 # CHECK-NEXT: - Key: triple 40 # CHECK-NEXT: - Key: arch
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | SparsePropagation.h | 153 auto I = ValueState.find(Key); in getExistingValueState() 220 LatticeKey Key, raw_ostream &OS) { in PrintLatticeKey() argument 231 auto I = ValueState.find(Key); in getValueState() 235 if (LatticeFunc->IsUntrackedValue(Key)) in getValueState() 248 auto I = ValueState.find(Key); in UpdateState() 254 ValueState[Key] = std::move(LV); in UpdateState() 414 LatticeVal PNIV = getValueState(Key); in visitPHINode() 424 UpdateState(Key, Overdefined); in visitPHINode() 447 UpdateState(Key, PNIV); in visitPHINode() 507 LatticeKey Key; in Print() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUPALMetadata.cpp | 61 if (!Key || !Val) in readFromIR() 120 return PALMD::Key::PS_SCRATCH_SIZE; in getScratchSizeKey() 122 return PALMD::Key::VS_SCRATCH_SIZE; in getScratchSizeKey() 124 return PALMD::Key::GS_SCRATCH_SIZE; in getScratchSizeKey() 126 return PALMD::Key::ES_SCRATCH_SIZE; in getScratchSizeKey() 128 return PALMD::Key::HS_SCRATCH_SIZE; in getScratchSizeKey() 130 return PALMD::Key::LS_SCRATCH_SIZE; in getScratchSizeKey() 132 return PALMD::Key::CS_SCRATCH_SIZE; in getScratchSizeKey() 693 auto Key = I.first; in toString() local 756 auto Key = I.first; in setFromString() local [all …]
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/ |
| H A D | BenchmarkResultTest.cpp | 60 ToDisk.Key.Instructions.push_back(MCInstBuilder(Mips::XOR) in TEST_F() 64 ToDisk.Key.Config = "config"; in TEST_F() 65 ToDisk.Key.RegisterInitialValues = { in TEST_F() 88 EXPECT_THAT(FromDisk.Key.Instructions, in TEST_F() 89 Pointwise(EqMCInst(), ToDisk.Key.Instructions)); in TEST_F() 90 EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); in TEST_F() 105 EXPECT_THAT(FromDisk.Key.Instructions, in TEST_F() 106 Pointwise(EqMCInst(), ToDisk.Key.Instructions)); in TEST_F() 107 EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); in TEST_F()
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/ |
| H A D | BenchmarkResultTest.cpp | 62 ToDisk.Key.Instructions.push_back(MCInstBuilder(X86::XOR32rr) in TEST() 67 ToDisk.Key.Config = "config"; in TEST() 68 ToDisk.Key.RegisterInitialValues = { in TEST() 93 EXPECT_THAT(FromDisk.Key.Instructions, in TEST() 94 Pointwise(EqMCInst(), ToDisk.Key.Instructions)); in TEST() 95 EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); in TEST() 110 EXPECT_THAT(FromDisk.Key.Instructions, in TEST() 111 Pointwise(EqMCInst(), ToDisk.Key.Instructions)); in TEST() 112 EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); in TEST()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ProgramStateTrait.h | 73 #define CLANG_ENTO_PROGRAMSTATE_MAP(Key, Value) llvm::ImmutableMap<Key, Value> argument 87 #define REGISTER_MAP_WITH_PROGRAMSTATE(Name, Key, Value) \ argument 95 #define REGISTER_MAP_FACTORY_WITH_PROGRAMSTATE(Name, Key, Value) \ argument 96 using Name = llvm::ImmutableMap<Key, Value>; \ 148 template <typename Key, typename Data, typename Info> 150 using data_type = llvm::ImmutableMap<Key, Data, Info>; 152 using key_type = Key; 196 template <typename Key, typename Info> 197 struct ProgramStatePartialTrait<llvm::ImmutableSet<Key, Info>> { 198 using data_type = llvm::ImmutableSet<Key, Info>; [all …]
|