Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 1452993002: Subzero: Fix build warnings/errors under g++. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringX8664.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8664.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698