reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/Hashing.h
  105 hash_value(T value);

References

include/llvm/Object/WasmTraits.h
   36     uintptr_t H = hash_value(Sig.State);
include/llvm/TextAPI/MachO/InterfaceFile.h
  145     return hash_combine(hash_value(Key.Kind), hash_value(Key.Name));
tools/clang/include/clang/AST/APValue.h
  223       return llvm::hash_value(A.Value);
unittests/ADT/HashingTest.cpp
   65   EXPECT_EQ(hash_value(42), hash_value(x));
   65   EXPECT_EQ(hash_value(42), hash_value(x));
   66   EXPECT_EQ(hash_value(42), hash_value(TE_Foo));
   66   EXPECT_EQ(hash_value(42), hash_value(TE_Foo));
   67   EXPECT_NE(hash_value(42), hash_value(y));
   67   EXPECT_NE(hash_value(42), hash_value(y));
   68   EXPECT_NE(hash_value(42), hash_value(TE_Bar));
   68   EXPECT_NE(hash_value(42), hash_value(TE_Bar));
   69   EXPECT_NE(hash_value(42), hash_value(p));
   70   EXPECT_EQ(hash_value(71), hash_value(i));
   70   EXPECT_EQ(hash_value(71), hash_value(i));
   71   EXPECT_EQ(hash_value(71), hash_value(ci));
   71   EXPECT_EQ(hash_value(71), hash_value(ci));
   72   EXPECT_EQ(hash_value(71), hash_value(vi));
   72   EXPECT_EQ(hash_value(71), hash_value(vi));
   73   EXPECT_EQ(hash_value(71), hash_value(cvi));
   73   EXPECT_EQ(hash_value(71), hash_value(cvi));
   74   EXPECT_EQ(hash_value(c), hash_value('x'));
   74   EXPECT_EQ(hash_value(c), hash_value('x'));
   75   EXPECT_EQ(hash_value('4'), hash_value('0' + 4));
   75   EXPECT_EQ(hash_value('4'), hash_value('0' + 4));
   76   EXPECT_EQ(hash_value(addr), hash_value(&y));