Home
last modified time | relevance | path

Searched refs:hash_value (Results 1 – 25 of 112) sorted by relevance

12345

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DHashingTest.cpp66 EXPECT_EQ(hash_value(42), hash_value(x)); in TEST()
67 EXPECT_EQ(hash_value(42), hash_value(TE_Foo)); in TEST()
68 EXPECT_NE(hash_value(42), hash_value(y)); in TEST()
69 EXPECT_NE(hash_value(42), hash_value(TE_Bar)); in TEST()
70 EXPECT_NE(hash_value(42), hash_value(p)); in TEST()
71 EXPECT_EQ(hash_value(71), hash_value(i)); in TEST()
72 EXPECT_EQ(hash_value(71), hash_value(ci)); in TEST()
73 EXPECT_EQ(hash_value(71), hash_value(vi)); in TEST()
74 EXPECT_EQ(hash_value(71), hash_value(cvi)); in TEST()
75 EXPECT_EQ(hash_value(c), hash_value('x')); in TEST()
[all …]
H A DOptionalTest.cpp798 EXPECT_NE(hash_value(B0), hash_value(B)); in TEST()
799 EXPECT_NE(hash_value(B1), hash_value(B)); in TEST()
800 EXPECT_NE(hash_value(B1), hash_value(B0)); in TEST()
804 EXPECT_NE(hash_value(I0), hash_value(I)); in TEST()
805 EXPECT_NE(hash_value(I1), hash_value(I)); in TEST()
806 EXPECT_NE(hash_value(I1), hash_value(I0)); in TEST()
809 EXPECT_EQ(hash_value(B), hash_value(I)); in TEST()
H A DStringRefTest.cpp604 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef())); in TEST()
605 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef(""))); in TEST()
607 hash_code H = hash_value(S); in TEST()
608 EXPECT_EQ(H, hash_value(StringRef("hello world"))); in TEST()
609 EXPECT_EQ(H, hash_value(StringRef(S))); in TEST()
610 EXPECT_NE(H, hash_value(StringRef("hello worl"))); in TEST()
611 EXPECT_EQ(hash_value(std::string("hello worl")), in TEST()
612 hash_value(StringRef("hello worl"))); in TEST()
614 EXPECT_EQ(hash_value(std::string("hello world ")), in TEST()
615 hash_value(StringRef("hello world "))); in TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h262 llvm::hash_value(ID.Inst->getOpcode()), in hash_value()
263 llvm::hash_value(ID.Inst->getType()), in hash_value()
264 llvm::hash_value(ID.getPredicate()), in hash_value()
274 llvm::hash_value(ID.Inst->getType()), llvm::hash_value(IntrinsicID), in hash_value()
275 llvm::hash_value(*ID.CalleeName), in hash_value()
283 llvm::hash_value(ID.Inst->getType()), in hash_value()
284 llvm::hash_value(ID.Inst->getType()), llvm::hash_value(FunctionName), in hash_value()
289 llvm::hash_value(ID.Inst->getOpcode()), in hash_value()
290 llvm::hash_value(ID.Inst->getType()), in hash_value()
318 using llvm::hash_value; in getHashValue()
[all …]
/llvm-project-15.0.7/libc/benchmarks/automemcpy/include/automemcpy/
H A DFunctionDescriptor.h30 return llvm::hash_value(K.asTuple()); \
140 inline size_t id() const { return llvm::hash_value(asTuple()); } in COMPARABLE_AND_HASHABLE()
149 template <typename T> llvm::hash_code hash_value(const ArrayRef<T> &V) { in hash_value() function
152 template <typename T> llvm::hash_code hash_value(const T &O) { in hash_value() function
153 return llvm::hash_value(O.asTuple()); in hash_value()
/llvm-project-15.0.7/mlir/lib/Analysis/Presburger/
H A DMPInt.cpp15 llvm::hash_code mlir::presburger::hash_value(const MPInt &x) { in hash_value() function in mlir::presburger
17 return llvm::hash_value(x.getSmall()); in hash_value()
18 return detail::hash_value(x.getLarge()); in hash_value()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DHashing.h95 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value() function
111 template <typename T> hash_code hash_value(const T *ptr);
115 hash_code hash_value(const std::pair<T, U> &arg);
119 hash_code hash_value(const std::tuple<Ts...> &arg);
123 hash_code hash_value(const std::basic_string<T> &arg);
378 using ::llvm::hash_value;
379 return hash_value(value);
642 template <typename T> hash_code hash_value(const T *ptr) {
650 hash_code hash_value(const std::pair<T, U> &arg) {
668 hash_code hash_value(const std::tuple<Ts...> &arg) {
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DIntegerSet.h108 friend ::llvm::hash_code hash_value(IntegerSet arg);
124 inline ::llvm::hash_code hash_value(IntegerSet arg) { in hash_value() function
125 return ::llvm::hash_value(arg.set); in hash_value()
143 return mlir::hash_value(val);
H A DLocation.h86 friend ::llvm::hash_code hash_value(Location arg);
105 inline ::llvm::hash_code hash_value(Location arg) { in hash_value() function
106 return hash_value(arg.impl); in hash_value()
151 return mlir::hash_value(val);
H A DAttributes.h91 friend ::llvm::hash_code hash_value(Attribute arg);
143 inline ::llvm::hash_code hash_value(Attribute arg) { in hash_value() function
191 friend ::llvm::hash_code hash_value(const NamedAttribute &arg);
201 inline ::llvm::hash_code hash_value(const NamedAttribute &arg) { in hash_value() function
270 return mlir::hash_value(val);
315 return mlir::hash_value(val);
H A DAffineExpr.h186 friend ::llvm::hash_code hash_value(AffineExpr arg);
240 inline ::llvm::hash_code hash_value(AffineExpr arg) { in hash_value() function
241 return ::llvm::hash_value(arg.expr); in hash_value()
355 return mlir::hash_value(val);
H A DAffineMap.h321 friend ::llvm::hash_code hash_value(AffineMap arg);
339 inline ::llvm::hash_code hash_value(AffineMap arg) { in hash_value() function
340 return ::llvm::hash_value(arg.map); in hash_value()
609 return mlir::hash_value(val);
/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() function
123 friend hash_code hash_value(const Matrix &);
237 inline hash_code hash_value(const Matrix &M) { in hash_value() function
267 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() function
268 return hash_value(static_cast<const Vector&>(V)); in hash_value()
284 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value() function
285 return hash_value(static_cast<const Matrix&>(M)); in hash_value()
/llvm-project-15.0.7/lldb/examples/synthetic/
H A Dunordered_multi.py105 hash_value = node.GetChildMemberWithName(
107 self.elements_cache.append((value, hash_value))
116 value, hash_value = self.elements_cache[index]
119 (index, hash_value), value.GetData(), value.GetType())
/llvm-project-15.0.7/mlir/lib/IR/
H A DAttributeDetail.h108 return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat); in getKey()
128 auto hashVal = llvm::hash_value(firstElt); in getKey()
149 llvm::hash_value(ArrayRef<char>(splatValue ? 1 : 0)), in getKeyForBoolData()
160 return KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData()
172 : KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData()
252 return KeyTy(ty, data, llvm::hash_value(data.front()), isKnownSplat); in getKey()
260 auto hashVal = llvm::hash_value(firstElt); in getKey()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFileDistance.cpp58 llvm::hash_value(llvm::StringRef("/"));
72 llvm::hash_code Hash = llvm::hash_value(Rest); in FileDistance()
75 auto NextHash = llvm::hash_value(Rest); in FileDistance()
101 for (auto Child : DownEdges.lookup(llvm::hash_value(llvm::StringRef("")))) in FileDistance()
126 auto Hash = llvm::hash_value(Rest); in distance()
151 auto R = Cache.try_emplace(llvm::hash_value(URI), FileDistance::Unreachable); in distance()
/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) {
112 return hash_value(Reg.id());
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/
H A Dpath.compare.pass.cpp131 auto h1 = hash_value(p1); in test_compare_basic()
132 auto h2 = hash_value(p2); in test_compare_basic()
135 ASSERT_SAME_TYPE(size_t, decltype(hash_value(p1))); in test_compare_basic()
136 ASSERT_NOEXCEPT(hash_value(p1)); in test_compare_basic()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSanitizers.cpp56 llvm::hash_code SanitizerMask::hash_value() const { in hash_value() function in SanitizerMask
68 llvm::hash_code hash_value(const clang::SanitizerMask &Arg) { in hash_value() function
69 return Arg.hash_value(); in hash_value()
/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DPredicate.h66 friend llvm::hash_code hash_value(Pred pred) { in hash_value() function
67 return llvm::hash_value(pred.def); in hash_value()
/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() function
89 return hash_value(Sym);
/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() function
348 return mlir::hash_value(val); in MLIR_DECLARE_EXPLICIT_TYPE_ID()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/
H A DToken.h104 friend llvm::hash_code hash_value(const Token &Token) { in hash_value() function
126 return hash_value(Tag);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDirectoryEntry.h58 friend llvm::hash_code hash_value(DirectoryEntryRef Ref) { in hash_value() function
59 return llvm::hash_value(&Ref.getDirEntry()); in hash_value()
221 return hash_value(Val);
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinarySection.cpp49 hash_combine(hash_value(BD.getSize()), hash_value(BD.getSectionName())); in hash()
54 Hash, hash_value(Contents.substr(Offset, Begin->Offset - Offset))); in hash()
61 hash_value(Contents.substr(Offset, EndOffset - Offset))); in hash()

12345