OLD | NEW |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 protected: | 54 protected: |
55 void _add_sp(Operand *Adjustment); | 55 void _add_sp(Operand *Adjustment); |
56 void _mov_sp(Operand *NewValue); | 56 void _mov_sp(Operand *NewValue); |
57 void _push_rbp(); | 57 void _push_rbp(); |
58 Traits::X86OperandMem *_sandbox_mem_reference(X86OperandMem *Mem); | 58 Traits::X86OperandMem *_sandbox_mem_reference(X86OperandMem *Mem); |
59 void _sub_sp(Operand *Adjustment); | 59 void _sub_sp(Operand *Adjustment); |
60 | 60 |
61 void initSandbox(); | 61 void initSandbox(); |
62 void lowerIndirectJump(Variable *JumpTarget); | 62 void lowerIndirectJump(Variable *JumpTarget); |
63 void lowerCall(const InstCall *Instr) override; | 63 Inst *emitCallToTarget(Operand *CallTarget, Variable *ReturnReg) override; |
64 void lowerArguments() override; | 64 Variable *moveReturnValueToRegister(Operand *Value, |
65 void lowerRet(const InstRet *Inst) override; | 65 const Type ReturnType) override; |
66 void addProlog(CfgNode *Node) override; | 66 void addProlog(CfgNode *Node) override; |
67 void addEpilog(CfgNode *Node) override; | 67 void addEpilog(CfgNode *Node) override; |
68 | 68 |
69 private: | 69 private: |
70 ENABLE_MAKE_UNIQUE; | 70 ENABLE_MAKE_UNIQUE; |
71 friend class X8664::TargetX86Base<X8664::Traits>; | 71 friend class X8664::TargetX86Base<X8664::Traits>; |
72 | 72 |
73 explicit TargetX8664(Cfg *Func) | 73 explicit TargetX8664(Cfg *Func) |
74 : ::Ice::X8664::TargetX86Base<X8664::Traits>(Func) {} | 74 : ::Ice::X8664::TargetX86Base<X8664::Traits>(Func) {} |
75 | 75 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 private: | 121 private: |
122 ENABLE_MAKE_UNIQUE; | 122 ENABLE_MAKE_UNIQUE; |
123 | 123 |
124 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} | 124 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} |
125 }; | 125 }; |
126 | 126 |
127 } // end of namespace X8664 | 127 } // end of namespace X8664 |
128 } // end of namespace Ice | 128 } // end of namespace Ice |
129 | 129 |
130 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H | 130 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H |
OLD | NEW |