LLVM API Documentation
#include <MachineConstantPool.h>
Public Member Functions | |
| MachineConstantPoolEntry (Constant *V, unsigned A) | |
| MachineConstantPoolEntry (MachineConstantPoolValue *V, unsigned A) | |
| bool | isMachineConstantPoolEntry () const |
| int | getAlignment () const |
| const Type * | getType () const |
| unsigned | getRelocationInfo () const |
Public Attributes | |
| union { | |
| Constant * ConstVal | |
| MachineConstantPoolValue * MachineCPVal | |
| } | Val |
| The constant itself. | |
| unsigned | Alignment |
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 73 of file MachineConstantPool.h.
| llvm::MachineConstantPoolEntry::MachineConstantPoolEntry | ( | MachineConstantPoolValue * | V, | |
| unsigned | A | |||
| ) | [inline] |
| bool llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry | ( | ) | const [inline] |
Definition at line 95 of file MachineConstantPool.h.
References Alignment.
Referenced by llvm::ELFCodeEmitter::emitConstantPool(), llvm::AsmPrinter::EmitConstantPool(), getRelocationInfo(), and getType().
| int llvm::MachineConstantPoolEntry::getAlignment | ( | ) | const [inline] |
Definition at line 99 of file MachineConstantPool.h.
References Alignment.
Referenced by llvm::AsmPrinter::EmitConstantPool(), and GetConstantPoolSizeInBytes().
| const Type * MachineConstantPoolEntry::getType | ( | ) | const |
Definition at line 505 of file MachineFunction.cpp.
References isMachineConstantPoolEntry(), and Val.
Referenced by llvm::AsmPrinter::EmitConstantPool(), and GetConstantPoolSizeInBytes().
| unsigned MachineConstantPoolEntry::getRelocationInfo | ( | ) | const |
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 512 of file MachineFunction.cpp.
References isMachineConstantPoolEntry(), and Val.
Referenced by llvm::AsmPrinter::EmitConstantPool().
Definition at line 77 of file MachineConstantPool.h.
Referenced by llvm::ELFCodeEmitter::emitConstantPool(), and llvm::AsmPrinter::EmitConstantPool().
Definition at line 78 of file MachineConstantPool.h.
Referenced by llvm::AsmPrinter::EmitConstantPool().
| union { ... } llvm::MachineConstantPoolEntry::Val |
The constant itself.
Referenced by llvm::ELFCodeEmitter::emitConstantPool(), llvm::AsmPrinter::EmitConstantPool(), getRelocationInfo(), getType(), and MachineConstantPoolEntry().
The required alignment for this entry. The top bit is set when Val is a MachineConstantPoolValue.
Definition at line 83 of file MachineConstantPool.h.
Referenced by getAlignment(), isMachineConstantPoolEntry(), and MachineConstantPoolEntry().