LLVM API Documentation

llvm::MachineConstantPoolEntry Class Reference

An entry in a MachineConstantPool. More...

#include <MachineConstantPool.h>

Collaboration diagram for llvm::MachineConstantPoolEntry:
[legend]

List of all members.

Public Member Functions

 MachineConstantPoolEntry (Constant *V, unsigned O)
 MachineConstantPoolEntry (MachineConstantPoolValue *V, unsigned O)
bool isMachineConstantPoolEntry () const
int getOffset () const
const Type * getType () const

Public Attributes

union {
   Constant *   ConstVal
   MachineConstantPoolValue *   MachineCPVal
} Val
 The constant itself.
unsigned Offset


Detailed Description

An entry in a MachineConstantPool.

This class is a data container for one entry in a MachineConstantPool. It contains a pointer to the value and an offset from the start of the constant pool.

Definition at line 64 of file MachineConstantPool.h.


Constructor & Destructor Documentation

llvm::MachineConstantPoolEntry::MachineConstantPoolEntry ( Constant *  V,
unsigned  O 
) [inline]

Definition at line 76 of file MachineConstantPool.h.

References Offset, and Val.

llvm::MachineConstantPoolEntry::MachineConstantPoolEntry ( MachineConstantPoolValue *  V,
unsigned  O 
) [inline]

Definition at line 81 of file MachineConstantPool.h.

References Offset, and Val.


Member Function Documentation

bool llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry (  )  const [inline]

Definition at line 88 of file MachineConstantPool.h.

References Offset.

Referenced by llvm::AsmPrinter::EmitConstantPool(), GetConstantPoolSizeInBytes(), and getType().

int llvm::MachineConstantPoolEntry::getOffset (  )  const [inline]

Definition at line 92 of file MachineConstantPool.h.

References Offset.

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

const Type * MachineConstantPoolEntry::getType (  )  const

Definition at line 492 of file MachineFunction.cpp.

References isMachineConstantPoolEntry(), and Val.

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


Member Data Documentation

The offset of the constant from the start of the pool. The top bit is set when Val is a MachineConstantPoolValue.

Definition at line 74 of file MachineConstantPool.h.

Referenced by GetConstantPoolSizeInBytes(), getOffset(), isMachineConstantPoolEntry(), and MachineConstantPoolEntry().


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