LLVM 22.0.0git
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"

Public Member Functions

  isMachineConstantPoolEntry - Return true if the MachineConstantPoolEntry is indeed a target specific constantpool entry, not a wrapper over a Constant.
  This method classifies the entry according to whether or not it may generate a relocation entry.

Public Attributes

union { 
   const Constant *   ConstVal 
Val
  The constant itself.
  The required alignment for this entry.

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,
Align A )
inline

Definition at line 80 of file MachineConstantPool.h.

References A(), Alignment, IsMachineConstantPoolEntry, and Val.

◆  MachineConstantPoolEntry() [2/2]

llvm::MachineConstantPoolEntry::MachineConstantPoolEntry ( MachineConstantPoolValue * V,
Align A )
inline

Definition at line 85 of file MachineConstantPool.h.

References A(), Alignment, IsMachineConstantPoolEntry, and Val.

Member Function Documentation

◆  getAlign()

Align llvm::MachineConstantPoolEntry::getAlign ( ) const
inline

Definition at line 95 of file MachineConstantPool.h.

References Alignment.

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

◆  getSectionKind()

SectionKind MachineConstantPoolEntry::getSectionKind ( const DataLayout * DL ) const

Definition at line 1480 of file MachineFunction.cpp.

References DL, llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst32(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getReadOnlyWithRel(), getSizeInBytes(), and needsRelocation().

Referenced by llvm::AsmPrinter::emitConstantPool(), and llvm::AsmPrinter::GetCPISymbol().

◆  getSizeInBytes()

unsigned MachineConstantPoolEntry::getSizeInBytes ( const DataLayout & DL ) const

Definition at line 1467 of file MachineFunction.cpp.

References DL, isMachineConstantPoolEntry(), and Val.

Referenced by llvm::AsmPrinter::emitConstantPool(), and getSectionKind().

◆  isMachineConstantPoolEntry()

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

isMachineConstantPoolEntry - Return true if the MachineConstantPoolEntry is indeed a target specific constantpool entry, not a wrapper over a Constant.

Definition at line 93 of file MachineConstantPool.h.

References IsMachineConstantPoolEntry.

Referenced by llvm::AsmPrinter::emitConstantPool(), llvm::ARMAsmPrinter::emitInstruction(), llvm::MipsAsmPrinter::emitInstruction(), llvm::XtensaAsmPrinter::emitMachineConstantPoolEntry(), llvm::X86::getConstantFromPool(), llvm::AsmPrinter::GetCPISymbol(), getSizeInBytes(), needsRelocation(), and llvm::ARMBaseInstrInfo::produceSameValue().

◆  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 1473 of file MachineFunction.cpp.

References isMachineConstantPoolEntry(), and Val.

Referenced by getSectionKind().

Member Data Documentation

◆  Alignment

Align llvm::MachineConstantPoolEntry::Alignment

The required alignment for this entry.

Definition at line 76 of file MachineConstantPool.h.

Referenced by getAlign(), llvm::AsmPrinter::GetCPISymbol(), MachineConstantPoolEntry(), and MachineConstantPoolEntry().

◆  ConstVal

const Constant* llvm::MachineConstantPoolEntry::ConstVal

Definition at line 71 of file MachineConstantPool.h.

Referenced by llvm::AsmPrinter::emitConstantPool(), llvm::ARMAsmPrinter::emitInstruction(), llvm::MipsAsmPrinter::emitInstruction(), llvm::XtensaAsmPrinter::emitMachineConstantPoolEntry(), llvm::X86::getConstantFromPool(), llvm::AsmPrinter::GetCPISymbol(), and llvm::ARMBaseInstrInfo::produceSameValue().

◆  IsMachineConstantPoolEntry

bool llvm::MachineConstantPoolEntry::IsMachineConstantPoolEntry

Definition at line 78 of file MachineConstantPool.h.

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

◆  MachineCPVal

MachineConstantPoolValue* llvm::MachineConstantPoolEntry::MachineCPVal

Definition at line 72 of file MachineConstantPool.h.

Referenced by llvm::AsmPrinter::emitConstantPool(), llvm::ARMAsmPrinter::emitInstruction(), llvm::MipsAsmPrinter::emitInstruction(), llvm::XtensaAsmPrinter::emitMachineConstantPoolEntry(), and llvm::ARMBaseInstrInfo::produceSameValue().

◆  [union]

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

The constant itself.

Referenced by llvm::AsmPrinter::emitConstantPool(), llvm::ARMAsmPrinter::emitInstruction(), llvm::MipsAsmPrinter::emitInstruction(), llvm::XtensaAsmPrinter::emitMachineConstantPoolEntry(), llvm::X86::getConstantFromPool(), llvm::AsmPrinter::GetCPISymbol(), getSizeInBytes(), MachineConstantPoolEntry(), MachineConstantPoolEntry(), needsRelocation(), and llvm::ARMBaseInstrInfo::produceSameValue().


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

Generated on for LLVM by doxygen 1.14.0

AltStyle によって変換されたページ (->オリジナル) /