| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/ |
| HD | AMDGPUMetadata.cpp | 95 YIO.mapOptional(Kernel::Attrs::Key::ReqdWorkGroupSize, in mapping() 97 YIO.mapOptional(Kernel::Attrs::Key::WorkGroupSizeHint, in mapping() 99 YIO.mapOptional(Kernel::Attrs::Key::VecTypeHint, in mapping() 101 YIO.mapOptional(Kernel::Attrs::Key::RuntimeHandle, MD.mRuntimeHandle, in mapping() 109 YIO.mapOptional(Kernel::Arg::Key::Name, MD.mName, std::string()); in mapping() 110 YIO.mapOptional(Kernel::Arg::Key::TypeName, MD.mTypeName, std::string()); in mapping() 111 YIO.mapRequired(Kernel::Arg::Key::Size, MD.mSize); in mapping() 112 YIO.mapRequired(Kernel::Arg::Key::Align, MD.mAlign); in mapping() 113 YIO.mapRequired(Kernel::Arg::Key::ValueKind, MD.mValueKind); in mapping() 117 YIO.mapOptional(Kernel::Arg::Key::ValueType, Unused); in mapping() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/ |
| HD | TypeTraits.cpp | 20 #define TYPE_TRAIT_1(Spelling, Name, Key) #Name, argument 22 #define TYPE_TRAIT_2(Spelling, Name, Key) #Name, argument 24 #define TYPE_TRAIT_N(Spelling, Name, Key) #Name, argument 29 #define TYPE_TRAIT_1(Spelling, Name, Key) #Spelling, argument 31 #define TYPE_TRAIT_2(Spelling, Name, Key) #Spelling, argument 33 #define TYPE_TRAIT_N(Spelling, Name, Key) #Spelling, argument 38 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) #Name, argument 43 #define ARRAY_TYPE_TRAIT(Spelling, Name, Key) #Spelling, argument 48 #define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) #Name, argument 49 #define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) #Name, argument [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
| HD | 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 53 #define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key) UETT_##Name, argument [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| HD | HashKeyMap.h | 66 const original_key_type &Key, in try_emplace() argument 68 assert(Hash == hash_value(Key)); in try_emplace() 73 std::pair<iterator, bool> try_emplace(const original_key_type &Key, in try_emplace() argument 75 return try_emplace(hash_value(Key), Key, std::forward<Ts>(Args)...); in try_emplace() 82 mapped_type &operator[](const original_key_type &Key) { 83 return try_emplace(Key, mapped_type()).first->second; 86 iterator find(const original_key_type &Key) { in find() argument 87 auto It = base_type::find(hash_value(Key)); in find() 93 const_iterator find(const original_key_type &Key) const { in find() argument 94 auto It = base_type::find(hash_value(Key)); in find() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
| HD | DiagnosticInfo.cpp | 165 DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, in Argument() argument 167 : Key(std::string(Key)) { in Argument() 190 DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, const Type *T) in Argument() argument 191 : Key(std::string(Key)) { in Argument() 196 DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, StringRef S) in Argument() argument 197 : Key(std::string(Key)), Val(S.str()) {} in Argument() 199 DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, int N) in Argument() argument 200 : Key(std::string(Key)), Val(itostr(N)) {} in Argument() 202 DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, float N) in Argument() argument 203 : Key(std::string(Key)), Val(llvm::to_string(N)) {} in Argument() [all …]
|
| HD | 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 46 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD() 104 static ConstantAsMetadata *getValMD(MDTuple *MD, const char *Key) { in getValMD() argument 113 if (KeyMD->getString() != 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() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
| HD | StringMap.h | 64 unsigned LookupBucketFor(StringRef Key) { in LookupBucketFor() argument 65 return LookupBucketFor(Key, hash(Key)); in LookupBucketFor() 69 unsigned LookupBucketFor(StringRef Key, uint32_t FullHashValue); 74 int FindKey(StringRef Key) const { return FindKey(Key, hash(Key)); } in FindKey() argument 77 int FindKey(StringRef Key, uint32_t FullHashValue) const; 85 StringMapEntryBase *RemoveKey(StringRef Key); 111 static uint32_t hash(StringRef Key); 233 iterator find(StringRef Key) { return find(Key, hash(Key)); } in find() argument 235 iterator find(StringRef Key, uint32_t FullHashValue) { in find() argument 236 int Bucket = FindKey(Key, FullHashValue); in find() [all …]
|
| HD | MapVector.h | 98 ValueT &operator[](const KeyT &Key) { 99 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(Key, 0); 103 Vector.push_back(std::make_pair(Key, ValueT())); 110 ValueT lookup(const KeyT &Key) const { in lookup() argument 113 typename MapType::const_iterator Pos = Map.find(Key); in lookup() 118 std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&...Args) { in try_emplace() argument 119 auto [It, Inserted] = Map.insert(std::make_pair(Key, 0)); in try_emplace() 122 Vector.emplace_back(std::piecewise_construct, std::forward_as_tuple(Key), in try_emplace() 129 std::pair<iterator, bool> try_emplace(KeyT &&Key, Ts &&...Args) { in try_emplace() argument 130 auto [It, Inserted] = Map.insert(std::make_pair(Key, 0)); in try_emplace() [all …]
|
| HD | 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 { 230 return const_cast<SparseSet*>(this)->findIndex(KeyIndexOf(Key)); 236 bool contains(const KeyT &Key) const { return find(Key) != end(); } 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; [all …]
|
| HD | ScopedHashTable.h | 49 K Key; variable 52 ScopedHashTableVal(const K &key, const V &val) : Key(key), Val(val) {} in ScopedHashTableVal() 55 const K &getKey() const { return Key; } in getKey() 181 size_type count(const K &Key) const { in count() argument 182 return TopLevelMap.count(Key); in count() 185 V lookup(const K &Key) const { in lookup() argument 186 auto I = TopLevelMap.find(Key); in lookup() 193 void insert(const K &Key, const V &Val) { in insert() argument 194 insertIntoScope(CurScope, Key, Val); in insert() 201 iterator begin(const K &Key) { in begin() argument [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/ |
| HD | 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 192 llvm::dbgs() << " " << i << ". " << Key << " -> '" << Prefix << "' '" in dump() 208 if (B.Key == HMAP_EmptyBucketKey) return StringRef(); // Hash miss. in lookupFilename() 211 std::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() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_dense_map.h | 73 size_type count(const KeyT &Key) const { in count() argument 75 return LookupBucketFor(Key, TheBucket) ? 1 : 0; in count() 78 value_type *find(const KeyT &Key) { in find() argument 80 if (LookupBucketFor(Key, TheBucket)) in find() 84 const value_type *find(const KeyT &Key) const { in find() argument 86 if (LookupBucketFor(Key, TheBucket)) in find() 97 value_type *find_as(const LookupKeyT &Key) { in find_as() argument 99 if (LookupBucketFor(Key, TheBucket)) in find_as() 104 const value_type *find_as(const LookupKeyT &Key) const { in find_as() argument 106 if (LookupBucketFor(Key, TheBucket)) in find_as() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/lib/APINotes/ |
| HD | APINotesWriter.cpp | 300 hash_value_type ComputeHash(key_type_ref Key) { return llvm::djbHash(Key); } in ComputeHash() argument 303 EmitKeyDataLength(raw_ostream &OS, key_type_ref Key, data_type_ref) { in EmitKeyDataLength() argument 304 uint32_t KeyLength = Key.size(); in EmitKeyDataLength() 313 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) { OS << Key; } in EmitKey() argument 358 hash_value_type ComputeHash(key_type_ref Key) { in ComputeHash() argument 359 return static_cast<size_t>(Key.hashValue()); in ComputeHash() 373 void EmitKey(raw_ostream &OS, key_type_ref Key, unsigned) { in EmitKey() argument 375 writer.write<uint32_t>(Key.parentContextID); in EmitKey() 376 writer.write<uint8_t>(Key.contextKind); in EmitKey() 377 writer.write<uint32_t>(Key.contextID); in EmitKey() [all …]
|
| HD | APINotesReader.cpp | 61 internal_key_type GetInternalKey(external_key_type Key) { return Key; } in GetInternalKey() argument 63 external_key_type GetExternalKey(internal_key_type Key) { return Key; } in GetExternalKey() argument 77 static data_type ReadData(internal_key_type Key, const uint8_t *Data, in ReadData() argument 87 auto UnversionedData = Derived::readUnversioned(Key, Data); in ReadData() 149 internal_key_type GetInternalKey(external_key_type Key) { return Key; } in GetInternalKey() argument 151 external_key_type GetExternalKey(internal_key_type Key) { return Key; } in GetExternalKey() argument 153 hash_value_type ComputeHash(internal_key_type Key) { in ComputeHash() argument 154 return llvm::djbHash(Key); in ComputeHash() 189 internal_key_type GetInternalKey(external_key_type Key) { return Key; } in GetInternalKey() argument 191 external_key_type GetExternalKey(internal_key_type Key) { return Key; } in GetExternalKey() argument [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-remarkutil/ |
| HD | RemarkCounter.cpp | 105 static unsigned getValForKey(StringRef Key, const Remark &Remark) { in getValForKey() argument 106 auto *RemarkArg = find_if(Remark.Args, [&Key](const Argument &Arg) { in getValForKey() 107 return Arg.Key == Key && Arg.isValInt(); in getValForKey() 154 for (auto &Key : Arguments) { in getAllMatchingArgumentsInRemark() local 156 if (Key.match(Arg.Key) && Arg.isValInt()) in getAllMatchingArgumentsInRemark() 157 ArgumentSetIdxMap.insert({Arg.Key, ArgumentSetIdxMap.size()}); in getAllMatchingArgumentsInRemark() 194 for (auto [Key, Idx] : ArgumentSetIdxMap) { in collect() 195 auto Count = getValForKey(Key, Remark); in collect() 201 std::optional<std::string> Key = getGroupByKey(Remark); in collect() local 202 if (!Key.has_value()) in collect() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| HD | CGPointerAuthInfo.h | 29 unsigned Key : 2; variable 35 IsIsaPointer(false), AuthenticatesNullValues(false), Key(0), in CGPointerAuthInfo() 37 CGPointerAuthInfo(unsigned Key, PointerAuthenticationMode AuthenticationMode, in CGPointerAuthInfo() argument 41 AuthenticatesNullValues(AuthenticatesNullValues), Key(Key), in CGPointerAuthInfo() 55 return Key; in getKey() 86 return LHS.Key != RHS.Key || LHS.Discriminator != RHS.Discriminator ||
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| HD | SparsePropagation.h | 68 virtual bool IsUntrackedValue(LatticeKey Key) { return false; } in IsUntrackedValue() argument 72 virtual LatticeVal ComputeLatticeVal(LatticeKey Key) { in ComputeLatticeVal() argument 99 virtual void PrintLatticeKey(LatticeKey Key, raw_ostream &OS); 152 LatticeVal getExistingValueState(LatticeKey Key) const { in getExistingValueState() argument 153 auto I = ValueState.find(Key); in getExistingValueState() 160 LatticeVal getValueState(LatticeKey Key); 185 void UpdateState(LatticeKey Key, LatticeVal LV); 220 LatticeKey Key, raw_ostream &OS) { in PrintLatticeKey() argument 230 SparseSolver<LatticeKey, LatticeVal, KeyInfo>::getValueState(LatticeKey Key) { in getValueState() argument 231 auto I = ValueState.find(Key); in getValueState() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| HD | 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 89 CLANG_ENTO_PROGRAMSTATE_MAP(Key, Value)) 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> 149 struct ProgramStatePartialTrait<llvm::ImmutableMap<Key, Data, Info>> { 150 using data_type = llvm::ImmutableMap<Key, Data, Info>; 152 using key_type = Key; 196 template <typename Key, typename Info> [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| HD | OnDiskHashTable.h | 62 typename Info::key_type Key; 67 Item(typename Info::key_type_ref Key, typename Info::data_type_ref Data, in Item() argument 69 : Key(Key), Data(Data), Next(nullptr), Hash(InfoObj.ComputeHash(Key)) {} in Item() 115 void insert(typename Info::key_type_ref Key, in insert() argument 118 insert(Key, Data, InfoObj); in insert() 124 void insert(typename Info::key_type_ref Key, in insert() argument 129 insert(Buckets, NumBuckets, new (BA.Allocate()) Item(Key, Data, InfoObj)); in insert() 133 bool contains(typename Info::key_type_ref Key, Info &InfoObj) { in contains() argument 134 unsigned Hash = InfoObj.ComputeHash(Key); in contains() 136 if (I->Hash == Hash && InfoObj.EqualKey(I->Key, Key)) in contains() [all …]
|
| HD | TypeName.h | 31 StringRef Key = "DesiredTypeName = "; in getTypeName() local 32 Name = Name.substr(Name.find(Key)); in getTypeName() 34 Name = Name.drop_front(Key.size()); in getTypeName() 41 StringRef Key = "getTypeName<"; in getTypeName() 42 Name = Name.substr(Name.find(Key)); in getTypeName() 44 Name = Name.drop_front(Key.size()); in getTypeName()
|
| /freebsd-13-stable/crypto/heimdal/lib/hdb/ |
| HD | hdb-protos.h | 96 Key **/*key*/); 200 hdb_free_key (Key */*key*/); 206 Key */*keys*/); 217 Key **/*ret_key_set*/, 226 Key **/*keys*/, 290 Key **/*key*/); 329 Key */*k*/); 334 Key */*k*/, 374 Key */*k*/); 379 Key */*k*/,
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| HD | AMDGPUPALMetadata.cpp | 59 auto Key = mdconst::dyn_extract<ConstantInt>(Tuple->getOperand(I)); in readFromIR() local 61 if (!Key || !Val) in readFromIR() 63 setRegister(Key->getZExtValue(), Val->getZExtValue()); in readFromIR() 119 return PALMD::Key::PS_SCRATCH_SIZE; in getScratchSizeKey() 121 return PALMD::Key::VS_SCRATCH_SIZE; in getScratchSizeKey() 123 return PALMD::Key::GS_SCRATCH_SIZE; in getScratchSizeKey() 125 return PALMD::Key::ES_SCRATCH_SIZE; in getScratchSizeKey() 127 return PALMD::Key::HS_SCRATCH_SIZE; in getScratchSizeKey() 129 return PALMD::Key::LS_SCRATCH_SIZE; in getScratchSizeKey() 131 return PALMD::Key::CS_SCRATCH_SIZE; in getScratchSizeKey() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
| HD | SwiftErrorValueTracking.cpp | 28 auto Key = std::make_pair(MBB, Val); in getOrCreateVReg() local 29 auto It = VRegDefMap.find(Key); in getOrCreateVReg() 38 VRegDefMap[Key] = VReg; in getOrCreateVReg() 39 VRegUpwardsUse[Key] = VReg; in getOrCreateVReg() 52 auto Key = PointerIntPair<const Instruction *, 1, bool>(I, true); in getOrCreateVRegDefAt() local 53 auto It = VRegDefUses.find(Key); in getOrCreateVRegDefAt() 60 VRegDefUses[Key] = VReg; in getOrCreateVRegDefAt() 67 auto Key = PointerIntPair<const Instruction *, 1, bool>(I, false); in getOrCreateVRegUseAt() local 68 auto It = VRegDefUses.find(Key); in getOrCreateVRegUseAt() 73 VRegDefUses[Key] = VReg; in getOrCreateVRegUseAt() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| HD | CalledValuePropagation.cpp | 124 CVPLatticeVal ComputeLatticeVal(CVPLatticeKey Key) override { in ComputeLatticeVal() argument 125 switch (Key.getInt()) { in ComputeLatticeVal() 127 if (isa<Instruction>(Key.getPointer())) { in ComputeLatticeVal() 129 } else if (auto *A = dyn_cast<Argument>(Key.getPointer())) { in ComputeLatticeVal() 132 } else if (auto *C = dyn_cast<Constant>(Key.getPointer())) { in ComputeLatticeVal() 138 if (auto *GV = dyn_cast<GlobalVariable>(Key.getPointer())) { in ComputeLatticeVal() 141 } else if (auto *F = cast<Function>(Key.getPointer())) in ComputeLatticeVal() 204 void PrintLatticeKey(CVPLatticeKey Key, raw_ostream &OS) override { in PrintLatticeKey() argument 205 if (Key.getInt() == IPOGrouping::Register) in PrintLatticeKey() 207 else if (Key.getInt() == IPOGrouping::Memory) in PrintLatticeKey() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| HD | ModuleSummaryIndexYAML.h | 67 IO &io, StringRef Key, 70 std::pair<StringRef, StringRef> P = {"", Key}; 80 io.mapRequired(Key.str().c_str(), V[Args]); 86 std::string Key; 88 if (!Key.empty()) 89 Key += ','; 90 Key += llvm::utostr(Arg); 92 io.mapRequired(Key.c_str(), P.second); 116 static void inputOne(IO &io, StringRef Key, 119 if (Key.getAsInteger(0, KeyInt)) { [all …]
|