LLVM 22.0.0git
llvm::XtensaConstantPoolValue Class Reference

XtensaConstantPoolValue - Xtensa specific constantpool value. More...

#include "Target/Xtensa/XtensaConstantPoolValue.h"

Inheritance diagram for llvm::XtensaConstantPoolValue:
[legend]

Public Member Functions

 ~XtensaConstantPoolValue () override
XtensaCP::XtensaCPModifier getModifier () const
bool hasModifier () const
StringRef getModifierText () const
unsigned getLabelId () const
void setLabelId (unsigned ID)
bool isExtSymbol () const
bool isBlockAddress () const
bool isMachineBasicBlock () const
bool isJumpTable () const
int getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment) override
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
virtual bool hasSameValue (XtensaConstantPoolValue *ACPV)
 hasSameValue - Return true if this Xtensa constpool value can share the same constantpool entry as another Xtensa constpool value.
bool equals (const XtensaConstantPoolValue *A) const
void print (raw_ostream &O) const override
 print - Implement operator<<
void dump () const
Public Member Functions inherited from llvm::MachineConstantPoolValue
 MachineConstantPoolValue (Type *ty)
virtual ~MachineConstantPoolValue ()=default
TypegetType () const
virtual unsigned getSizeInBytes (const DataLayout &DL) const

Protected Member Functions

 XtensaConstantPoolValue (Type *Ty, unsigned ID, XtensaCP::XtensaCPKind Kind, XtensaCP::XtensaCPModifier Modifier=XtensaCP::no_modifier)
 XtensaConstantPoolValue (LLVMContext &C, unsigned id, XtensaCP::XtensaCPKind Kind, XtensaCP::XtensaCPModifier Modifier=XtensaCP::no_modifier)
template<typename Derived>
int getExistingMachineCPValueImpl (MachineConstantPool *CP, Align Alignment)

Detailed Description

XtensaConstantPoolValue - Xtensa specific constantpool value.

This is used to represent PC-relative displacement between the address of the load instruction and the constant being loaded.

Definition at line 48 of file XtensaConstantPoolValue.h.

Constructor & Destructor Documentation

◆ XtensaConstantPoolValue() [1/2]

◆ XtensaConstantPoolValue() [2/2]

XtensaConstantPoolValue::XtensaConstantPoolValue ( LLVMContext & C,
unsigned id,
XtensaCP::XtensaCPKind Kind,
XtensaCP::XtensaCPModifier Modifier = XtensaCP::no_modifier )
protected

◆ ~XtensaConstantPoolValue()

XtensaConstantPoolValue::~XtensaConstantPoolValue ( )
override

Definition at line 36 of file XtensaConstantPoolValue.cpp.

Member Function Documentation

◆ addSelectionDAGCSEId()

◆ dump()

void XtensaConstantPoolValue::dump ( ) const

Definition at line 66 of file XtensaConstantPoolValue.cpp.

References llvm::errs().

◆ equals()

◆ getExistingMachineCPValue()

int XtensaConstantPoolValue::getExistingMachineCPValue ( MachineConstantPool * CP,
Align Alignment )
overridevirtual

Implements llvm::MachineConstantPoolValue.

Definition at line 48 of file XtensaConstantPoolValue.cpp.

References llvm::report_fatal_error().

◆ getExistingMachineCPValueImpl()

◆ getLabelId()

unsigned llvm::XtensaConstantPoolValue::getLabelId ( ) const
inline

◆ getModifier()

XtensaCP::XtensaCPModifier llvm::XtensaConstantPoolValue::getModifier ( ) const
inline

◆ getModifierText()

StringRef XtensaConstantPoolValue::getModifierText ( ) const

◆ hasModifier()

bool llvm::XtensaConstantPoolValue::hasModifier ( ) const
inline

Definition at line 84 of file XtensaConstantPoolValue.h.

References llvm::XtensaCP::no_modifier.

◆ hasSameValue()

bool XtensaConstantPoolValue::hasSameValue ( XtensaConstantPoolValue * ACPV)
virtual

◆ isBlockAddress()

bool llvm::XtensaConstantPoolValue::isBlockAddress ( ) const
inline

◆ isExtSymbol()

bool llvm::XtensaConstantPoolValue::isExtSymbol ( ) const
inline

◆ isJumpTable()

bool llvm::XtensaConstantPoolValue::isJumpTable ( ) const
inline

◆ isMachineBasicBlock()

bool llvm::XtensaConstantPoolValue::isMachineBasicBlock ( ) const
inline

◆ print()

void XtensaConstantPoolValue::print ( raw_ostream & O) const
overridevirtual

◆ setLabelId()

void llvm::XtensaConstantPoolValue::setLabelId ( unsigned ID)
inline

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