llvm::DefaultFoldingSetTrait::Equals

Return whether X's profile matches ID.

Synopsis

Declared in <llvm/ADT/FoldingSet.h>

static
bool
Equals(
    T& X,
    FoldingSetNodeID const& ID,
    unsigned int IDHash,
    FoldingSetNodeID& TempID);

Description

Uses TempID to compute a temporary ID if necessary. The default implementation profiles X and compares the result to ID. Implementations can override this to provide more efficient comparisons.

Return Value

True if X's profile matches ID.

Parameters

NameDescription
XNode to compare.
IDProfile ID to match against.
IDHashPrecomputed hash of ID.
TempIDScratch ID for computing X's profile when needed.