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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void _link_bp(); | 60 void _link_bp(); |
61 void _unlink_bp(); | 61 void _unlink_bp(); |
62 void _push_reg(Variable *Reg); | 62 void _push_reg(Variable *Reg); |
63 | 63 |
| 64 void initRebasePtr(); |
64 void initSandbox(); | 65 void initSandbox(); |
| 66 bool legalizeOptAddrForSandbox(OptAddr *Addr); |
65 void emitSandboxedReturn(); | 67 void emitSandboxedReturn(); |
66 void lowerIndirectJump(Variable *JumpTarget); | 68 void lowerIndirectJump(Variable *JumpTarget); |
67 void emitGetIP(CfgNode *Node); | 69 void emitGetIP(CfgNode *Node); |
68 Inst *emitCallToTarget(Operand *CallTarget, Variable *ReturnReg) override; | 70 Inst *emitCallToTarget(Operand *CallTarget, Variable *ReturnReg) override; |
69 Variable *moveReturnValueToRegister(Operand *Value, Type ReturnType) override; | 71 Variable *moveReturnValueToRegister(Operand *Value, Type ReturnType) override; |
70 | 72 |
71 private: | 73 private: |
72 ENABLE_MAKE_UNIQUE; | 74 ENABLE_MAKE_UNIQUE; |
73 friend class X8664::TargetX86Base<X8664::Traits>; | 75 friend class X8664::TargetX86Base<X8664::Traits>; |
74 | 76 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 private: | 125 private: |
124 ENABLE_MAKE_UNIQUE; | 126 ENABLE_MAKE_UNIQUE; |
125 | 127 |
126 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} | 128 explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} |
127 }; | 129 }; |
128 | 130 |
129 } // end of namespace X8664 | 131 } // end of namespace X8664 |
130 } // end of namespace Ice | 132 } // end of namespace Ice |
131 | 133 |
132 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H | 134 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H |
OLD | NEW |