Lines Matching defs:Key

299   hash_value_type ComputeHash(key_type_ref Key) { return llvm::djbHash(Key); }
302 EmitKeyDataLength(raw_ostream &OS, key_type_ref Key, data_type_ref) {
303 uint32_t KeyLength = Key.size();
312 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) { OS << Key; }
357 hash_value_type ComputeHash(key_type_ref Key) {
358 return static_cast<size_t>(Key.hashValue());
372 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
374 writer.write<uint32_t>(Key.parentContextID);
375 writer.write<uint8_t>(Key.contextKind);
376 writer.write<uint32_t>(Key.contextID);
484 EmitKeyDataLength(raw_ostream &OS, key_type_ref Key, data_type_ref Data) {
485 uint32_t KeyLength = asDerived().getKeyLength(Key);
568 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
570 writer.write<uint32_t>(Key);
573 hash_value_type ComputeHash(key_type_ref Key) {
574 return static_cast<size_t>(llvm::hash_value(Key));
683 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
685 writer.write<uint32_t>(std::get<0>(Key));
686 writer.write<uint32_t>(std::get<1>(Key));
687 writer.write<uint8_t>(std::get<2>(Key));
690 hash_value_type ComputeHash(key_type_ref Key) {
691 return static_cast<size_t>(llvm::hash_value(Key));
753 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
755 writer.write<uint32_t>(std::get<0>(Key));
756 writer.write<uint32_t>(std::get<1>(Key));
757 writer.write<uint8_t>(std::get<2>(Key));
795 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
797 writer.write<uint32_t>(Key.parentContextID);
798 writer.write<uint32_t>(Key.nameID);
888 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
890 writer.write<uint32_t>(Key.parentContextID);
891 writer.write<uint32_t>(Key.nameID);
946 hash_value_type ComputeHash(key_type_ref Key) {
947 return llvm::DenseMapInfo<StoredObjCSelector>::getHashValue(Key);
951 EmitKeyDataLength(raw_ostream &OS, key_type_ref Key, data_type_ref) {
953 sizeof(uint16_t) + sizeof(uint32_t) * Key.Identifiers.size();
962 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
964 writer.write<uint16_t>(Key.NumArgs);
965 for (auto Identifier : Key.Identifiers)
1013 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
1015 writer.write<uint32_t>(Key.parentContextID);
1016 writer.write<uint32_t>(Key.nameID);
1019 hash_value_type ComputeHash(key_type_ref Key) {
1020 return static_cast<size_t>(Key.hashValue());
1136 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
1138 writer.write<uint32_t>(Key.parentContextID);
1139 writer.write<uint32_t>(Key.nameID);
1142 hash_value_type ComputeHash(key_type_ref Key) {
1143 return static_cast<size_t>(Key.hashValue());
1191 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
1193 writer.write<uint32_t>(Key);
1196 hash_value_type ComputeHash(key_type_ref Key) {
1197 return static_cast<size_t>(llvm::hash_value(Key));
1250 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) {
1252 writer.write<uint32_t>(Key.parentContextID);
1253 writer.write<IdentifierID>(Key.nameID);
1256 hash_value_type ComputeHash(key_type_ref Key) {
1257 return static_cast<size_t>(Key.hashValue());
1432 ContextTableKey Key(RawParentCtxID, static_cast<uint8_t>(Kind), NameID);
1433 auto Known = Implementation->Contexts.find(Key);
1440 Key, std::make_pair(NextID, EmptyVersionedInfo)))
1479 auto Key = std::tuple<unsigned, unsigned, char>{CtxID.Value, SelID,
1481 Implementation->ObjCMethods[Key].push_back({SwiftVersion, Info});
1513 SingleDeclTableKey Key(CtxID.Value, NameID);
1514 Implementation->CXXMethods[Key].push_back({SwiftVersion, Info});
1521 SingleDeclTableKey Key(CtxID.Value, NameID);
1522 Implementation->Fields[Key].push_back({SwiftVersion, Info});
1530 SingleDeclTableKey Key(Ctx, VariableID);
1531 Implementation->GlobalVariables[Key].push_back({SwiftVersion, Info});
1539 SingleDeclTableKey Key(Ctx, NameID);
1540 Implementation->GlobalFunctions[Key].push_back({SwiftVersion, Info});
1553 SingleDeclTableKey Key(Ctx, TagID);
1554 Implementation->Tags[Key].push_back({SwiftVersion, Info});
1561 SingleDeclTableKey Key(Ctx, TypedefID);
1562 Implementation->Typedefs[Key].push_back({SwiftVersion, Info});