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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1279833005: Inline memcpy for small constant sizes. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 /// Naive lowering of cmpxchg. 147 /// Naive lowering of cmpxchg.
148 void lowerAtomicCmpxchg(Variable *DestPrev, Operand *Ptr, Operand *Expected, 148 void lowerAtomicCmpxchg(Variable *DestPrev, Operand *Ptr, Operand *Expected,
149 Operand *Desired); 149 Operand *Desired);
150 /// Attempt a more optimized lowering of cmpxchg. Returns true if optimized. 150 /// Attempt a more optimized lowering of cmpxchg. Returns true if optimized.
151 bool tryOptimizedCmpxchgCmpBr(Variable *DestPrev, Operand *Ptr, 151 bool tryOptimizedCmpxchgCmpBr(Variable *DestPrev, Operand *Ptr,
152 Operand *Expected, Operand *Desired); 152 Operand *Expected, Operand *Desired);
153 void lowerAtomicRMW(Variable *Dest, uint32_t Operation, Operand *Ptr, 153 void lowerAtomicRMW(Variable *Dest, uint32_t Operation, Operand *Ptr,
154 Operand *Val); 154 Operand *Val);
155 void lowerCountZeros(bool Cttz, Type Ty, Variable *Dest, Operand *FirstVal, 155 void lowerCountZeros(bool Cttz, Type Ty, Variable *Dest, Operand *FirstVal,
156 Operand *SecondVal); 156 Operand *SecondVal);
157 /// Replace a function call with inline instructions. 157 /// Replace a call to memcpy with inline instructions.
158 void lowerMemcpy(Operand *Dest, Operand *Src, Operand *Count);
159 /// Replace a call to memset with inline instructions.
158 void lowerMemset(Operand *Dest, Operand *Val, Operand *Count); 160 void lowerMemset(Operand *Dest, Operand *Val, Operand *Count);
159 161
160 /// Lower an indirect jump adding sandboxing when needed. 162 /// Lower an indirect jump adding sandboxing when needed.
161 void lowerIndirectJump(Variable *Target); 163 void lowerIndirectJump(Variable *Target);
162 164
163 /// Check the comparison is in [Min,Max]. The flags register will be modified 165 /// Check the comparison is in [Min,Max]. The flags register will be modified
164 /// with: 166 /// with:
165 /// - below equal, if in range 167 /// - below equal, if in range
166 /// - above, set if not in range 168 /// - above, set if not in range
167 /// The index into the range is returned. 169 /// The index into the range is returned.
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 } 656 }
655 657
656 BoolFolding FoldingInfo; 658 BoolFolding FoldingInfo;
657 }; 659 };
658 } // end of namespace X86Internal 660 } // end of namespace X86Internal
659 } // end of namespace Ice 661 } // end of namespace Ice
660 662
661 #include "IceTargetLoweringX86BaseImpl.h" 663 #include "IceTargetLoweringX86BaseImpl.h"
662 664
663 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 665 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698