| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | Hashing.h | 73 class hash_code { 79 hash_code() = default; 82 hash_code(size_t value) : value(value) {} in hash_code() function 87 friend bool operator==(const hash_code &lhs, const hash_code &rhs) { 90 friend bool operator!=(const hash_code &lhs, const hash_code &rhs) { 115 hash_code hash_value(const std::pair<T, U> &arg); 119 hash_code hash_value(const std::tuple<Ts...> &arg); 650 hash_code hash_value(const std::pair<T, U> &arg) { 682 static inline hash_code getEmptyKey() { return hash_code(-1); } 683 static inline hash_code getTombstoneKey() { return hash_code(-2); } [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.rtti/type.info/ |
| H A D | type_info_hash.pass.cpp | 24 assert(t1.hash_code() == t2.hash_code()); in main() 25 assert(t1.hash_code() != t3.hash_code()); in main()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | HashingTest.cpp | 25 void PrintTo(const hash_code &code, std::ostream *os) { in PrintTo() 36 friend hash_code hash_value(const NonPOD &obj) { in hash_value() 139 hash_code hash_value(HashableDummy dummy) { return dummy.value; } in hash_value() 144 hash_code dummy_hash = hash_combine_range(&dummy, &dummy); in TEST() 145 EXPECT_NE(hash_code(0), dummy_hash); in TEST() 148 hash_code arr1_hash = hash_combine_range(begin(arr1), end(arr1)); in TEST() 162 hash_code arr2_hash = hash_combine_range(begin(arr2), end(arr2)); in TEST() 167 hash_code arr3_hash = hash_combine_range(begin(arr3), end(arr3)); in TEST() 172 hash_code arr4_hash = hash_combine_range(begin(arr4), end(arr4)); in TEST() 281 hash_code hash = hash_combine_range(str.begin(), str.end()); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FileDistance.cpp | 57 const llvm::hash_code FileDistance::RootHash = 63 llvm::DenseMap<llvm::hash_code, llvm::SmallVector<llvm::hash_code>> DownEdges; in FileDistance() 72 llvm::hash_code Hash = llvm::hash_value(Rest); in FileDistance() 100 std::queue<llvm::hash_code> Next; in FileDistance() 122 llvm::SmallVector<llvm::hash_code> Ancestors; in distance() 141 for (llvm::hash_code Hash : llvm::reverse(Ancestors)) { in distance()
|
| H A D | FileDistance.h | 70 static const llvm::hash_code RootHash; 81 llvm::DenseMap<llvm::hash_code, unsigned> Cache; 104 llvm::DenseMap<llvm::hash_code, unsigned> Cache;
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AttributeDetail.h | 59 KeyTy(ShapedType type, ArrayRef<char> data, llvm::hash_code hashCode, 70 llvm::hash_code hashCode; 176 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey() 212 KeyTy(ShapedType type, ArrayRef<StringRef> data, llvm::hash_code hashCode, 223 llvm::hash_code hashCode; 273 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey() 334 static ::llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/type.index/type.index.members/ |
| H A D | hash_code.pass.cpp | 26 assert(t1.hash_code() == ti.hash_code()); in main()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | typeindex | 32 size_t hash_code() const noexcept; 95 size_t hash_code() const _NOEXCEPT {return __t_->hash_code();} 108 {return __index.hash_code();}
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | Math.h | 26 friend hash_code hash_value(const Vector &); 100 inline hash_code hash_value(const Vector &V) { in hash_value() 123 friend hash_code hash_value(const Matrix &); 237 inline hash_code hash_value(const Matrix &M) { in hash_value() 267 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() 284 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | GVNExpression.h | 64 mutable hash_code HashVal = 0; 91 hash_code getComputedHash() const { in getComputedHash() 113 virtual hash_code getHashValue() const { return getOpcode(); } in getHashValue() 222 hash_code getHashValue() const override { in getHashValue() 285 hash_code getHashValue() const override { in getHashValue() 462 hash_code getHashValue() const override { in getHashValue() 528 hash_code getHashValue() const override { in getHashValue() 574 hash_code getHashValue() const override { in getHashValue() 611 hash_code getHashValue() const override { in getHashValue() 647 hash_code getHashValue() const override { in getHashValue()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolID.h | 62 inline llvm::hash_code hash_value(const SymbolID &ID) { in hash_value() 68 return llvm::hash_code(Result); in hash_value()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Sanitizers.h | 25 class hash_code; variable 74 llvm::hash_code hash_value() const; 127 llvm::hash_code hash_value(const clang::SanitizerMask &Arg);
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/ |
| H A D | MCRegister.h | 25 friend hash_code hash_value(const MCRegister &); 111 inline hash_code hash_value(const MCRegister &Reg) {
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | RegisterBankInfo.cpp | 264 static hash_code hashPartialMapping(unsigned StartIdx, unsigned Length, in hashPartialMapping() 270 hash_code 281 hash_code Hash = hashPartialMapping(StartIdx, Length, &RegBank); in getPartialMapping() 299 static hash_code 315 hash_code Hash = hashValueMapping(BreakDown, NumBreakDowns); in getValueMapping() 335 hash_code Hash = hash_combine_range(Begin, End); in getOperandsMapping() 370 static hash_code 388 hash_code Hash = in getInstructionMappingImpl()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | Attributes.h | 91 friend ::llvm::hash_code hash_value(Attribute arg); 143 inline ::llvm::hash_code hash_value(Attribute arg) { in hash_value() 191 friend ::llvm::hash_code hash_value(const NamedAttribute &arg); 201 inline ::llvm::hash_code hash_value(const NamedAttribute &arg) { in hash_value()
|
| H A D | IntegerSet.h | 108 friend ::llvm::hash_code hash_value(IntegerSet arg); 124 inline ::llvm::hash_code hash_value(IntegerSet arg) { in hash_value()
|
| H A D | OperationSupport.h | 239 inline llvm::hash_code hash_value(OperationName arg) { in hash_value() 856 static llvm::hash_code computeHash( 858 function_ref<llvm::hash_code(Value)> hashOperands = 860 function_ref<llvm::hash_code(Value)> hashResults = 866 static llvm::hash_code ignoreHashValue(Value) { return llvm::hash_code{}; } in ignoreHashValue() 869 static llvm::hash_code directHashValue(Value v) { return hash_value(v); } in directHashValue()
|
| H A D | Location.h | 86 friend ::llvm::hash_code hash_value(Location arg); 105 inline ::llvm::hash_code hash_value(Location arg) { in hash_value()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/include/automemcpy/ |
| H A D | FunctionDescriptor.h | 149 template <typename T> llvm::hash_code hash_value(const ArrayRef<T> &V) { in hash_value() 152 template <typename T> llvm::hash_code hash_value(const T &O) { in hash_value()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Sanitizers.cpp | 56 llvm::hash_code SanitizerMask::hash_value() const { in hash_value() 68 llvm::hash_code hash_value(const clang::SanitizerMask &Arg) { in hash_value()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | HeaderSearchOptions.h | 262 inline llvm::hash_code hash_value(const HeaderSearchOptions::Entry &E) { in hash_value() 272 inline llvm::hash_code
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | HashBuilder.h | 418 hash_code DataCode = hash_value(Data); in update() 421 hash_code Code; 433 hash_code>
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/type.index/type.index.hash/ |
| H A D | hash.pass.cpp | 36 assert(std::hash<std::type_index>()(t1) == t1.hash_code()); in main()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Linking/ModuleCombiner/ |
| H A D | ModuleCombiner.cpp | 76 static llvm::hash_code computeHash(SymbolOpInterface symbolOp) { in computeHash() 211 DenseMap<llvm::hash_code, SymbolOpInterface> hashToSymbolOp; in combine()
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | TypeID.h | 137 friend ::llvm::hash_code hash_value(TypeID id); 149 inline ::llvm::hash_code hash_value(TypeID id) { in hash_value()
|