LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
llvm::ARMConstantPoolValue Class Reference

#include <ARMConstantPoolValue.h>

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

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
 
virtual unsigned getRelocationInfo () const
 
virtual int getExistingMachineCPValue (MachineConstantPool *CP, unsigned Alignment)
 
virtual void addSelectionDAGCSEId (FoldingSetNodeID &ID)
 
virtual bool hasSameValue (ARMConstantPoolValue *ACPV)
 
bool equals (const ARMConstantPoolValue *A) const
 
virtual void print (raw_ostream &O) const
 print - Implement operator<< More...
 
void print (raw_ostream *O) const
 
void dump () const
 
- Public Member Functions inherited from llvm::MachineConstantPoolValue
 MachineConstantPoolValue (Type *ty)
 
virtual ~MachineConstantPoolValue ()
 
TypegetType () 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.

ARMConstantPoolValue::~ARMConstantPoolValue ( )
virtual

Definition at line 47 of file ARMConstantPoolValue.cpp.

Member Function Documentation

void ARMConstantPoolValue::addSelectionDAGCSEId ( FoldingSetNodeID ID)
virtual
void ARMConstantPoolValue::dump ( ) const

Definition at line 89 of file ARMConstantPoolValue.cpp.

References llvm::errs().

bool llvm::ARMConstantPoolValue::equals ( const ARMConstantPoolValue A) const
inline
int ARMConstantPoolValue::getExistingMachineCPValue ( MachineConstantPool CP,
unsigned  Alignment 
)
virtual
template<typename Derived >
int llvm::ARMConstantPoolValue::getExistingMachineCPValueImpl ( MachineConstantPool CP,
unsigned  Alignment 
)
inlineprotected

Definition at line 70 of file ARMConstantPoolValue.h.

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

unsigned llvm::ARMConstantPoolValue::getLabelId ( ) const
inline
ARMCP::ARMCPModifier llvm::ARMConstantPoolValue::getModifier ( ) const
inline
const char * ARMConstantPoolValue::getModifierText ( ) const
unsigned char llvm::ARMConstantPoolValue::getPCAdjustment ( ) const
inline
virtual unsigned llvm::ARMConstantPoolValue::getRelocationInfo ( ) const
inlinevirtual

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.

bool llvm::ARMConstantPoolValue::hasModifier ( ) const
inline

Definition at line 93 of file ARMConstantPoolValue.h.

References llvm::ARMCP::no_modifier.

bool ARMConstantPoolValue::hasSameValue ( ARMConstantPoolValue ACPV)
virtual

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::ARMConstantPoolConstant::hasSameValue(), llvm::ARMConstantPoolSymbol::hasSameValue(), llvm::ARMConstantPoolMBB::hasSameValue(), and llvm::ARMBaseInstrInfo::produceSameValue().

bool llvm::ARMConstantPoolValue::isBlockAddress ( ) const
inline
bool llvm::ARMConstantPoolValue::isExtSymbol ( ) const
inline
bool llvm::ARMConstantPoolValue::isGlobalValue ( ) const
inline
bool llvm::ARMConstantPoolValue::isLSDA ( ) const
inline
bool llvm::ARMConstantPoolValue::isMachineBasicBlock ( ) const
inline
bool llvm::ARMConstantPoolValue::mustAddCurrentAddress ( ) const
inline
void ARMConstantPoolValue::print ( raw_ostream O) const
virtual
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: