22RISCVConstantPoolValue::RISCVConstantPoolValue(
Type *Ty,
const GlobalValue *GV)
27 Kind(RISCVCPKind::ExtSymbol) {}
30 return new RISCVConstantPoolValue(GV->getType(), GV);
35 return new RISCVConstantPoolValue(
C, S);
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) {
45 static_cast<RISCVConstantPoolValue *
>(Constants[i].Val.MachineCPVal);
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
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.
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
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...
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.
This class implements an extremely fast bulk output stream that can only output to a stream.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
MaybeAlign getAlign(const CallInst &I, unsigned Index)
This struct is a compact representation of a valid (non-zero power of two) alignment.