LLVM  8.0.1
Public Types | 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 "Target/ARM/ARMConstantPoolValue.h"

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

Public Types

using promoted_iterator = SmallPtrSet< const GlobalVariable *, 1 >::iterator
 

Public Member Functions

const GlobalValuegetGV () const
 
const BlockAddressgetBlockAddress () const
 
iterator_range< promoted_iteratorpromotedGlobals ()
 
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 ()=default
 
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 144 of file ARMConstantPoolValue.h.

Member Typedef Documentation

◆ promoted_iterator

Definition at line 180 of file ARMConstantPoolValue.h.

Member Function Documentation

◆ addSelectionDAGCSEId()

void ARMConstantPoolConstant::addSelectionDAGCSEId ( FoldingSetNodeID ID)
overridevirtual

◆ classof()

static bool llvm::ARMConstantPoolConstant::classof ( const ARMConstantPoolValue APV)
inlinestatic

◆ Create() [1/5]

ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const Constant C,
unsigned  ID 
)
static

◆ Create() [2/5]

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

◆ Create() [3/5]

ARMConstantPoolConstant * ARMConstantPoolConstant::Create ( const GlobalVariable GV,
const Constant Initializer 
)
static

Definition at line 154 of file ARMConstantPoolValue.cpp.

◆ Create() [4/5]

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

Definition at line 168 of file ARMConstantPoolValue.cpp.

References llvm::ARMCP::no_modifier.

◆ Create() [5/5]

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

Definition at line 175 of file ARMConstantPoolValue.cpp.

◆ equals()

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

Definition at line 206 of file ARMConstantPoolValue.h.

References llvm::ARMConstantPoolValue::equals().

◆ getBlockAddress()

const BlockAddress * ARMConstantPoolConstant::getBlockAddress ( ) const

Definition at line 187 of file ARMConstantPoolValue.cpp.

◆ getExistingMachineCPValue()

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

Reimplemented from llvm::ARMConstantPoolValue.

Definition at line 191 of file ARMConstantPoolValue.cpp.

References llvm::HexagonISD::CP.

◆ getGV()

const GlobalValue * ARMConstantPoolConstant::getGV ( ) const

Definition at line 183 of file ARMConstantPoolValue.cpp.

◆ getPromotedGlobalInit()

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

Definition at line 186 of file ARMConstantPoolValue.h.

References llvm::HexagonISD::CP, llvm::RISCVFenceField::O, and print().

◆ hasSameValue()

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 204 of file ARMConstantPoolValue.cpp.

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

◆ print()

void ARMConstantPoolConstant::print ( raw_ostream O) const
overridevirtual

◆ promotedGlobals()

iterator_range<promoted_iterator> llvm::ARMConstantPoolConstant::promotedGlobals ( )
inline

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