22RISCVConstantPoolValue::RISCVConstantPoolValue(
Type *Ty,
const GlobalValue *GV)
27 Kind(RISCVCPKind::ExtSymbol) {}
40 const std::vector<MachineConstantPoolEntry> &Constants = CP->getConstants();
41 for (
unsigned i = 0, e = Constants.size(); i != e; ++i) {
42 if (Constants[i].isMachineConstantPoolEntry() &&
43 Constants[i].
getAlign() >= Alignment) {
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
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())
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
PointerType * getType() const
Global values are always pointers.
This is an important class for using LLVM in a threaded context.
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...
A RISCV-specific constant pool value.
static RISCVConstantPoolValue * Create(const GlobalValue *GV)
bool equals(const RISCVConstantPoolValue *A) const
void print(raw_ostream &O) const override
print - Implement operator<<
bool isGlobalValue() const
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
StringRef - Represent a constant reference to a string, i.e.
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.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
MaybeAlign getAlign(const Function &F, unsigned Index)
This struct is a compact representation of a valid (non-zero power of two) alignment.