An opaque object representing a hash code.

Synopsis

Declared in <llvm/ADT/Hashing.h>

class hash_code;

Description

This object represents the result of hashing some entity. It is intended to be used to implement hashtables or other hashing‐based data structures. While it wraps and exposes a numeric value, this value should not be trusted to be stable or predictable across processes or executions.

In order to obtain the hash_code for an object 'x':

using llvm::hash_value;
llvm::hash_code code = hash_value(x);

Member Functions

Name

Description

hash_code [constructor]

Constructors

operator size_t

Convert the hash code to its numerical value for use.

Friends

Name

Description

llvm::hash_value

Allow a hash_code to be directly run through hash_value.

llvm::operator!=

Compare two hash codes for inequality.

llvm::operator==

Compare two hash codes for equality.

Non-Member Functions

Name

Description

hash_combine

Combine values into a single hash_code.

hash_combine_range

Compute a hash_code for the elements of R.

hash_combine_range

Compute a hash_code for a sequence of values.

hash_value

Compute a hash_code for a pair of objects.

hash_value

Compute a hash_code for a standard string.

hash_value

Compute a hash_code for a pointer's address.

hash_value

Compute a hash_code for any integer value.

hash_value

MachineOperand hash_value overload.

hash_value

Overload to compute a hash_code for an APInt value.

hash_value

Compute a hash_code for version tuple VT.

hash_value

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

hash_value

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

hash_value

Compute a hash code for fixed‐point value Val.

hash_value

See friend declarations above.

hash_value

Computes a hash code for x.

hash_value

Compute a hash_code for a tuple.

hash_value

Compute a hash_code for an optional value.

hash_value

Compute a hash code for fixed‐point semantics Val.

hash_value

Compute a hash code for specialization signature S.

hash_value

Compute a hash_code for an ArrayRef.

hash_value

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

hash_value

Compute a hash_code for a StringRef.

hash_value

Compute a hash code for register Reg.

PBQP::hash_value

Return a hash_code for the given metadata vector.

PBQP::hash_value

Return a hash_code for the given metadata matrix.

PBQP::hash_value

Return a hash_code for the given matrix.

PBQP::hash_value

Return a hash_value for the given vector.

cas::hash_value

Hash a CASID from its raw hash bytes for use in DenseMap and similar.

orc::hash_value

Compute a hash value for symbol‐string pointer S.

PBQP::RegAlloc::hash_value

Return a hash code for the allowed‐register vector OptRegs.

Created with MrDocs