LLVM  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::ARMConstantPoolConstant Class Reference

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

#include <ARMConstantPoolValue.h>

Inheritance diagram for llvm::ARMConstantPoolConstant:
[legend]
Collaboration diagram for llvm::ARMConstantPoolConstant:
[legend]

Public Member Functions

const GlobalValuegetGV () const
 
const BlockAddressgetBlockAddress () const
 
const GlobalVariablegetPromotedGlobal () const
 
const ConstantgetPromotedGlobalInit () const
 
int getExistingMachineCPValue (MachineConstantPool *CP, unsigned Alignment) override
 
bool hasSameValue (ARMConstantPoolValue *ACPV) override
 hasSameValue - Return true if this ARM constpool value can share the same constantpool entry as another ARM constpool value. More...
 
void addSelectionDAGCSEId (FoldingSetNodeID &ID) override
 
void print (raw_ostream &O) const override
 print - Implement operator<< More...
 
bool equals (const ARMConstantPoolConstant *A) const
 
- Public Member Functions inherited from llvm::ARMConstantPoolValue
 ~ARMConstantPoolValue () override
 
ARMCP::ARMCPModifier getModifier () const
 
StringRef 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
 
bool isPromotedGlobal () const
 
bool equals (const ARMConstantPoolValue *A) const
 
void print (raw_ostream *O) const
 
void dump () const
 
- Public Member Functions inherited from llvm::MachineConstantPoolValue
 MachineConstantPoolValue (Type *ty)
 
virtual ~MachineConstantPoolValue ()
 
TypegetType () const
 getType - get type of this MachineConstantPoolValue. More...
 

Static Public Member Functions

static ARMConstantPoolConstantCreate (const Constant *C, unsigned ID)
 
static ARMConstantPoolConstantCreate (const GlobalValue *GV, ARMCP::ARMCPModifier Modifier)
 
static ARMConstantPoolConstantCreate (const GlobalVariable *GV, const Constant *Initializer)
 
static ARMConstantPoolConstantCreate (const Constant *C, unsigned ID, ARMCP::ARMCPKind Kind, unsigned char PCAdj)
 
static ARMConstantPoolConstantCreate (const Constant *C, unsigned ID, ARMCP::ARMCPKind Kind, unsigned char PCAdj, ARMCP::ARMCPModifier Modifier, bool AddCurrentAddress)
 
static bool classof (const ARMConstantPoolValue *APV)
 

Additional Inherited Members

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

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

Definition at line 137 of file ARMConstantPoolValue.h.

Member Function Documentation

void ARMConstantPoolConstant::addSelectionDAGCSEId ( FoldingSetNodeID ID)
overridevirtual
static bool llvm::ARMConstantPoolConstant::classof ( const ARMConstantPoolValue APV)
inlinestatic
ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const Constant C,
unsigned  ID 
)
static

Definition at line 141 of file ARMConstantPoolValue.cpp.

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

Referenced by duplicateCPV(), and promoteToConstantPool().

ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const GlobalValue GV,
ARMCP::ARMCPModifier  Modifier 
)
static
ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const GlobalVariable GV,
const Constant Initializer 
)
static

Definition at line 147 of file ARMConstantPoolValue.cpp.

ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const Constant C,
unsigned  ID,
ARMCP::ARMCPKind  Kind,
unsigned char  PCAdj 
)
static

Definition at line 161 of file ARMConstantPoolValue.cpp.

References llvm::ARMCP::no_modifier.

ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const Constant C,
unsigned  ID,
ARMCP::ARMCPKind  Kind,
unsigned char  PCAdj,
ARMCP::ARMCPModifier  Modifier,
bool  AddCurrentAddress 
)
static

Definition at line 168 of file ARMConstantPoolValue.cpp.

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

Definition at line 194 of file ARMConstantPoolValue.h.

References llvm::ARMConstantPoolValue::equals().

const BlockAddress * ARMConstantPoolConstant::getBlockAddress ( ) const

Definition at line 180 of file ARMConstantPoolValue.cpp.

int ARMConstantPoolConstant::getExistingMachineCPValue ( MachineConstantPool CP,
unsigned  Alignment 
)
overridevirtual

Reimplemented from llvm::ARMConstantPoolValue.

Definition at line 184 of file ARMConstantPoolValue.cpp.

References llvm::HexagonISD::CP.

const GlobalValue * ARMConstantPoolConstant::getGV ( ) const

Definition at line 176 of file ARMConstantPoolValue.cpp.

const GlobalVariable* llvm::ARMConstantPoolConstant::getPromotedGlobal ( ) const
inline

Definition at line 172 of file ARMConstantPoolValue.h.

const Constant* llvm::ARMConstantPoolConstant::getPromotedGlobalInit ( ) const
inline

Definition at line 175 of file ARMConstantPoolValue.h.

bool ARMConstantPoolConstant::hasSameValue ( ARMConstantPoolValue ACPV)
overridevirtual

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

Reimplemented from llvm::ARMConstantPoolValue.

Definition at line 189 of file ARMConstantPoolValue.cpp.

References llvm::dyn_cast(), and llvm::ARMConstantPoolValue::hasSameValue().

void ARMConstantPoolConstant::print ( raw_ostream O) const
overridevirtual

print - Implement operator<<

Reimplemented from llvm::ARMConstantPoolValue.

Definition at line 199 of file ARMConstantPoolValue.cpp.

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


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