LLVM 19.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::FastFoldingSetNode Class Reference

FastFoldingSetNode - This is a subclass of FoldingSetNode which stores a FoldingSetNodeID value rather than requiring the node to recompute it each time it is needed. More...

#include "llvm/ADT/FoldingSet.h"

Inheritance diagram for llvm::FastFoldingSetNode:
Inheritance graph
[legend]

Public Member Functions

void Profile (FoldingSetNodeID &ID) const
 
- Public Member Functions inherited from llvm::FoldingSetBase::Node
 Node ()=default
 
void * getNextInBucket () const
 
void SetNextInBucket (void *N)
 

Protected Member Functions

 FastFoldingSetNode (const FoldingSetNodeID &ID)
 

Detailed Description

FastFoldingSetNode - This is a subclass of FoldingSetNode which stores a FoldingSetNodeID value rather than requiring the node to recompute it each time it is needed.

This trades space for speed (which can be significant if the ID is long), and it also permits nodes to drop information that would otherwise only be required for recomputing an ID.

Definition at line 813 of file FoldingSet.h.

Constructor & Destructor Documentation

◆ FastFoldingSetNode()

llvm::FastFoldingSetNode::FastFoldingSetNode ( const FoldingSetNodeID ID)
inlineexplicitprotected

Definition at line 817 of file FoldingSet.h.

Member Function Documentation

◆ Profile()

void llvm::FastFoldingSetNode::Profile ( FoldingSetNodeID ID) const
inline

Definition at line 820 of file FoldingSet.h.


The documentation for this class was generated from the following file: