LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::XtensaConstantPoolConstant Class Reference

XtensaConstantPoolConstant - Xtensa-specific constant pool values for Constants (for example BlockAddresses). More...

#include "Target/Xtensa/XtensaConstantPoolValue.h"

Inheritance diagram for llvm::XtensaConstantPoolConstant:
Inheritance graph
[legend]

Public Member Functions

const BlockAddressgetBlockAddress () const
 
int getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment) override
 
bool hasSameValue (XtensaConstantPoolValue *ACPV) override
 hasSameValue - Return true if this Xtensa constpool value can share the same constantpool entry as another Xtensa constpool value.
 
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
 
void print (raw_ostream &O) const override
 print - Implement operator<<
 
bool equals (const XtensaConstantPoolConstant *A) const
 
- Public Member Functions inherited from llvm::XtensaConstantPoolValue
 ~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<<
 

Static Public Member Functions

static XtensaConstantPoolConstantCreate (const Constant *C, unsigned ID, XtensaCP::XtensaCPKind Kind)
 
static bool classof (const XtensaConstantPoolValue *APV)
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::XtensaConstantPoolValue
 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

XtensaConstantPoolConstant - Xtensa-specific constant pool values for Constants (for example BlockAddresses).

Definition at line 125 of file XtensaConstantPoolValue.h.

Member Function Documentation

◆ addSelectionDAGCSEId()

void XtensaConstantPoolConstant::addSelectionDAGCSEId ( FoldingSetNodeID ID)
overridevirtual

◆ classof()

static bool llvm::XtensaConstantPoolConstant::classof ( const XtensaConstantPoolValue APV)
inlinestatic

◆ Create()

XtensaConstantPoolConstant * XtensaConstantPoolConstant::Create ( const Constant C,
unsigned  ID,
XtensaCP::XtensaCPKind  Kind 
)
static

Definition at line 80 of file XtensaConstantPoolValue.cpp.

References llvm::CallingConv::C.

◆ equals()

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

Definition at line 151 of file XtensaConstantPoolValue.h.

References A, and llvm::XtensaConstantPoolValue::equals().

◆ getBlockAddress()

const BlockAddress * XtensaConstantPoolConstant::getBlockAddress ( ) const

Definition at line 85 of file XtensaConstantPoolValue.cpp.

◆ getExistingMachineCPValue()

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

Reimplemented from llvm::XtensaConstantPoolValue.

Definition at line 89 of file XtensaConstantPoolValue.cpp.

◆ hasSameValue()

bool XtensaConstantPoolConstant::hasSameValue ( XtensaConstantPoolValue ACPV)
overridevirtual

hasSameValue - Return true if this Xtensa constpool value can share the same constantpool entry as another Xtensa constpool value.

Reimplemented from llvm::XtensaConstantPoolValue.

Definition at line 95 of file XtensaConstantPoolValue.cpp.

References llvm::XtensaConstantPoolValue::hasSameValue().

◆ print()

void XtensaConstantPoolConstant::print ( raw_ostream O) const
overridevirtual

print - Implement operator<<

Reimplemented from llvm::XtensaConstantPoolValue.

Definition at line 107 of file XtensaConstantPoolValue.cpp.

References llvm::Value::getName(), and llvm::XtensaConstantPoolValue::print().


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