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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 672393003: Subzero: Minor refactoring/additions in preparation for phi edge splitting. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove deprecated advanceBackward method Created 6 years, 1 month 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/IceTargetLowering.cpp ('k') | src/IceTargetLoweringX8632.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 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 TargetLoweringX8632 class, which 10 // This file declares the TargetLoweringX8632 class, which
(...skipping 17 matching lines...) Expand all
28 TargetX8632(const TargetX8632 &) = delete; 28 TargetX8632(const TargetX8632 &) = delete;
29 TargetX8632 &operator=(const TargetX8632 &) = delete; 29 TargetX8632 &operator=(const TargetX8632 &) = delete;
30 30
31 public: 31 public:
32 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); } 32 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); }
33 33
34 void translateOm1() override; 34 void translateOm1() override;
35 void translateO2() override; 35 void translateO2() override;
36 bool doBranchOpt(Inst *I, const CfgNode *NextNode) override; 36 bool doBranchOpt(Inst *I, const CfgNode *NextNode) override;
37 37
38 Variable *getPhysicalRegister(SizeT RegNum) override; 38 Variable *getPhysicalRegister(SizeT RegNum, Type Ty = IceType_void) override;
39 IceString getRegName(SizeT RegNum, Type Ty) const override; 39 IceString getRegName(SizeT RegNum, Type Ty) const override;
40 llvm::SmallBitVector getRegisterSet(RegSetMask Include, 40 llvm::SmallBitVector getRegisterSet(RegSetMask Include,
41 RegSetMask Exclude) const override; 41 RegSetMask Exclude) const override;
42 const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const override { 42 const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const override {
43 return TypeToRegisterSet[Ty]; 43 return TypeToRegisterSet[Ty];
44 } 44 }
45 bool hasFramePointer() const override { return IsEbpBasedFrame; } 45 bool hasFramePointer() const override { return IsEbpBasedFrame; }
46 SizeT getFrameOrStackReg() const override { 46 SizeT getFrameOrStackReg() const override {
47 return IsEbpBasedFrame ? RegX8632::Reg_ebp : RegX8632::Reg_esp; 47 return IsEbpBasedFrame ? RegX8632::Reg_ebp : RegX8632::Reg_esp;
48 } 48 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 }; 509 };
510 510
511 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 511 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
512 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 512 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
513 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 513 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
514 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 514 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
515 515
516 } // end of namespace Ice 516 } // end of namespace Ice
517 517
518 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 518 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceTargetLowering.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698