LLVM: llvm::MachineConstantPool Class Reference (original) (raw)

The MachineConstantPool class keeps track of constants referenced by a function which must be spilled to memory. More...

#include "[llvm/CodeGen/MachineConstantPool.h](MachineConstantPool%5F8h%5Fsource.html)"

Public Member Functions
MachineConstantPool (const DataLayout &DL)
The only constructor.
~MachineConstantPool ()
Align getConstantPoolAlign () const
Return the alignment required by the whole constant pool, of which the first element must be aligned.
unsigned getConstantPoolIndex (const Constant *C, Align Alignment)
getConstantPoolIndex - Create a new entry in the constant pool or return an existing one.
unsigned getConstantPoolIndex (MachineConstantPoolValue *V, Align Alignment)
bool isEmpty () const
isEmpty - Return true if this constant pool contains no constants.
const std::vector< MachineConstantPoolEntry > & getConstants () const
void print (raw_ostream &OS) const
print - Used by the MachineFunction printer to print information about constant pool objects.
void dump () const
dump - Call print(cerr) to be called from the debugger.

The MachineConstantPool class keeps track of constants referenced by a function which must be spilled to memory.

This is used for constants which are unable to be used directly as operands to instructions, which typically include floating point and large integer constants.

Instructions reference the address of these constant pool constants through the use of MO_ConstantPoolIndex values. When emitting assembly or machine code, these virtual address references are converted to refer to the address of the function constant pool values. The machine constant pool.

Definition at line 117 of file MachineConstantPool.h.

llvm::MachineConstantPool::MachineConstantPool ( const DataLayout & DL) inlineexplicit

~MachineConstantPool()

MachineConstantPool::~MachineConstantPool ( )

dump()

getConstantPoolAlign()

Align llvm::MachineConstantPool::getConstantPoolAlign ( ) const inline

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

Definition at line 134 of file MachineConstantPool.h.

getConstantPoolIndex() [1/2]

getConstantPoolIndex() [2/2]

getConstants()

isEmpty()

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

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

Definition at line 143 of file MachineConstantPool.h.

print()

void MachineConstantPool::print ( raw_ostream & OS ) const

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