LLVM 22.0.0git
llvm::CSKYConstantPoolConstant Class Reference

CSKY-specific constant pool values for Constants, Functions, and BlockAddresses. More...

#include "Target/CSKY/CSKYConstantPoolValue.h"

Inheritance diagram for llvm::CSKYConstantPoolConstant:
[legend]

Public Member Functions

const GlobalValuegetGV () const
const BlockAddressgetBlockAddress () const
const ConstantgetConstantPool () const
int getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment) override
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
void print (raw_ostream &O) const override
 print - Implement operator<<
bool equals (const CSKYConstantPoolConstant *A) const
Public Member Functions inherited from llvm::CSKYConstantPoolValue
const chargetModifierText () const
unsigned getPCAdjustment () const
bool mustAddCurrentAddress () const
CSKYCP::CSKYCPModifier getModifier () const
unsigned getLabelID () const
bool isGlobalValue () const
bool isExtSymbol () const
bool isBlockAddress () const
bool isMachineBasicBlock () const
bool isJT () const
bool isConstPool () const
int getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment) override
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
void print (raw_ostream &O) const override
 print - Implement operator<<
bool equals (const CSKYConstantPoolValue *A) const
template<typename Derived>
int getExistingMachineCPValueImpl (MachineConstantPool *CP, Align Alignment)
Public Member Functions inherited from llvm::MachineConstantPoolValue
 MachineConstantPoolValue (Type *ty)
virtual ~MachineConstantPoolValue ()=default
TypegetType () const
virtual unsigned getSizeInBytes (const DataLayout &DL) const

Static Public Member Functions

static CSKYConstantPoolConstantCreate (const Constant *C, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
static CSKYConstantPoolConstantCreate (const Constant *C, Type *Ty, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
static bool classof (const CSKYConstantPoolValue *APV)

Additional Inherited Members

Protected Member Functions inherited from llvm::CSKYConstantPoolValue
 CSKYConstantPoolValue (Type *Ty, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
Protected Attributes inherited from llvm::CSKYConstantPoolValue
CSKYCP::CSKYCPKind Kind
unsigned PCAdjust
CSKYCP::CSKYCPModifier Modifier
bool AddCurrentAddress
unsigned LabelId = 0

Detailed Description

CSKY-specific constant pool values for Constants, Functions, and BlockAddresses.

Definition at line 107 of file CSKYConstantPoolValue.h.

Member Function Documentation

◆ addSelectionDAGCSEId()

void CSKYConstantPoolConstant::addSelectionDAGCSEId ( FoldingSetNodeID & ID)
overridevirtual

◆ classof()

◆ Create() [1/2]

◆ Create() [2/2]

◆ equals()

bool llvm::CSKYConstantPoolConstant::equals ( const CSKYConstantPoolConstant * A) const
inline

Definition at line 132 of file CSKYConstantPoolValue.h.

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

◆ getBlockAddress()

const BlockAddress * CSKYConstantPoolConstant::getBlockAddress ( ) const

Definition at line 105 of file CSKYConstantPoolValue.cpp.

References assert(), llvm::cast(), and llvm::isa().

◆ getConstantPool()

const Constant * CSKYConstantPoolConstant::getConstantPool ( ) const

Definition at line 110 of file CSKYConstantPoolValue.cpp.

◆ getExistingMachineCPValue()

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

◆ getGV()

const GlobalValue * CSKYConstantPoolConstant::getGV ( ) const

Definition at line 100 of file CSKYConstantPoolValue.cpp.

References assert(), llvm::cast(), and llvm::isa().

◆ print()

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

print - Implement operator<<

Implements llvm::MachineConstantPoolValue.

Definition at line 125 of file CSKYConstantPoolValue.cpp.

References llvm::CSKYConstantPoolValue::print().


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