Like FoldingSetTrait, but for ContextualFoldingSets.

Synopsis

Declared in <llvm/ADT/FoldingSet.h>

template<
    typename T,
    typename Ctx>
struct ContextualFoldingSetTrait
    : DefaultContextualFoldingSetTrait<T, Ctx>

Base Classes

Name

Description

DefaultContextualFoldingSetTrait<T, Ctx>

Like DefaultFoldingSetTrait, but for ContextualFoldingSets.

Types

Name

Description

ContextStorage

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

Static Member Functions

Name

Description

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.

Created with MrDocs