| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 lowering ----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 if (Instr->isMultiDest()) { | 324 if (Instr->isMultiDest()) { |
| 325 // If Instr is multi-dest, then Dest must be a Variable64On32. We add a | 325 // If Instr is multi-dest, then Dest must be a Variable64On32. We add a |
| 326 // fake-def for Instr.DestHi here. | 326 // fake-def for Instr.DestHi here. |
| 327 assert(llvm::isa<Variable64On32>(Dest)); | 327 assert(llvm::isa<Variable64On32>(Dest)); |
| 328 Context.insert(InstFakeDef::create(Func, Instr->getDestHi())); | 328 Context.insert(InstFakeDef::create(Func, Instr->getDestHi())); |
| 329 } | 329 } |
| 330 } | 330 } |
| 331 | 331 |
| 332 // _mov_i1_to_flags is used for bool folding. If "Boolean" is folded, this | 332 // _mov_i1_to_flags is used for bool folding. If "Boolean" is folded, this |
| 333 // method returns true, and sets "CondIfTrue0" and "CondIfTrue1" to the | 333 // method returns true, and sets "CondIfTrue0" and "CondIfTrue1" to the |
| 334 // appropriate ARM condition codes. If "Boolean" is not to be folded, then thi
s | 334 // appropriate ARM condition codes. If "Boolean" is not to be folded, then |
| 335 // this |
| 335 // method returns false. | 336 // method returns false. |
| 336 bool _mov_i1_to_flags(Operand *Boolean, CondARM32::Cond *CondIfTrue0, | 337 bool _mov_i1_to_flags(Operand *Boolean, CondARM32::Cond *CondIfTrue0, |
| 337 CondARM32::Cond *CondIfTrue1, | 338 CondARM32::Cond *CondIfTrue1, |
| 338 CondARM32::Cond *CondIfFalse); | 339 CondARM32::Cond *CondIfFalse); |
| 339 | 340 |
| 340 // _cmov is a pseudo instruction that is used for boolean folding. It emits | 341 // _cmov is a pseudo instruction that is used for boolean folding. It emits |
| 341 // code that moves "SrcIfTrue" to dest if either "CondIfTrue0" or | 342 // code that moves "SrcIfTrue" to dest if either "CondIfTrue0" or |
| 342 // "CondIfTrue1" holds, and "SrcIfFalse", if "CondIfFalse" holds. It requires | 343 // "CondIfTrue1" holds, and "SrcIfFalse", if "CondIfFalse" holds. It requires |
| 343 // "Dest" to be an infinite-weight temporary. | 344 // "Dest" to be an infinite-weight temporary. |
| 344 void _cmov(Variable *Dest, Operand *SrcIfTrue, CondARM32::Cond CondIfTrue0, | 345 void _cmov(Variable *Dest, Operand *SrcIfTrue, CondARM32::Cond CondIfTrue0, |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 | 708 |
| 708 private: | 709 private: |
| 709 ~TargetHeaderARM32() = default; | 710 ~TargetHeaderARM32() = default; |
| 710 | 711 |
| 711 TargetARM32Features CPUFeatures; | 712 TargetARM32Features CPUFeatures; |
| 712 }; | 713 }; |
| 713 | 714 |
| 714 } // end of namespace Ice | 715 } // end of namespace Ice |
| 715 | 716 |
| 716 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H | 717 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H |
| OLD | NEW |