| OLD | NEW |
| 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 /// \file | 10 /// \file |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void emitJumpTable(const Cfg *Func, | 36 void emitJumpTable(const Cfg *Func, |
| 37 const InstJumpTable *JumpTable) const override; | 37 const InstJumpTable *JumpTable) const override; |
| 38 | 38 |
| 39 public: | 39 public: |
| 40 using X86InstructionSet = X8632::Traits::InstructionSet; | 40 using X86InstructionSet = X8632::Traits::InstructionSet; |
| 41 | 41 |
| 42 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); } | 42 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); } |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 void lowerCall(const InstCall *Instr) override; | 45 void lowerCall(const InstCall *Instr) override; |
| 46 void lowerArguments() override; |
| 47 void lowerRet(const InstRet *Inst) override; |
| 48 void addProlog(CfgNode *Node) override; |
| 49 void addEpilog(CfgNode *Node) override; |
| 46 | 50 |
| 47 private: | 51 private: |
| 48 friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>; | 52 friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>; |
| 49 | 53 |
| 50 Operand *createNaClReadTPSrcOperand() { | 54 Operand *createNaClReadTPSrcOperand() { |
| 51 Constant *Zero = Ctx->getConstantZero(IceType_i32); | 55 Constant *Zero = Ctx->getConstantZero(IceType_i32); |
| 52 return Traits::X86OperandMem::create(Func, IceType_i32, nullptr, Zero, | 56 return Traits::X86OperandMem::create(Func, IceType_i32, nullptr, Zero, |
| 53 nullptr, 0, | 57 nullptr, 0, |
| 54 Traits::X86OperandMem::SegReg_GS); | 58 Traits::X86OperandMem::SegReg_GS); |
| 55 } | 59 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 protected: | 98 protected: |
| 95 explicit TargetHeaderX8632(GlobalContext *Ctx); | 99 explicit TargetHeaderX8632(GlobalContext *Ctx); |
| 96 | 100 |
| 97 private: | 101 private: |
| 98 ~TargetHeaderX8632() = default; | 102 ~TargetHeaderX8632() = default; |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 } // end of namespace Ice | 105 } // end of namespace Ice |
| 102 | 106 |
| 103 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 107 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |