LLVM
15.0.0git
|
CSKYConstantPoolValue - CSKY specific constantpool value. More...
#include "Target/CSKY/CSKYConstantPoolValue.h"
Public Member Functions | |
const char * | getModifierText () 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 |
int | getExistingMachineCPValue (MachineConstantPool *CP, Align Alignment) override |
void | addSelectionDAGCSEId (FoldingSetNodeID &ID) override |
void | print (raw_ostream &O) const override |
print - Implement operator<< More... | |
bool | equals (const CSKYConstantPoolValue *A) const |
template<typename Derived > | |
int | getExistingMachineCPValueImpl (MachineConstantPool *CP, Align Alignment) |
![]() | |
MachineConstantPoolValue (Type *ty) | |
virtual | ~MachineConstantPoolValue ()=default |
Type * | getType () const |
virtual unsigned | getSizeInBytes (const DataLayout &DL) const |
Protected Member Functions | |
CSKYConstantPoolValue (Type *Ty, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0) | |
Protected Attributes | |
CSKYCP::CSKYCPKind | Kind |
unsigned | PCAdjust |
CSKYCP::CSKYCPModifier | Modifier |
bool | AddCurrentAddress |
unsigned | LabelId = 0 |
CSKYConstantPoolValue - CSKY specific constantpool value.
This is used to represent PC-relative displacement between the address of the load instruction and the constant being loaded, i.e. (&GV-(LPIC+8)).
Definition at line 45 of file CSKYConstantPoolValue.h.
|
protected |
Definition at line 27 of file CSKYConstantPoolValue.cpp.
|
overridevirtual |
Implements llvm::MachineConstantPoolValue.
Reimplemented in llvm::CSKYConstantPoolJT, llvm::CSKYConstantPoolMBB, llvm::CSKYConstantPoolSymbol, and llvm::CSKYConstantPoolConstant.
Definition at line 62 of file CSKYConstantPoolValue.cpp.
References LabelId, Modifier, and PCAdjust.
Referenced by llvm::CSKYConstantPoolConstant::addSelectionDAGCSEId(), llvm::CSKYConstantPoolSymbol::addSelectionDAGCSEId(), llvm::CSKYConstantPoolMBB::addSelectionDAGCSEId(), and llvm::CSKYConstantPoolJT::addSelectionDAGCSEId().
|
inline |
Definition at line 80 of file CSKYConstantPoolValue.h.
Referenced by llvm::CSKYConstantPoolConstant::equals(), llvm::CSKYConstantPoolSymbol::equals(), llvm::CSKYConstantPoolMBB::equals(), and llvm::CSKYConstantPoolJT::equals().
|
overridevirtual |
Implements llvm::MachineConstantPoolValue.
Reimplemented in llvm::CSKYConstantPoolJT, llvm::CSKYConstantPoolMBB, llvm::CSKYConstantPoolSymbol, and llvm::CSKYConstantPoolConstant.
Definition at line 57 of file CSKYConstantPoolValue.cpp.
References llvm_unreachable.
|
inline |
Definition at line 86 of file CSKYConstantPoolValue.h.
References llvm::HexagonISD::CP, llvm::numbers::e, llvm::getAlign(), and i.
|
inline |
Definition at line 63 of file CSKYConstantPoolValue.h.
References LabelId.
Referenced by llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 62 of file CSKYConstantPoolValue.h.
References Modifier.
Referenced by llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
const char * CSKYConstantPoolValue::getModifierText | ( | ) | const |
Definition at line 35 of file CSKYConstantPoolValue.cpp.
References llvm::CSKYCP::ADDR, llvm::CSKYCP::GOT, llvm::CSKYCP::GOTOFF, llvm_unreachable, Modifier, llvm::CSKYCP::NO_MOD, llvm::CSKYCP::PLT, llvm::CSKYCP::TLSGD, llvm::CSKYCP::TLSIE, and llvm::CSKYCP::TLSLE.
Referenced by print().
|
inline |
Definition at line 60 of file CSKYConstantPoolValue.h.
References PCAdjust.
Referenced by llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 67 of file CSKYConstantPoolValue.h.
References llvm::CSKYCP::CPBlockAddress, and Kind.
Referenced by llvm::CSKYConstantPoolConstant::classof(), and llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 66 of file CSKYConstantPoolValue.h.
References llvm::CSKYCP::CPExtSymbol, and Kind.
Referenced by llvm::CSKYConstantPoolSymbol::classof(), and llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 65 of file CSKYConstantPoolValue.h.
References llvm::CSKYCP::CPValue, and Kind.
Referenced by llvm::CSKYConstantPoolConstant::classof(), and llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 71 of file CSKYConstantPoolValue.h.
References llvm::CSKYCP::CPJT, and Kind.
Referenced by llvm::CSKYConstantPoolJT::classof(), and llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 68 of file CSKYConstantPoolValue.h.
References llvm::CSKYCP::CPMachineBasicBlock, and Kind.
Referenced by llvm::CSKYConstantPoolMBB::classof(), and llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
inline |
Definition at line 61 of file CSKYConstantPoolValue.h.
References AddCurrentAddress.
Referenced by llvm::CSKYAsmPrinter::emitMachineConstantPoolValue().
|
overridevirtual |
print - Implement operator<<
Implements llvm::MachineConstantPoolValue.
Reimplemented in llvm::CSKYConstantPoolJT, llvm::CSKYConstantPoolMBB, llvm::CSKYConstantPoolSymbol, and llvm::CSKYConstantPoolConstant.
Definition at line 68 of file CSKYConstantPoolValue.cpp.
References getModifierText(), Modifier, llvm::RISCVFenceField::O, and PCAdjust.
Referenced by llvm::CSKYConstantPoolConstant::print(), llvm::CSKYConstantPoolSymbol::print(), llvm::CSKYConstantPoolMBB::print(), and llvm::CSKYConstantPoolJT::print().
|
protected |
Definition at line 50 of file CSKYConstantPoolValue.h.
Referenced by llvm::CSKYConstantPoolConstant::Create(), and mustAddCurrentAddress().
|
protected |
Definition at line 47 of file CSKYConstantPoolValue.h.
Referenced by llvm::CSKYConstantPoolConstant::Create(), isBlockAddress(), isExtSymbol(), isGlobalValue(), isJT(), and isMachineBasicBlock().
|
protected |
Definition at line 52 of file CSKYConstantPoolValue.h.
Referenced by addSelectionDAGCSEId(), and getLabelID().
|
protected |
Definition at line 49 of file CSKYConstantPoolValue.h.
Referenced by addSelectionDAGCSEId(), llvm::CSKYConstantPoolConstant::Create(), llvm::CSKYConstantPoolSymbol::Create(), llvm::CSKYConstantPoolJT::Create(), getModifier(), getModifierText(), and print().
|
protected |
Definition at line 48 of file CSKYConstantPoolValue.h.
Referenced by addSelectionDAGCSEId(), llvm::CSKYConstantPoolConstant::Create(), llvm::CSKYConstantPoolSymbol::Create(), llvm::CSKYConstantPoolMBB::Create(), getPCAdjustment(), and print().