Home
last modified time | relevance | path

Searched refs:hash_code (Results 1 – 25 of 109) sorted by relevance

12345

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DHashing.h73 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 Dtype_info_hash.pass.cpp24 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 DHashingTest.cpp25 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 DFileDistance.cpp57 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 DFileDistance.h70 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 DAttributeDetail.h59 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 Dhash_code.pass.cpp26 assert(t1.hash_code() == ti.hash_code()); in main()
/llvm-project-15.0.7/libcxx/include/
H A Dtypeindex32 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 DMath.h26 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 DGVNExpression.h64 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 DSymbolID.h62 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 DSanitizers.h25 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 DMCRegister.h25 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 DRegisterBankInfo.cpp264 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 DAttributes.h91 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 DIntegerSet.h108 friend ::llvm::hash_code hash_value(IntegerSet arg);
124 inline ::llvm::hash_code hash_value(IntegerSet arg) { in hash_value()
H A DOperationSupport.h239 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 DLocation.h86 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 DFunctionDescriptor.h149 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 DSanitizers.cpp56 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 DHeaderSearchOptions.h262 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 DHashBuilder.h418 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 Dhash.pass.cpp36 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 DModuleCombiner.cpp76 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 DTypeID.h137 friend ::llvm::hash_code hash_value(TypeID id);
149 inline ::llvm::hash_code hash_value(TypeID id) { in hash_value()

12345