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

Side by Side Diff: src/IceTargetLoweringX8632Traits.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 | « no previous file | src/IceTargetLoweringX8664Traits.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/IceTargetLoweringX8632Traits.h - x86-32 traits -*- C++ -*-=// 1 //===- subzero/src/IceTargetLoweringX8632Traits.h - x86-32 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 static const uint32_t X86_STACK_ALIGNMENT_BYTES; 704 static const uint32_t X86_STACK_ALIGNMENT_BYTES;
705 /// Size of the return address on the stack 705 /// Size of the return address on the stack
706 static constexpr uint32_t X86_RET_IP_SIZE_BYTES = 4; 706 static constexpr uint32_t X86_RET_IP_SIZE_BYTES = 4;
707 /// The number of different NOP instructions 707 /// The number of different NOP instructions
708 static constexpr uint32_t X86_NUM_NOP_VARIANTS = 5; 708 static constexpr uint32_t X86_NUM_NOP_VARIANTS = 5;
709 709
710 /// \name Limits for unrolling memory intrinsics. 710 /// \name Limits for unrolling memory intrinsics.
711 /// @{ 711 /// @{
712 static constexpr uint32_t MEMCPY_UNROLL_LIMIT = 8; 712 static constexpr uint32_t MEMCPY_UNROLL_LIMIT = 8;
713 static constexpr uint32_t MEMMOVE_UNROLL_LIMIT = 8; 713 static constexpr uint32_t MEMMOVE_UNROLL_LIMIT = 8;
714 static constexpr uint32_t MEMSET_UNROLL_LIMIT = 16; 714 static constexpr uint32_t MEMSET_UNROLL_LIMIT = 8;
715 /// @} 715 /// @}
716 716
717 /// Value is in bytes. Return Value adjusted to the next highest multiple of 717 /// Value is in bytes. Return Value adjusted to the next highest multiple of
718 /// the stack alignment. 718 /// the stack alignment.
719 static uint32_t applyStackAlignment(uint32_t Value) { 719 static uint32_t applyStackAlignment(uint32_t Value) {
720 return Utils::applyAlignment(Value, X86_STACK_ALIGNMENT_BYTES); 720 return Utils::applyAlignment(Value, X86_STACK_ALIGNMENT_BYTES);
721 } 721 }
722 722
723 /// Return the type which the elements of the vector have in the X86 723 /// Return the type which the elements of the vector have in the X86
724 /// representation of the vector. 724 /// representation of the vector.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 960
961 static uint8_t InstSegmentPrefixes[]; 961 static uint8_t InstSegmentPrefixes[];
962 }; 962 };
963 963
964 using Traits = ::Ice::X8632::TargetX8632Traits; 964 using Traits = ::Ice::X8632::TargetX8632Traits;
965 } // end of namespace X8632 965 } // end of namespace X8632
966 966
967 } // end of namespace Ice 967 } // end of namespace Ice
968 968
969 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632TRAITS_H 969 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632TRAITS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX8664Traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698