LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::MachineConstantPoolEntry Class Reference

This class is a data container for one entry in a MachineConstantPool. More...

#include "llvm/CodeGen/MachineConstantPool.h"

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

Public Member Functions

 MachineConstantPoolEntry (const Constant *V, unsigned A)
 
 MachineConstantPoolEntry (MachineConstantPoolValue *V, unsigned A)
 
bool isMachineConstantPoolEntry () const
 isMachineConstantPoolEntry - Return true if the MachineConstantPoolEntry is indeed a target specific constantpool entry, not a wrapper over a Constant. More...
 
int getAlignment () const
 
TypegetType () const
 
bool needsRelocation () const
 This method classifies the entry according to whether or not it may generate a relocation entry. More...
 
SectionKind getSectionKind (const DataLayout *DL) const
 

Public Attributes

union {
   const Constant *   ConstVal
 
   MachineConstantPoolValue *   MachineCPVal
 
Val
 The constant itself. More...
 
unsigned Alignment
 The required alignment for this entry. More...
 

Detailed Description

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. An entry in a MachineConstantPool

Definition at line 67 of file MachineConstantPool.h.

Constructor & Destructor Documentation

◆ MachineConstantPoolEntry() [1/2]

llvm::MachineConstantPoolEntry::MachineConstantPoolEntry ( const Constant V,
unsigned  A 
)
inline

Definition at line 79 of file MachineConstantPool.h.

◆ MachineConstantPoolEntry() [2/2]

llvm::MachineConstantPoolEntry::MachineConstantPoolEntry ( MachineConstantPoolValue V,
unsigned  A 
)
inline

Definition at line 84 of file MachineConstantPool.h.

Member Function Documentation

◆ getAlignment()

int llvm::MachineConstantPoolEntry::getAlignment ( ) const
inline

◆ getSectionKind()

SectionKind MachineConstantPoolEntry::getSectionKind ( const DataLayout DL) const

◆ getType()

Type * MachineConstantPoolEntry::getType ( ) const

Definition at line 913 of file MachineFunction.cpp.

Referenced by llvm::AsmPrinter::EmitConstantPool(), and getConstantFromPool().

◆ isMachineConstantPoolEntry()

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

◆ needsRelocation()

bool MachineConstantPoolEntry::needsRelocation ( ) const

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.

Definition at line 919 of file MachineFunction.cpp.

Member Data Documentation

◆ Alignment

unsigned llvm::MachineConstantPoolEntry::Alignment

The required alignment for this entry.

The top bit is set when Val is a target specific MachineConstantPoolValue.

Definition at line 77 of file MachineConstantPool.h.

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

◆ ConstVal

const Constant* llvm::MachineConstantPoolEntry::ConstVal

◆ MachineCPVal

MachineConstantPoolValue* llvm::MachineConstantPoolEntry::MachineCPVal

◆ Val

union { ... } llvm::MachineConstantPoolEntry::Val

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