LLVM API Documentation

Public Member Functions | Protected Member Functions
llvm::ARMConstantPoolValue Class Reference

#include <ARMConstantPoolValue.h>

Inheritance diagram for llvm::ARMConstantPoolValue:
Inheritance graph
[legend]
Collaboration diagram for llvm::ARMConstantPoolValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~ARMConstantPoolValue ()
ARMCP::ARMCPModifier getModifier () const
const char * getModifierText () const
bool hasModifier () const
bool mustAddCurrentAddress () const
unsigned getLabelId () const
unsigned char getPCAdjustment () const
bool isGlobalValue () const
bool isExtSymbol () const
bool isBlockAddress () const
bool isLSDA () const
bool isMachineBasicBlock () const
unsigned getRelocationInfo () const override
int getExistingMachineCPValue (MachineConstantPool *CP, unsigned Alignment) override
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
virtual bool hasSameValue (ARMConstantPoolValue *ACPV)
bool equals (const ARMConstantPoolValue *A) const
void print (raw_ostream &O) const override
 print - Implement operator<<
void print (raw_ostream *O) const
void dump () const

Protected Member Functions

 ARMConstantPoolValue (Type *Ty, unsigned id, ARMCP::ARMCPKind Kind, unsigned char PCAdj, ARMCP::ARMCPModifier Modifier, bool AddCurrentAddress)
 ARMConstantPoolValue (LLVMContext &C, unsigned id, ARMCP::ARMCPKind Kind, unsigned char PCAdj, ARMCP::ARMCPModifier Modifier, bool AddCurrentAddress)
template<typename Derived >
int getExistingMachineCPValueImpl (MachineConstantPool *CP, unsigned Alignment)

Detailed Description

ARMConstantPoolValue - ARM 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 52 of file ARMConstantPoolValue.h.


Constructor & Destructor Documentation

ARMConstantPoolValue::ARMConstantPoolValue ( Type Ty,
unsigned  id,
ARMCP::ARMCPKind  Kind,
unsigned char  PCAdj,
ARMCP::ARMCPModifier  Modifier,
bool  AddCurrentAddress 
) [protected]

Definition at line 29 of file ARMConstantPoolValue.cpp.

ARMConstantPoolValue::ARMConstantPoolValue ( LLVMContext C,
unsigned  id,
ARMCP::ARMCPKind  Kind,
unsigned char  PCAdj,
ARMCP::ARMCPModifier  Modifier,
bool  AddCurrentAddress 
) [protected]

Definition at line 38 of file ARMConstantPoolValue.cpp.

Definition at line 47 of file ARMConstantPoolValue.cpp.


Member Function Documentation

Definition at line 89 of file ARMConstantPoolValue.cpp.

References llvm::errs().

Definition at line 117 of file ARMConstantPoolValue.h.

template<typename Derived >
int llvm::ARMConstantPoolValue::getExistingMachineCPValueImpl ( MachineConstantPool CP,
unsigned  Alignment 
) [inline, protected]

Definition at line 70 of file ARMConstantPoolValue.h.

References llvm::MachineConstantPool::getConstants(), and if().

unsigned llvm::ARMConstantPoolValue::getRelocationInfo ( ) const [inline, override, virtual]

getRelocationInfo - This method classifies the entry according to whether or not it may generate a relocation entry. This must be conservative, so if it might codegen to a relocatable entry, it should say so. The return values are the same as Constant::getRelocationInfo().

Implements llvm::MachineConstantPoolValue.

Definition at line 106 of file ARMConstantPoolValue.h.

Definition at line 93 of file ARMConstantPoolValue.h.

References llvm::ARMCP::no_modifier.

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

Reimplemented in llvm::ARMConstantPoolMBB, llvm::ARMConstantPoolSymbol, and llvm::ARMConstantPoolConstant.

Definition at line 75 of file ARMConstantPoolValue.cpp.

References llvm::ARMCP::CPExtSymbol, and llvm::ARMCP::CPValue.

Referenced by llvm::ARMBaseInstrInfo::produceSameValue().

void ARMConstantPoolValue::print ( raw_ostream O) const [override, virtual]

print - Implement operator<<

Implements llvm::MachineConstantPoolValue.

Reimplemented in llvm::ARMConstantPoolMBB, llvm::ARMConstantPoolSymbol, and llvm::ARMConstantPoolConstant.

Definition at line 93 of file ARMConstantPoolValue.cpp.

References getModifierText().

Referenced by llvm::operator<<().

void llvm::ARMConstantPoolValue::print ( raw_ostream O) const [inline]

Definition at line 124 of file ARMConstantPoolValue.h.

References print().

Referenced by print().


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