LLVM API Documentation

llvm::MachineConstantPool Class Reference

#include <MachineConstantPool.h>

Collaboration diagram for llvm::MachineConstantPool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MachineConstantPool (const TargetData &td)
unsigned getConstantPoolAlignment () const
unsigned getConstantPoolIndex (Constant *C, unsigned Alignment)
bool isEmpty () const
const std::vector< MachineConstantPoolEntry > & getConstants () const
void print (std::ostream &OS) const
void dump () const

Detailed Description

Definition at line 44 of file MachineConstantPool.h.


Constructor & Destructor Documentation

llvm::MachineConstantPool::MachineConstantPool ( const TargetData td  )  [inline]

Definition at line 49 of file MachineConstantPool.h.


Member Function Documentation

void MachineConstantPool::dump (  )  const

dump - Call print(std::cerr) to be called from the debugger.

Definition at line 376 of file MachineFunction.cpp.

References print().

unsigned llvm::MachineConstantPool::getConstantPoolAlignment (  )  const [inline]

getConstantPoolAlignment - Return the log2 of the alignment required by the whole constant pool, of which the first element must be aligned.

Definition at line 53 of file MachineConstantPool.h.

Referenced by llvm::AsmPrinter::EmitConstantPool().

unsigned MachineConstantPool::getConstantPoolIndex ( Constant C,
unsigned  Alignment 
)

getConstantPoolIndex - Create a new entry in the constant pool or return an existing one. User must specify an alignment in bytes for the object.

Definition at line 343 of file MachineFunction.cpp.

References llvm::CallingConv::C, llvm::TargetData::getTypeSize(), Offset, TD, and Val.

const std::vector<MachineConstantPoolEntry>& llvm::MachineConstantPool::getConstants (  )  const [inline]

Definition at line 64 of file MachineConstantPool.h.

Referenced by llvm::AsmPrinter::EmitConstantPool().

bool llvm::MachineConstantPool::isEmpty (  )  const [inline]

isEmpty - Return true if this constant pool contains no constants.

Definition at line 62 of file MachineConstantPool.h.

Referenced by llvm::ELFCodeEmitter::emitConstantPool().

void MachineConstantPool::print ( std::ostream &  OS  )  const

print - Used by the MachineFunction printer to print information about stack objects. Implemented in MachineFunction.cpp

Definition at line 368 of file MachineFunction.cpp.

Referenced by dump(), and llvm::MachineFunction::print().


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