30 bool AddCurrentAddress,
33 Modifier(Modifier), AddCurrentAddress(AddCurrentAddress), LabelId(
ID) {}
79CSKYConstantPoolConstant::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);
134CSKYConstantPoolSymbol::CSKYConstantPoolSymbol(
Type *Ty,
const char *S,
137 bool AddCurrentAddress)
151 return getExistingMachineCPValueImpl<CSKYConstantPoolSymbol>(CP, Alignment);
171 bool AddCurrentAddress)
184 return getExistingMachineCPValueImpl<CSKYConstantPoolMBB>(CP, Alignment);
201CSKYConstantPoolJT::CSKYConstantPoolJT(
Type *Ty,
int JTIndex,
unsigned PCAdj,
203 bool AddCurrentAddress)
216 return getExistingMachineCPValueImpl<CSKYConstantPoolJT>(CP, Alignment);
This file contains the declarations for the subclasses of Constant, which represent the different fla...
This file defines a hash set that can be used to remove duplication of nodes in a graph.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
The address of a basic block.
CSKY-specific constant pool values for Constants, Functions, and BlockAddresses.
const GlobalValue * getGV() const
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
void print(raw_ostream &O) const override
print - Implement operator<<
static CSKYConstantPoolConstant * Create(const Constant *C, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
const BlockAddress * getBlockAddress() const
const Constant * getConstantPool() const
CSKY-specific constantpool value of a jump table.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
static CSKYConstantPoolJT * Create(Type *Ty, int JTI, unsigned PCAdj, CSKYCP::CSKYCPModifier Modifier)
void print(raw_ostream &O) const override
print - Implement operator<<
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
CSKYConstantPoolMBB - CSKY-specific constantpool value of a machine basic block.
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
static CSKYConstantPoolMBB * Create(Type *Ty, const MachineBasicBlock *Mbb, unsigned PCAdjust)
void print(raw_ostream &O) const override
print - Implement operator<<
CSKYConstantPoolSymbol - CSKY-specific constantpool values for external symbols.
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
void print(raw_ostream &O) const override
print - Implement operator<<
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
static CSKYConstantPoolSymbol * Create(Type *Ty, const char *S, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier)
CSKYConstantPoolValue - CSKY specific constantpool value.
void print(raw_ostream &O) const override
print - Implement operator<<
CSKYConstantPoolValue(Type *Ty, CSKYCP::CSKYCPKind Kind, unsigned PCAdjust, CSKYCP::CSKYCPModifier Modifier, bool AddCurrentAddress, unsigned ID=0)
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
CSKYCP::CSKYCPModifier Modifier
const char * getModifierText() const
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
This is an important base class in LLVM.
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
Abstract base class for all machine specific constantpool value subclasses.
The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
The instances of the Type class are immutable: once they are created, they are never changed.
StringRef getName() const
Return a constant reference to the value's name.
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
This struct is a compact representation of a valid (non-zero power of two) alignment.