Go to the documentation of this file.
30 bool AddCurrentAddress,
33 Modifier(Modifier), AddCurrentAddress(AddCurrentAddress), LabelId(
ID) {}
79 CSKYConstantPoolConstant::CSKYConstantPoolConstant(
101 assert(isa<GlobalValue>(CVal) &&
"CVal should be GlobalValue");
102 return cast<GlobalValue>(CVal);
106 assert(isa<BlockAddress>(CVal) &&
"CVal should be BlockAddress");
107 return cast<BlockAddress>(CVal);
116 return getExistingMachineCPValueImpl<CSKYConstantPoolConstant>(
CP, Alignment);
134 CSKYConstantPoolSymbol::CSKYConstantPoolSymbol(
Type *Ty,
const char *
S,
137 bool AddCurrentAddress)
151 return getExistingMachineCPValueImpl<CSKYConstantPoolSymbol>(
CP, Alignment);
171 bool AddCurrentAddress)
184 return getExistingMachineCPValueImpl<CSKYConstantPoolMBB>(
CP, Alignment);
201 CSKYConstantPoolJT::CSKYConstantPoolJT(
Type *Ty,
int JTIndex,
unsigned PCAdj,
203 bool AddCurrentAddress)
216 return getExistingMachineCPValueImpl<CSKYConstantPoolJT>(
CP, Alignment);
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
This is an optimization pass for GlobalISel generic memory operations.
static CSKYConstantPoolJT * Create(Type *Ty, int JTI, unsigned PCAdj, CSKYCP::CSKYCPModifier Modifier)
void print(raw_ostream &O) const override
print - Implement operator<<
CSKY-specific constantpool value of a jump table.
void print(raw_ostream &O) const override
print - Implement operator<<
CSKYCP::CSKYCPModifier Modifier
static CSKYConstantPoolConstant * Create(const Constant *C, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
Abstract base class for all machine specific constantpool value subclasses.
The instances of the Type class are immutable: once they are created, they are never changed.
void print(raw_ostream &O) const override
print - Implement operator<<
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
const Constant * getConstantPool() const
(vector float) vec_cmpeq(*A, *B) C
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
void print(raw_ostream &O) const override
print - Implement operator<<
This class implements an extremely fast bulk output stream that can only output to a stream.
This struct is a compact representation of a valid (non-zero power of two) alignment.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
const char * getModifierText() const
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
static CSKYConstantPoolSymbol * Create(Type *Ty, const char *S, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier)
CSKY-specific constant pool values for Constants, Functions, and BlockAddresses.
This is an important base class in LLVM.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
CSKYConstantPoolValue - CSKY specific constantpool value.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
void print(raw_ostream &O) const override
print - Implement operator<<
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static CSKYConstantPoolMBB * Create(Type *Ty, const MachineBasicBlock *Mbb, unsigned PCAdjust)
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
The address of a basic block.
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
const BlockAddress * getBlockAddress() const
StringRef getName() const
Return a constant reference to the value's name.
CSKYConstantPoolValue(Type *Ty, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
const GlobalValue * getGV() const
CSKYConstantPoolSymbol - CSKY-specific constantpool values for external symbols.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
CSKYConstantPoolMBB - CSKY-specific constantpool value of a machine basic block.