LLVM  14.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
NodeAddr< NodeBase * > New ()
void clear ()

Detailed Description

Definition at line 373 of file RDFGraph.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 375 of file RDFGraph.h.

Constructor & Destructor Documentation

◆ NodeAllocator()

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

Definition at line 377 of file RDFGraph.h.

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

Member Function Documentation

◆ clear()

void NodeAllocator::clear ( )

◆ id()

NodeId NodeAllocator::id ( const NodeBase P) const

Definition at line 377 of file RDFGraph.cpp.

References B, i, llvm_unreachable, n, NodeMemSize, and P.

◆ New()

NodeAddr< NodeBase * > NodeAllocator::New ( )

Definition at line 365 of file RDFGraph.cpp.

References Index, and NodeMemSize.

◆ ptr()

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

Definition at line 383 of file RDFGraph.h.

References N, NodeMemSize, and Offset.

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