LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::rdf::NodeAllocator Struct Reference

#include "llvm/CodeGen/RDFGraph.h"

Public Types

enum  { NodeMemSize = 32 }
 

Public Member Functions

 NodeAllocator (uint32_t NPB=4096)
 
NodeBaseptr (NodeId N) const
 
NodeId id (const NodeBase *P) const
 
Node New ()
 
void clear ()
 

Detailed Description

Definition at line 411 of file RDFGraph.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NodeMemSize 

Definition at line 413 of file RDFGraph.h.

Constructor & Destructor Documentation

◆ NodeAllocator()

llvm::rdf::NodeAllocator::NodeAllocator ( uint32_t  NPB = 4096)
inline

Definition at line 415 of file RDFGraph.h.

References assert(), and llvm::isPowerOf2_32().

Member Function Documentation

◆ clear()

void llvm::rdf::NodeAllocator::clear ( )

◆ id()

NodeId llvm::rdf::NodeAllocator::id ( const NodeBase P) const

Definition at line 370 of file RDFGraph.cpp.

References A, B, Idx, llvm_unreachable, NodeMemSize, and P.

◆ New()

Node llvm::rdf::NodeAllocator::New ( )

Definition at line 359 of file RDFGraph.cpp.

References Index, and NodeMemSize.

◆ ptr()

NodeBase * llvm::rdf::NodeAllocator::ptr ( NodeId  N) const
inline

Definition at line 421 of file RDFGraph.h.

References N, NodeMemSize, and llvm::Offset.


The documentation for this struct was generated from the following files: