| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// | 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 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 5493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5504 _mov(Reg, Src); | 5504 _mov(Reg, Src); |
| 5505 } | 5505 } |
| 5506 return Reg; | 5506 return Reg; |
| 5507 } | 5507 } |
| 5508 | 5508 |
| 5509 namespace { | 5509 namespace { |
| 5510 | 5510 |
| 5511 template <typename T> bool isPositiveZero(T Val) { | 5511 template <typename T> bool isPositiveZero(T Val) { |
| 5512 static_assert(std::is_floating_point<T>::value, | 5512 static_assert(std::is_floating_point<T>::value, |
| 5513 "Input type must be floating point"); | 5513 "Input type must be floating point"); |
| 5514 return Val == 0 && !signbit(Val); | 5514 return Val == 0 && !std::signbit(Val); |
| 5515 } | 5515 } |
| 5516 | 5516 |
| 5517 } // end of anonymous namespace | 5517 } // end of anonymous namespace |
| 5518 | 5518 |
| 5519 template <class Machine> | 5519 template <class Machine> |
| 5520 Operand *TargetX86Base<Machine>::legalize(Operand *From, LegalMask Allowed, | 5520 Operand *TargetX86Base<Machine>::legalize(Operand *From, LegalMask Allowed, |
| 5521 int32_t RegNum) { | 5521 int32_t RegNum) { |
| 5522 Type Ty = From->getType(); | 5522 Type Ty = From->getType(); |
| 5523 // Assert that a physical register is allowed. To date, all calls to | 5523 // Assert that a physical register is allowed. To date, all calls to |
| 5524 // legalize() allow a physical register. If a physical register needs to be | 5524 // legalize() allow a physical register. If a physical register needs to be |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6030 } | 6030 } |
| 6031 // the offset is not eligible for blinding or pooling, return the original | 6031 // the offset is not eligible for blinding or pooling, return the original |
| 6032 // mem operand | 6032 // mem operand |
| 6033 return MemOperand; | 6033 return MemOperand; |
| 6034 } | 6034 } |
| 6035 | 6035 |
| 6036 } // end of namespace X86Internal | 6036 } // end of namespace X86Internal |
| 6037 } // end of namespace Ice | 6037 } // end of namespace Ice |
| 6038 | 6038 |
| 6039 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 6039 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
| OLD | NEW |