Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: lib/Target/ARM/ARMConstantPoolValue.h

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Target/ARM/ARMConstantIslandPass.cpp ('k') | lib/Target/ARM/ARMExpandPseudoInsts.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « lib/Target/ARM/ARMConstantIslandPass.cpp ('k') | lib/Target/ARM/ARMExpandPseudoInsts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698