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

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: uint8_t 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
« no previous file with comments | « src/IceDefs.h ('k') | 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 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 getBundleAlignLog2Bytes() const = 0;
141 virtual llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const = 0;
140 bool hasComputedFrame() const { return HasComputedFrame; } 142 bool hasComputedFrame() const { return HasComputedFrame; }
141 bool shouldDoNopInsertion() const; 143 bool shouldDoNopInsertion() const;
142 int32_t getStackAdjustment() const { return StackAdjustment; } 144 int32_t getStackAdjustment() const { return StackAdjustment; }
143 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; } 145 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; }
144 void resetStackAdjustment() { StackAdjustment = 0; } 146 void resetStackAdjustment() { StackAdjustment = 0; }
145 LoweringContext &getContext() { return Context; } 147 LoweringContext &getContext() { return Context; }
146 148
147 enum RegSet { 149 enum RegSet {
148 RegSet_None = 0, 150 RegSet_None = 0,
149 RegSet_CallerSave = 1 << 0, 151 RegSet_CallerSave = 1 << 0,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 private: 241 private:
240 TargetGlobalInitLowering(const TargetGlobalInitLowering &) 242 TargetGlobalInitLowering(const TargetGlobalInitLowering &)
241 LLVM_DELETED_FUNCTION; 243 LLVM_DELETED_FUNCTION;
242 TargetGlobalInitLowering & 244 TargetGlobalInitLowering &
243 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; 245 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
244 }; 246 };
245 247
246 } // end of namespace Ice 248 } // end of namespace Ice
247 249
248 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 250 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698