struct NodeAllocator

Declaration

struct NodeAllocator { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:373

Member Variables

private const uint32_t NodesPerBlock
private const uint32_t BitsPerIndex
private const uint32_t IndexMask
private char* ActiveEnd = nullptr
private std::vector<char*> Blocks
private llvm::rdf::NodeAllocator::AllocatorTy MemPool

Method Overview

  • public NodeAddr<llvm::rdf::NodeBase *> New()
  • public NodeAllocator(uint32_t NPB = 4096)
  • public void clear()
  • public llvm::rdf::NodeId id(const llvm::rdf::NodeBase * P) const
  • private uint32_t makeId(uint32_t Block, uint32_t Index) const
  • private bool needNewBlock()
  • public llvm::rdf::NodeBase * ptr(llvm::rdf::NodeId N) const
  • private void startNewBlock()

Methods

NodeAddr<llvm::rdf::NodeBase*> New()

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:391

NodeAllocator(uint32_t NPB = 4096)

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:377

Parameters

uint32_t NPB = 4096

void clear()

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:392

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

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:390

Parameters

const llvm::rdf::NodeBase* P

uint32_t makeId(uint32_t Block,
                uint32_t Index) const

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:398

Parameters

uint32_t Block
uint32_t Index

bool needNewBlock()

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:396

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

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:383

Parameters

llvm::rdf::NodeId N

void startNewBlock()

Declared at: llvm/include/llvm/CodeGen/RDFGraph.h:395