llvm::hash_value

hash_value overloads

Synopses

Declared in <llvm/ADT/APFloat.h>

Compute a hash_code for a StringRef.

[[nodiscard]]
hash_code
hash_value(StringRef S);
» more...

Compute a hash code for fixed-point value Val.

hash_code
hash_value(APFixedPoint const& Val);
» more...

See friend declarations above.

hash_code
hash_value(APFloat const& Arg);
» more...

Overload to compute a hash_code for an APInt value.

hash_code
hash_value(APInt const& Arg);
» more...

Combine hashes of the formal and actual for use in hash-based containers.

hash_code
hash_value(ArgInfo const& A);
» more...

Computes a hash code for x.

hash_code
hash_value(DynamicAPInt const& x);
» more...

Compute a hash code for fixed-point semantics Val.

hash_code
hash_value(FixedPointSemantics const& Val);
» more...

Compute a hash code for register Reg.

hash_code
hash_value(MCRegister const& Reg);
» more...

MachineOperand hash_value overload.

hash_code
hash_value(MachineOperand const& MO);
» more...

Hashing function for PartialMapping. It is required for the hashing of ValueMapping.

hash_code
hash_value(RegisterBankInfo::PartialMapping const& PartMapping);
» more...

Compute a hash code for specialization signature S.

hash_code
hash_value(SpecSig const& S);
» more...

Compute a hash_code for version tuple VT.

hash_code
hash_value(VersionTuple const& VT);
» more...

Allow a hash_code to be directly run through hash_value.

constexpr
size_t
hash_value(hash_code const& code);
» more...

Compute a hash_code for any integer value.

template<typename T>
hash_code
hash_value(T value)
requires is_integral_or_enum<T>::value;
» more...

Compute a hash_code for an ArrayRef.

template<typename T>
hash_code
hash_value(ArrayRef<T> S);
» more...

Provide a default implementation of hash_value when addHash(const T &) is supported.

template<typename T>
hash_code
hash_value(T const& Value)
requires is_detected<hashbuilder_detail::HashCodeHashBuilder::HasAddHashT, T>::value;
» more...

Compute a hash_code for a standard string.

template<typename T>
hash_code
hash_value(std::basic_string<T> const& arg);
» more...

Compute a hash_code for an optional value.

template<typename T>
hash_code
hash_value(std::optional<T> const& arg);
» more...

Compute a hash_code for a tuple.

template<typename... Ts>
hash_code
hash_value(std::tuple<Ts...> const& arg);
» more...

Compute a hash_code for a pointer's address.

template<typename T>
hash_code
hash_value(T const* ptr);
» more...

Compute a hash_code for a pair of objects.

template<
    typename T,
    typename U>
hash_code
hash_value(std::pair<T, U> const& arg);
» more...

Return Value

  • Hash code for the contents of S.
  • Hash code for Val.
  • hash code for Arg
  • Hash code for Arg.
  • Combined hash of the formal and actual members.
  • Hash code for x.
  • A hash code for Reg.
  • A hash code for MO suitable for use with isIdenticalTo.
  • A hash code for PartMapping.
  • A hash code derived from S.
  • Hash code for the version components.
  • The numerical value wrapped by code.
  • A hash_code for value.
  • Hash code for the ArrayRef.
  • A hash_code for Value.
  • A hash_code for the characters of arg.
  • A hash_code for the engaged state and value of arg.
  • A hash_code combining all elements of arg.
  • A hash_code for the address of ptr.
  • A hash_code combining both members of arg.

Parameters

NameDescription
SThe string to hash.
ValValue to hash.
Argfloating-point value to hash
AArgInfo whose members are hashed.
xValue to hash.
RegRegister to hash.
MOOperand to hash.
PartMappingPartial mapping to hash.
VTVersion tuple to hash.
codeHash code whose numerical value to return.
valueInteger or enumeration value to hash.
ValueValue to hash via HashCodeHashBuilder.
argString whose characters are hashed as a range.
ptrPointer whose address is hashed.