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

Side by Side Diff: src/IceTargetLowering.h

Issue 465413003: Subzero: Align spill locations to natural alignment. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: LocalsSizeBytes -> SpillAreaSizeBytes, local variables -> allocas Created 6 years, 4 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 | « no previous file | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
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 declares the TargetLowering and LoweringContext 10 // This file declares the TargetLowering and LoweringContext
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Returns a variable pre-colored to the specified physical 127 // Returns a variable pre-colored to the specified physical
128 // register. This is generally used to get very direct access to 128 // register. This is generally used to get very direct access to
129 // the register such as in the prolog or epilog or for marking 129 // the register such as in the prolog or epilog or for marking
130 // scratch registers as killed by a call. 130 // scratch registers as killed by a call.
131 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; 131 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0;
132 // Returns a printable name for the register. 132 // Returns a printable name for the register.
133 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; 133 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0;
134 134
135 virtual bool hasFramePointer() const { return false; } 135 virtual bool hasFramePointer() const { return false; }
136 virtual SizeT getFrameOrStackReg() const = 0; 136 virtual SizeT getFrameOrStackReg() const = 0;
137 virtual size_t typeWidthInBytesOnStack(Type Ty) = 0; 137 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0;
138 bool hasComputedFrame() const { return HasComputedFrame; } 138 bool hasComputedFrame() const { return HasComputedFrame; }
139 int32_t getStackAdjustment() const { return StackAdjustment; } 139 int32_t getStackAdjustment() const { return StackAdjustment; }
140 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; } 140 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; }
141 void resetStackAdjustment() { StackAdjustment = 0; } 141 void resetStackAdjustment() { StackAdjustment = 0; }
142 LoweringContext &getContext() { return Context; } 142 LoweringContext &getContext() { return Context; }
143 143
144 enum RegSet { 144 enum RegSet {
145 RegSet_None = 0, 145 RegSet_None = 0,
146 RegSet_CallerSave = 1 << 0, 146 RegSet_CallerSave = 1 << 0,
147 RegSet_CalleeSave = 1 << 1, 147 RegSet_CalleeSave = 1 << 1,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 private: 235 private:
236 TargetGlobalInitLowering(const TargetGlobalInitLowering &) 236 TargetGlobalInitLowering(const TargetGlobalInitLowering &)
237 LLVM_DELETED_FUNCTION; 237 LLVM_DELETED_FUNCTION;
238 TargetGlobalInitLowering & 238 TargetGlobalInitLowering &
239 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; 239 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
240 }; 240 };
241 241
242 } // end of namespace Ice 242 } // end of namespace Ice
243 243
244 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 244 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698