LLVM 22.0.0git
llvm::AddressPool Class Reference

#include "CodeGen/AsmPrinter/AddressPool.h"

Public Member Functions

 AddressPool ()=default
unsigned getIndex (const MCSymbol *Sym, bool TLS=false)
 Returns the index into the address pool with the given label/symbol.
void emit (AsmPrinter &Asm, MCSection *AddrSection)
bool isEmpty ()
bool hasBeenUsed () const
void resetUsedFlag (bool HasBeenUsed=false)
MCSymbolgetLabel ()
void setLabel (MCSymbol *Sym)

Detailed Description

Definition at line 23 of file AddressPool.h.

Constructor & Destructor Documentation

◆ AddressPool()

llvm::AddressPool::AddressPool ( )
default

Member Function Documentation

◆ emit()

void AddressPool::emit ( AsmPrinter & Asm,
MCSection * AddrSection )

Definition at line 42 of file AddressPool.cpp.

References llvm::MCSymbolRefExpr::create(), I, and isEmpty().

◆ getIndex()

unsigned AddressPool::getIndex ( const MCSymbol * Sym,
bool TLS = false )

Returns the index into the address pool with the given label/symbol.

Definition at line 19 of file AddressPool.cpp.

References resetUsedFlag().

Referenced by emitRangeList().

◆ getLabel()

MCSymbol * llvm::AddressPool::getLabel ( )
inline

Definition at line 53 of file AddressPool.h.

◆ hasBeenUsed()

bool llvm::AddressPool::hasBeenUsed ( ) const
inline

Definition at line 49 of file AddressPool.h.

◆ isEmpty()

bool llvm::AddressPool::isEmpty ( )
inline

Definition at line 47 of file AddressPool.h.

Referenced by emit().

◆ resetUsedFlag()

void llvm::AddressPool::resetUsedFlag ( bool HasBeenUsed = false)
inline

Definition at line 51 of file AddressPool.h.

Referenced by getIndex().

◆ setLabel()

void llvm::AddressPool::setLabel ( MCSymbol * Sym)
inline

Definition at line 54 of file AddressPool.h.


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