LLVM API Documentation

Public Member Functions | Public Attributes
llvm::MachineConstantPoolEntry Class Reference

An entry in a MachineConstantPool. More...

#include <MachineConstantPool.h>

Collaboration diagram for llvm::MachineConstantPoolEntry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MachineConstantPoolEntry (const Constant *V, unsigned A)
 MachineConstantPoolEntry (MachineConstantPoolValue *V, unsigned A)
bool isMachineConstantPoolEntry () const
int getAlignment () const
TypegetType () const
unsigned getRelocationInfo () const
SectionKind getSectionKind (const DataLayout *DL) const

Public Attributes

union {
   const Constant *   ConstVal
   MachineConstantPoolValue *   MachineCPVal
Val
 The constant itself.
unsigned Alignment

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 76 of file MachineConstantPool.h.


Constructor & Destructor Documentation

Definition at line 88 of file MachineConstantPool.h.

References Val.

Definition at line 92 of file MachineConstantPool.h.

References Alignment, and Val.


Member Function Documentation

Definition at line 105 of file MachineConstantPool.h.

References Alignment.

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

getRelocationInfo - This method classifies the entry according to whether or not it may generate a relocation entry. This must be conservative, so if it might codegen to a relocatable entry, it should say so. The return values are:

0: This constant pool entry is guaranteed to never have a relocation applied to it (because it holds a simple constant like '4'). 1: This entry has relocations, but the entries are guaranteed to be resolvable by the static linker, so the dynamic linker will never see them. 2: This entry may have arbitrary relocations.

Definition at line 839 of file MachineFunction.cpp.

References isMachineConstantPoolEntry(), and Val.

Referenced by getSectionKind().


Member Data Documentation

The required alignment for this entry. The top bit is set when Val is a target specific MachineConstantPoolValue.

Definition at line 86 of file MachineConstantPool.h.

Referenced by getAlignment(), isMachineConstantPoolEntry(), and MachineConstantPoolEntry().


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