LLVM  3.7.0
SystemZConstantPoolValue.h
Go to the documentation of this file.
1 //===- SystemZConstantPoolValue.h - SystemZ constant-pool value -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCONSTANTPOOLVALUE_H
11 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCONSTANTPOOLVALUE_H
12 
15 
16 namespace llvm {
17 
18 class GlobalValue;
19 
20 namespace SystemZCP {
26 };
27 } // end namespace SystemZCP
28 
29 /// A SystemZ-specific constant pool value. At present, the only
30 /// defined constant pool values are module IDs or offsets of
31 /// thread-local variables (written x@TLSGD, x@TLSLDM, x@DTPOFF,
32 /// or x@NTPOFF).
34  const GlobalValue *GV;
36 
37 protected:
40 
41 public:
43  Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
44 
45  // Override MachineConstantPoolValue.
46  unsigned getRelocationInfo() const override;
48  unsigned Alignment) override;
50  void print(raw_ostream &O) const override;
51 
52  // Access SystemZ-specific fields.
53  const GlobalValue *getGlobalValue() const { return GV; }
54  SystemZCP::SystemZCPModifier getModifier() const { return Modifier; }
55 };
56 
57 } // end namespace llvm
58 
59 #endif
The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
SystemZConstantPoolValue(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)
This file declares the MachineConstantPool class which is an abstract constant pool to keep track of ...
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
unsigned getRelocationInfo() const override
getRelocationInfo - This method classifies the entry according to whether or not it may generate a re...
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
Definition: FoldingSet.h:297
int getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) override
Abstract base class for all machine specific constantpool value subclasses.
const GlobalValue * getGlobalValue() const
void print(raw_ostream &O) const override
print - Implement operator<<
SystemZCP::SystemZCPModifier getModifier() const
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:38
A SystemZ-specific constant pool value.
static SystemZConstantPoolValue * Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)