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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1439363002: Subzero: Use "pxor reg,reg" to load a floating-point scalar 0.0 value. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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 | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | 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/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX86Base.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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 /// Returns the smallest type which is equal to or larger than Size bytes. If 264 /// Returns the smallest type which is equal to or larger than Size bytes. If
265 /// one doesn't exist then the largest type smaller than Size bytes is 265 /// one doesn't exist then the largest type smaller than Size bytes is
266 /// returned. The type is suitable for memory copies as described at 266 /// returned. The type is suitable for memory copies as described at
267 /// largestTypeInSize. 267 /// largestTypeInSize.
268 static Type firstTypeThatFitsSize(uint32_t Size, 268 static Type firstTypeThatFitsSize(uint32_t Size,
269 uint32_t MaxSize = NoSizeLimit); 269 uint32_t MaxSize = NoSizeLimit);
270 270
271 Variable *copyToReg8(Operand *Src, int32_t RegNum = Variable::NoRegister); 271 Variable *copyToReg8(Operand *Src, int32_t RegNum = Variable::NoRegister);
272 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 272 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
273 273
274 /// Returns a register containing all zeros, without affecting the FLAGS
275 /// register, using the best instruction for the type.
276 Variable *makeZeroedRegister(Type Ty, int32_t RegNum = Variable::NoRegister);
277
274 /// \name Returns a vector in a register with the given constant entries. 278 /// \name Returns a vector in a register with the given constant entries.
275 /// @{ 279 /// @{
276 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 280 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
277 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); 281 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister);
278 Variable *makeVectorOfMinusOnes(Type Ty, 282 Variable *makeVectorOfMinusOnes(Type Ty,
279 int32_t RegNum = Variable::NoRegister); 283 int32_t RegNum = Variable::NoRegister);
280 Variable *makeVectorOfHighOrderBits(Type Ty, 284 Variable *makeVectorOfHighOrderBits(Type Ty,
281 int32_t RegNum = Variable::NoRegister); 285 int32_t RegNum = Variable::NoRegister);
282 Variable *makeVectorOfFabsMask(Type Ty, 286 Variable *makeVectorOfFabsMask(Type Ty,
283 int32_t RegNum = Variable::NoRegister); 287 int32_t RegNum = Variable::NoRegister);
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 lowerIcmp64(const InstIcmp *Icmp, const InstBr *Br); 752 lowerIcmp64(const InstIcmp *Icmp, const InstBr *Br);
749 753
750 BoolFolding FoldingInfo; 754 BoolFolding FoldingInfo;
751 }; 755 };
752 } // end of namespace X86Internal 756 } // end of namespace X86Internal
753 } // end of namespace Ice 757 } // end of namespace Ice
754 758
755 #include "IceTargetLoweringX86BaseImpl.h" 759 #include "IceTargetLoweringX86BaseImpl.h"
756 760
757 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 761 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698