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

Side by Side Diff: src/IceTargetLowering.h

Issue 1326013002: Refactor Lo and Hi out of Variable. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Refactor Hi and Lo out of Variable Created 5 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/IceOperand.h ('k') | src/IceTargetLoweringARM32.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 /// \file 10 /// \file
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 /// a Type is not provided, a target-specific default type is used. 174 /// a Type is not provided, a target-specific default type is used.
175 virtual Variable *getPhysicalRegister(SizeT RegNum, 175 virtual Variable *getPhysicalRegister(SizeT RegNum,
176 Type Ty = IceType_void) = 0; 176 Type Ty = IceType_void) = 0;
177 /// Returns a printable name for the register. 177 /// Returns a printable name for the register.
178 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; 178 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0;
179 179
180 virtual bool hasFramePointer() const { return false; } 180 virtual bool hasFramePointer() const { return false; }
181 virtual SizeT getFrameOrStackReg() const = 0; 181 virtual SizeT getFrameOrStackReg() const = 0;
182 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; 182 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0;
183 183
184 /// Return whether a 64-bit Variable should be split into a Variable64On32.
185 virtual bool shouldSplitToVariable64On32(Type Ty) const = 0;
186
184 bool hasComputedFrame() const { return HasComputedFrame; } 187 bool hasComputedFrame() const { return HasComputedFrame; }
185 /// Returns true if this function calls a function that has the "returns 188 /// Returns true if this function calls a function that has the "returns
186 /// twice" attribute. 189 /// twice" attribute.
187 bool callsReturnsTwice() const { return CallsReturnsTwice; } 190 bool callsReturnsTwice() const { return CallsReturnsTwice; }
188 void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; } 191 void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; }
189 int32_t getStackAdjustment() const { return StackAdjustment; } 192 int32_t getStackAdjustment() const { return StackAdjustment; }
190 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; } 193 void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; }
191 void resetStackAdjustment() { StackAdjustment = 0; } 194 void resetStackAdjustment() { StackAdjustment = 0; }
192 SizeT makeNextLabelNumber() { return NextLabelNumber++; } 195 SizeT makeNextLabelNumber() { return NextLabelNumber++; }
193 SizeT makeNextJumpTableNumber() { return NextJumpTableNumber++; } 196 SizeT makeNextJumpTableNumber() { return NextJumpTableNumber++; }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 virtual void lower() {} 453 virtual void lower() {}
451 454
452 protected: 455 protected:
453 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 456 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
454 GlobalContext *Ctx; 457 GlobalContext *Ctx;
455 }; 458 };
456 459
457 } // end of namespace Ice 460 } // end of namespace Ice
458 461
459 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 462 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698