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