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

Unified Diff: src/IceTargetLoweringX86Base.h

Issue 1255053008: Inline memset when there is a constant value and count. (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 side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLoweringX86Base.h
diff --git a/src/IceTargetLoweringX86Base.h b/src/IceTargetLoweringX86Base.h
index 64f921d46b831237dabba3e21cc1c49ccce2a245..d89d74753dfab9f136338a4895051c6b9b256b6b 100644
--- a/src/IceTargetLoweringX86Base.h
+++ b/src/IceTargetLoweringX86Base.h
@@ -158,6 +158,9 @@ protected:
Operand *Val);
void lowerCountZeros(bool Cttz, Type Ty, Variable *Dest, Operand *FirstVal,
Operand *SecondVal);
+ /// Replace a function call with inline instructions.
+ void lowerMemset(Operand *Dest, Operand *Val, Operand *Count);
+
/// Lower an indirect jump adding sandboxing when needed.
void lowerIndirectJump(Variable *Target);
@@ -214,7 +217,8 @@ protected:
Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
- /// Returns a vector in a register with the given constant entries.
+ /// \name Returns a vector in a register with the given constant entries.
+ /// @{
Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister);
Variable *makeVectorOfMinusOnes(Type Ty,
@@ -223,6 +227,7 @@ protected:
int32_t RegNum = Variable::NoRegister);
Variable *makeVectorOfFabsMask(Type Ty,
int32_t RegNum = Variable::NoRegister);
+ /// @}
/// Return a memory operand corresponding to a stack allocated Variable.
typename Traits::X86OperandMem *

Powered by Google App Engine
This is Rietveld 408576698