llvm::DefaultContextualFoldingSetTrait

Like DefaultFoldingSetTrait, but for ContextualFoldingSets.

Synopsis

Declared in <llvm/ADT/FoldingSet.h>

template<
    typename T,
    typename Ctx>
struct DefaultContextualFoldingSetTrait;

Types

NameDescription
ContextStorage Holds the fixed context passed to Profile, Equals, and ComputeHash.

Static Member Functions

NameDescription
ComputeHash Compute a hash value for X under Context, using TempID to compute a temporary ID if necessary. The default implementation profiles X and hashes the result. Implementations can override this to provide more efficient implementations.
Equals Test whether the profile for X matches ID under Context, using TempID to compute a temporary ID if necessary.
Profile Gather the unique data bits of X into ID, using Context.

Derived Classes

NameDescription
ContextualFoldingSetTrait Like FoldingSetTrait, but for ContextualFoldingSets.