hash_value overloads

Synopses

Declared in <llvm/ADT/APFloat.h>

Compute a hash_code for a StringRef.

[[nodiscard]]
hash_code
hash_value(StringRef S);

Compute a hash code for fixed‐point value Val.

See friend declarations above.

Overload to compute a hash_code for an APInt value.

hash_code
hash_value(APInt const& Arg);

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

Computes a hash code for x.

Compute a hash code for fixed‐point semantics Val.

Compute a hash code for register Reg.

MachineOperand hash_value overload.

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

Compute a hash code for specialization signature S.

Compute a hash_code for version tuple VT.

Allow a hash_code to be directly run through hash_value.

constexpr
size_t
hash_value(hash_code const& code);

Compute a hash_code for any integer value.

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

Compute a hash_code for an ArrayRef.

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

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;

Compute a hash_code for a standard string.

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

Compute a hash_code for an optional value.

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

Compute a hash_code for a tuple.

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

Compute a hash_code for a pointer's address.

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

Compute a hash_code for a pair of objects.

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

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

Name

Description

S

The string to hash.

Val

Value to hash.

Arg

floating‐point value to hash

A

ArgInfo whose members are hashed.

x

Value to hash.

Reg

Register to hash.

MO

Operand to hash.

PartMapping

Partial mapping to hash.

VT

Version tuple to hash.

code

Hash code whose numerical value to return.

value

Integer or enumeration value to hash.

Value

Value to hash via HashCodeHashBuilder.

arg

String whose characters are hashed as a range.

ptr

Pointer whose address is hashed.

Created with MrDocs