LLVM  14.0.0git
SystemZConstantPoolValue.h
Go to the documentation of this file.
1 //===- SystemZConstantPoolValue.h - SystemZ constant-pool value -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCONSTANTPOOLVALUE_H
10 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCONSTANTPOOLVALUE_H
11 
14 
15 namespace llvm {
16 
17 class GlobalValue;
18 
19 namespace SystemZCP {
25 };
26 } // end namespace SystemZCP
27 
28 /// A SystemZ-specific constant pool value. At present, the only
29 /// defined constant pool values are module IDs or offsets of
30 /// thread-local variables (written x@TLSGD, x@TLSLDM, x@DTPOFF,
31 /// or x@NTPOFF).
33  const GlobalValue *GV;
35 
36 protected:
39 
40 public:
42  Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
43 
44  // Override MachineConstantPoolValue.
46  Align Alignment) override;
48  void print(raw_ostream &O) const override;
49 
50  // Access SystemZ-specific fields.
51  const GlobalValue *getGlobalValue() const { return GV; }
52  SystemZCP::SystemZCPModifier getModifier() const { return Modifier; }
53 };
54 
55 } // end namespace llvm
56 
57 #endif
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::SystemZCP::NTPOFF
@ NTPOFF
Definition: SystemZConstantPoolValue.h:24
llvm::SystemZConstantPoolValue::print
void print(raw_ostream &O) const override
print - Implement operator<<
Definition: SystemZConstantPoolValue.cpp:48
ErrorHandling.h
llvm::MachineConstantPoolValue
Abstract base class for all machine specific constantpool value subclasses.
Definition: MachineConstantPool.h:35
llvm::SystemZCP::SystemZCPModifier
SystemZCPModifier
Definition: SystemZConstantPoolValue.h:20
llvm::SystemZConstantPoolValue
A SystemZ-specific constant pool value.
Definition: SystemZConstantPoolValue.h:32
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:192
llvm::GlobalValue
Definition: GlobalValue.h:44
llvm::SystemZConstantPoolValue::getExistingMachineCPValue
int getExistingMachineCPValue(MachineConstantPool *CP, Align Alignment) override
Definition: SystemZConstantPoolValue.cpp:28
llvm::SystemZCP::DTPOFF
@ DTPOFF
Definition: SystemZConstantPoolValue.h:23
llvm::MachineConstantPool
The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
Definition: MachineConstantPool.h:117
llvm::SystemZConstantPoolValue::Create
static SystemZConstantPoolValue * Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)
Definition: SystemZConstantPoolValue.cpp:23
MachineConstantPool.h
llvm::SystemZCP::TLSLDM
@ TLSLDM
Definition: SystemZConstantPoolValue.h:22
llvm::FoldingSetNodeID
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
Definition: FoldingSet.h:313
llvm::HexagonISD::CP
@ CP
Definition: HexagonISelLowering.h:53
llvm::SystemZConstantPoolValue::addSelectionDAGCSEId
void addSelectionDAGCSEId(FoldingSetNodeID &ID) override
Definition: SystemZConstantPoolValue.cpp:43
llvm::SystemZCP::TLSGD
@ TLSGD
Definition: SystemZConstantPoolValue.h:21
llvm::SystemZConstantPoolValue::getGlobalValue
const GlobalValue * getGlobalValue() const
Definition: SystemZConstantPoolValue.h:51
llvm::SystemZConstantPoolValue::getModifier
SystemZCP::SystemZCPModifier getModifier() const
Definition: SystemZConstantPoolValue.h:52
llvm::SystemZConstantPoolValue::SystemZConstantPoolValue
SystemZConstantPoolValue(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)
Definition: SystemZConstantPoolValue.cpp:18
llvm::Intrinsic::ID
unsigned ID
Definition: TargetTransformInfo.h:37