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

Side by Side Diff: src/IceTargetLowering.h

Issue 515993002: Align function starts to target-specific bundle alignment. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: test Created 6 years, 3 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // register. This is generally used to get very direct access to 130 // register. This is generally used to get very direct access to
131 // the register such as in the prolog or epilog or for marking 131 // the register such as in the prolog or epilog or for marking
132 // scratch registers as killed by a call. 132 // scratch registers as killed by a call.
133 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; 133 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0;
134 // Returns a printable name for the register. 134 // Returns a printable name for the register.
135 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; 135 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0;
136 136
137 virtual bool hasFramePointer() const { return false; } 137 virtual bool hasFramePointer() const { return false; }
138 virtual SizeT getFrameOrStackReg() const = 0; 138 virtual SizeT getFrameOrStackReg() const = 0;
139 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; 139 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0;
140 virtual SizeT getBundleP2Align() const = 0;
Jim Stichnoth 2014/08/28 20:26:12 Rename this something like getBundleP2AlignLog2Byt
jvoung (off chromium) 2014/08/28 21:02:22 Renamed to getBundleAlignLog2Bytes() -- P2 was mea
Jim Stichnoth 2014/08/28 21:22:21 Ah, I didn't realize what the p2 stood for. :) In
jvoung (off chromium) 2014/08/28 22:38:13 Well, Log2 is probably more obvious =)
140 bool hasComputedFrame() const { return HasComputedFrame; } 141 bool hasComputedFrame() const { return HasComputedFrame; }
141 bool shouldDoNopInsertion() const; 142 bool shouldDoNopInsertion() const;
142 int32_t getStackAdjustment() const { return StackAdjustment; } 143 int32_t getStackAdjustment() const { return StackAdjustment; }
143 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; } 144 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; }
144 void resetStackAdjustment() { StackAdjustment = 0; } 145 void resetStackAdjustment() { StackAdjustment = 0; }
145 LoweringContext &getContext() { return Context; } 146 LoweringContext &getContext() { return Context; }
146 147
147 enum RegSet { 148 enum RegSet {
148 RegSet_None = 0, 149 RegSet_None = 0,
149 RegSet_CallerSave = 1 << 0, 150 RegSet_CallerSave = 1 << 0,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 private: 240 private:
240 TargetGlobalInitLowering(const TargetGlobalInitLowering &) 241 TargetGlobalInitLowering(const TargetGlobalInitLowering &)
241 LLVM_DELETED_FUNCTION; 242 LLVM_DELETED_FUNCTION;
242 TargetGlobalInitLowering & 243 TargetGlobalInitLowering &
243 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; 244 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
244 }; 245 };
245 246
246 } // end of namespace Ice 247 } // end of namespace Ice
247 248
248 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 249 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« src/IceCfg.cpp ('K') | « src/IceCfg.cpp ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698