OLD | NEW |
1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// | 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- 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 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 bool isMultiSource() const { | 1335 bool isMultiSource() const { |
1336 assert(getSrcSize() == 1 || getSrcSize() == 2); | 1336 assert(getSrcSize() == 1 || getSrcSize() == 2); |
1337 return getSrcSize() == 2; | 1337 return getSrcSize() == 2; |
1338 } | 1338 } |
1339 | 1339 |
1340 Variable *getDestHi() const { return DestHi; } | 1340 Variable *getDestHi() const { return DestHi; } |
1341 | 1341 |
1342 private: | 1342 private: |
1343 InstARM32Mov(Cfg *Func, Variable *Dest, Operand *Src, | 1343 InstARM32Mov(Cfg *Func, Variable *Dest, Operand *Src, |
1344 CondARM32::Cond Predicate); | 1344 CondARM32::Cond Predicate); |
1345 | |
1346 void emitMultiDestSingleSource(const Cfg *Func) const; | 1345 void emitMultiDestSingleSource(const Cfg *Func) const; |
1347 void emitSingleDestMultiSource(const Cfg *Func) const; | 1346 void emitSingleDestMultiSource(const Cfg *Func) const; |
1348 void emitSingleDestSingleSource(const Cfg *Func) const; | 1347 void emitSingleDestSingleSource(const Cfg *Func) const; |
1349 | 1348 |
1350 void emitIASSingleDestSingleSource(const Cfg *Func) const; | |
1351 void emitIASScalarVFPMove(const Cfg *Func) const; | |
1352 void emitIASCoreVFPMove(const Cfg *Func) const; | |
1353 | |
1354 Variable *DestHi = nullptr; | 1349 Variable *DestHi = nullptr; |
1355 }; | 1350 }; |
1356 | 1351 |
1357 class InstARM32Vcmp final : public InstARM32Pred { | 1352 class InstARM32Vcmp final : public InstARM32Pred { |
1358 InstARM32Vcmp() = delete; | 1353 InstARM32Vcmp() = delete; |
1359 InstARM32Vcmp(const InstARM32Vcmp &) = delete; | 1354 InstARM32Vcmp(const InstARM32Vcmp &) = delete; |
1360 InstARM32Vcmp &operator=(const InstARM32Vcmp &) = delete; | 1355 InstARM32Vcmp &operator=(const InstARM32Vcmp &) = delete; |
1361 | 1356 |
1362 public: | 1357 public: |
1363 static InstARM32Vcmp *create(Cfg *Func, Variable *Src0, Variable *Src1, | 1358 static InstARM32Vcmp *create(Cfg *Func, Variable *Src0, Variable *Src1, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 // violations and link errors. | 1439 // violations and link errors. |
1445 | 1440 |
1446 template <> void InstARM32Ldr::emit(const Cfg *Func) const; | 1441 template <> void InstARM32Ldr::emit(const Cfg *Func) const; |
1447 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 1442 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
1448 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 1443 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
1449 | 1444 |
1450 } // end of namespace ARM32 | 1445 } // end of namespace ARM32 |
1451 } // end of namespace Ice | 1446 } // end of namespace Ice |
1452 | 1447 |
1453 #endif // SUBZERO_SRC_ICEINSTARM32_H | 1448 #endif // SUBZERO_SRC_ICEINSTARM32_H |
OLD | NEW |