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

#include <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 376 of file RDFGraph.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NodeMemSize 

Definition at line 378 of file RDFGraph.h.

Constructor & Destructor Documentation

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

Definition at line 380 of file RDFGraph.h.

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

Member Function Documentation

void NodeAllocator::clear ( )
NodeId NodeAllocator::id ( const NodeBase P) const

Definition at line 391 of file RDFGraph.cpp.

References A, B, i, llvm_unreachable, and P.

NodeAddr< NodeBase * > NodeAllocator::New ( )

Definition at line 379 of file RDFGraph.cpp.

References NodeMemSize.

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

Definition at line 386 of file RDFGraph.h.

References NodeMemSize, and Offset.


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