LLVM 20.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::XtensaConstantPoolValue Class Reference

XtensaConstantPoolValue - Xtensa specific constantpool value. More...

#include "Target/Xtensa/XtensaConstantPoolValue.h"

Inheritance diagram for llvm::XtensaConstantPoolValue:
Inheritance graph
[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
 
virtual int getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment)=0
 
virtual void addSelectionDAGCSEId (FoldingSetNodeID &ID)=0
 
virtual void print (raw_ostream &O) const =0
 print - Implement operator<<
 

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::XtensaConstantPoolValue ( Type Ty,
unsigned  ID,
XtensaCP::XtensaCPKind  Kind,
XtensaCP::XtensaCPModifier  Modifier = XtensaCP::no_modifier 
)
protected

Definition at line 24 of file XtensaConstantPoolValue.cpp.

◆ XtensaConstantPoolValue() [2/2]

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

Definition at line 30 of file XtensaConstantPoolValue.cpp.

◆ ~XtensaConstantPoolValue()

XtensaConstantPoolValue::~XtensaConstantPoolValue ( )
override

Definition at line 36 of file XtensaConstantPoolValue.cpp.

Member Function Documentation

◆ addSelectionDAGCSEId()

void XtensaConstantPoolValue::addSelectionDAGCSEId ( FoldingSetNodeID ID)
overridevirtual

◆ dump()

void XtensaConstantPoolValue::dump ( ) const

Definition at line 66 of file XtensaConstantPoolValue.cpp.

References llvm::errs().

◆ equals()

bool llvm::XtensaConstantPoolValue::equals ( const XtensaConstantPoolValue A) const
inline

◆ getExistingMachineCPValue()

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

◆ getExistingMachineCPValueImpl()

template<typename Derived >
int llvm::XtensaConstantPoolValue::getExistingMachineCPValueImpl ( MachineConstantPool CP,
Align  Alignment 
)
inlineprotected

Definition at line 64 of file XtensaConstantPoolValue.h.

References llvm::getAlign().

◆ 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: