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

Side by Side Diff: src/IceTargetLoweringX8664Traits.h

Issue 2217983003: Subzero: Use the memset inline threshold for memset. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 months 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/IceTargetLoweringX8632Traits.h ('k') | 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/IceTargetLoweringX8664Traits.h - x86-64 traits -*- C++ -*-=// 1 //===- subzero/src/IceTargetLoweringX8664Traits.h - x86-64 traits -*- 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 static const uint32_t X86_STACK_ALIGNMENT_BYTES; 755 static const uint32_t X86_STACK_ALIGNMENT_BYTES;
756 /// Size of the return address on the stack 756 /// Size of the return address on the stack
757 static constexpr uint32_t X86_RET_IP_SIZE_BYTES = 8; 757 static constexpr uint32_t X86_RET_IP_SIZE_BYTES = 8;
758 /// The number of different NOP instructions 758 /// The number of different NOP instructions
759 static constexpr uint32_t X86_NUM_NOP_VARIANTS = 5; 759 static constexpr uint32_t X86_NUM_NOP_VARIANTS = 5;
760 760
761 /// \name Limits for unrolling memory intrinsics. 761 /// \name Limits for unrolling memory intrinsics.
762 /// @{ 762 /// @{
763 static constexpr uint32_t MEMCPY_UNROLL_LIMIT = 8; 763 static constexpr uint32_t MEMCPY_UNROLL_LIMIT = 8;
764 static constexpr uint32_t MEMMOVE_UNROLL_LIMIT = 8; 764 static constexpr uint32_t MEMMOVE_UNROLL_LIMIT = 8;
765 static constexpr uint32_t MEMSET_UNROLL_LIMIT = 16; 765 static constexpr uint32_t MEMSET_UNROLL_LIMIT = 8;
766 /// @} 766 /// @}
767 767
768 /// Value is in bytes. Return Value adjusted to the next highest multiple of 768 /// Value is in bytes. Return Value adjusted to the next highest multiple of
769 /// the stack alignment. 769 /// the stack alignment.
770 static uint32_t applyStackAlignment(uint32_t Value) { 770 static uint32_t applyStackAlignment(uint32_t Value) {
771 return Utils::applyAlignment(Value, X86_STACK_ALIGNMENT_BYTES); 771 return Utils::applyAlignment(Value, X86_STACK_ALIGNMENT_BYTES);
772 } 772 }
773 773
774 /// Return the type which the elements of the vector have in the X86 774 /// Return the type which the elements of the vector have in the X86
775 /// representation of the vector. 775 /// representation of the vector.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 const char *FldString; // s, l, or <blank> 1001 const char *FldString; // s, l, or <blank>
1002 } TypeAttributes[]; 1002 } TypeAttributes[];
1003 }; 1003 };
1004 1004
1005 using Traits = ::Ice::X8664::TargetX8664Traits; 1005 using Traits = ::Ice::X8664::TargetX8664Traits;
1006 } // end of namespace X8664 1006 } // end of namespace X8664
1007 1007
1008 } // end of namespace Ice 1008 } // end of namespace Ice
1009 1009
1010 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H 1010 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632Traits.h ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698