OLD | NEW |
1 //===-- ARMConstantPoolValue.h - ARM constantpool value ---------*- C++ -*-===// | 1 //===-- ARMConstantPoolValue.h - ARM constantpool value ---------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file implements the ARM specific constantpool value class. | 10 // This file implements the ARM specific constantpool value class. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool mustAddCurrentAddress() const { return AddCurrentAddress; } | 95 bool mustAddCurrentAddress() const { return AddCurrentAddress; } |
96 | 96 |
97 unsigned getLabelId() const { return LabelId; } | 97 unsigned getLabelId() const { return LabelId; } |
98 unsigned char getPCAdjustment() const { return PCAdjust; } | 98 unsigned char getPCAdjustment() const { return PCAdjust; } |
99 | 99 |
100 bool isGlobalValue() const { return Kind == ARMCP::CPValue; } | 100 bool isGlobalValue() const { return Kind == ARMCP::CPValue; } |
101 bool isExtSymbol() const { return Kind == ARMCP::CPExtSymbol; } | 101 bool isExtSymbol() const { return Kind == ARMCP::CPExtSymbol; } |
102 bool isBlockAddress() const { return Kind == ARMCP::CPBlockAddress; } | 102 bool isBlockAddress() const { return Kind == ARMCP::CPBlockAddress; } |
103 bool isLSDA() const { return Kind == ARMCP::CPLSDA; } | 103 bool isLSDA() const { return Kind == ARMCP::CPLSDA; } |
104 bool isMachineBasicBlock() const{ return Kind == ARMCP::CPMachineBasicBlock; } | 104 bool isMachineBasicBlock() const{ return Kind == ARMCP::CPMachineBasicBlock; } |
| 105 // @LOCALMOD-START |
| 106 bool isValue() const { return Kind == ARMCP::CPValue; } |
| 107 // @LOCALMOD-END |
105 | 108 |
106 unsigned getRelocationInfo() const override { return 2; } | 109 unsigned getRelocationInfo() const override { return 2; } |
107 | 110 |
108 int getExistingMachineCPValue(MachineConstantPool *CP, | 111 int getExistingMachineCPValue(MachineConstantPool *CP, |
109 unsigned Alignment) override; | 112 unsigned Alignment) override; |
110 | 113 |
111 void addSelectionDAGCSEId(FoldingSetNodeID &ID) override; | 114 void addSelectionDAGCSEId(FoldingSetNodeID &ID) override; |
112 | 115 |
113 /// hasSameValue - Return true if this ARM constpool value can share the same | 116 /// hasSameValue - Return true if this ARM constpool value can share the same |
114 /// constantpool entry as another ARM constpool value. | 117 /// constantpool entry as another ARM constpool value. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 } | 253 } |
251 | 254 |
252 bool equals(const ARMConstantPoolMBB *A) const { | 255 bool equals(const ARMConstantPoolMBB *A) const { |
253 return MBB == A->MBB && ARMConstantPoolValue::equals(A); | 256 return MBB == A->MBB && ARMConstantPoolValue::equals(A); |
254 } | 257 } |
255 }; | 258 }; |
256 | 259 |
257 } // End llvm namespace | 260 } // End llvm namespace |
258 | 261 |
259 #endif | 262 #endif |
OLD | NEW |