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

Side by Side Diff: src/IceTargetLoweringX8664.h

Issue 1261383002: Subzero. Moves code around in preparations for 64-bit lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Moves methods in TargetLoweringX8632.cpp so they match TargetLoweringX8664.cpp Created 5 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
OLDNEW
1 //===- subzero/src/IceTargetLoweringX8664.h - lowering for x86-64 -*- C++ -*-=// 1 //===- subzero/src/IceTargetLoweringX8664.h - lowering for x86-64 -*- 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 22 matching lines...) Expand all
33 TargetX8664 &operator=(const TargetX8664 &) = delete; 33 TargetX8664 &operator=(const TargetX8664 &) = delete;
34 34
35 void emitJumpTable(const Cfg *Func, 35 void emitJumpTable(const Cfg *Func,
36 const InstJumpTable *JumpTable) const override; 36 const InstJumpTable *JumpTable) const override;
37 37
38 public: 38 public:
39 static TargetX8664 *create(Cfg *Func) { return new TargetX8664(Func); } 39 static TargetX8664 *create(Cfg *Func) { return new TargetX8664(Func); }
40 40
41 protected: 41 protected:
42 void lowerCall(const InstCall *Instr) override; 42 void lowerCall(const InstCall *Instr) override;
43 void lowerArguments() override;
44 void lowerRet(const InstRet *Inst) override;
45 void addProlog(CfgNode *Node) override;
46 void addEpilog(CfgNode *Node) override;
43 47
44 private: 48 private:
45 friend class ::Ice::X86Internal::TargetX86Base<TargetX8664>; 49 friend class ::Ice::X86Internal::TargetX86Base<TargetX8664>;
46 50
47 explicit TargetX8664(Cfg *Func) 51 explicit TargetX8664(Cfg *Func)
48 : ::Ice::X86Internal::TargetX86Base<TargetX8664>(Func) {} 52 : ::Ice::X86Internal::TargetX86Base<TargetX8664>(Func) {}
49 53
50 Operand *createNaClReadTPSrcOperand() { 54 Operand *createNaClReadTPSrcOperand() {
51 Variable *TDB = makeReg(IceType_i32); 55 Variable *TDB = makeReg(IceType_i32);
52 InstCall *Call = makeHelperCall(H_call_read_tp, TDB, 0); 56 InstCall *Call = makeHelperCall(H_call_read_tp, TDB, 0);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 97 }
94 98
95 private: 99 private:
96 ENABLE_MAKE_UNIQUE; 100 ENABLE_MAKE_UNIQUE;
97 101
98 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} 102 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {}
99 }; 103 };
100 } // end of namespace Ice 104 } // end of namespace Ice
101 105
102 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H 106 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698