FoldingSet that passes a fixed context to each node's Profile.

Synopsis

Declared in <llvm/ADT/FoldingSet.h>

template<
    class T,
    class Ctx>
using ContextualFoldingSet = FoldingSetImpl<T, ContextualFoldingSetTrait<T, Ctx>>;

Description

Currently, that argument is fixed at initialization time.

T must be a subclass of FoldingSetNode and implement a Profile function with signature void Profile(FoldingSetNodeID &, Ctx);

Created with MrDocs