OLD | NEW |
1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// | 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 llvm::report_fatal_error("Not yet implemented"); | 69 llvm::report_fatal_error("Not yet implemented"); |
70 } | 70 } |
71 void emit(const ConstantFloat *C) const final { | 71 void emit(const ConstantFloat *C) const final { |
72 (void)C; | 72 (void)C; |
73 llvm::report_fatal_error("Not yet implemented"); | 73 llvm::report_fatal_error("Not yet implemented"); |
74 } | 74 } |
75 void emit(const ConstantDouble *C) const final { | 75 void emit(const ConstantDouble *C) const final { |
76 (void)C; | 76 (void)C; |
77 llvm::report_fatal_error("Not yet implemented"); | 77 llvm::report_fatal_error("Not yet implemented"); |
78 } | 78 } |
| 79 void _ret(Variable *RA, Variable *Src0 = nullptr) { |
| 80 Context.insert(InstMIPS32Ret::create(Func, RA, Src0)); |
| 81 } |
79 | 82 |
80 void lowerArguments() override; | 83 void lowerArguments() override; |
81 void addProlog(CfgNode *Node) override; | 84 void addProlog(CfgNode *Node) override; |
82 void addEpilog(CfgNode *Node) override; | 85 void addEpilog(CfgNode *Node) override; |
83 | 86 |
84 protected: | 87 protected: |
85 explicit TargetMIPS32(Cfg *Func); | 88 explicit TargetMIPS32(Cfg *Func); |
86 | 89 |
87 void postLower() override; | 90 void postLower() override; |
88 | 91 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 protected: | 166 protected: |
164 explicit TargetHeaderMIPS32(GlobalContext *Ctx); | 167 explicit TargetHeaderMIPS32(GlobalContext *Ctx); |
165 | 168 |
166 private: | 169 private: |
167 ~TargetHeaderMIPS32() = default; | 170 ~TargetHeaderMIPS32() = default; |
168 }; | 171 }; |
169 | 172 |
170 } // end of namespace Ice | 173 } // end of namespace Ice |
171 | 174 |
172 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H | 175 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H |
OLD | NEW |