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

Unified Diff: src/IceTargetLoweringX8632.h

Issue 427843002: Subzero: Add support for SSE4.1 instructions. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix an empty line that was deleted Created 6 years, 5 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
« no previous file with comments | « src/IceInstX8632.def ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index daca0cdcf790e357af4e47bbaf7bc953f462bd41..0c87beed167fdf06d8286e3b61f9ae53ae90f564 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -71,6 +71,14 @@ public:
Reg_NUM
};
+ enum X86InstructionSet {
+ // SSE2 is the PNaCl baseline instruction set.
+ SSE2,
+ SSE4_1
+ };
+
+ X86InstructionSet getInstructionSet() const { return InstructionSet; }
+
protected:
TargetX8632(Cfg *Func);
@@ -186,6 +194,9 @@ protected:
void _and(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632And::create(Func, Dest, Src0));
}
+ void _blendvps(Variable *Dest, Operand *Src0, Operand *Src1) {
+ Context.insert(InstX8632Blendvps::create(Func, Dest, Src0, Src1));
+ }
void _br(InstX8632::BrCond Condition, CfgNode *TargetTrue,
CfgNode *TargetFalse) {
Context.insert(
@@ -260,6 +271,9 @@ protected:
void _imul(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Imul::create(Func, Dest, Src0));
}
+ void _insertps(Variable *Dest, Operand *Src0, Operand *Src1) {
+ Context.insert(InstX8632Insertps::create(Func, Dest, Src0, Src1));
+ }
void _lea(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Lea::create(Func, Dest, Src0));
}
@@ -317,20 +331,23 @@ protected:
void _pandn(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Pandn::create(Func, Dest, Src0));
}
+ void _pblendvb(Variable *Dest, Operand *Src0, Operand *Src1) {
+ Context.insert(InstX8632Pblendvb::create(Func, Dest, Src0, Src1));
+ }
void _pcmpeq(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Pcmpeq::create(Func, Dest, Src0));
}
void _pcmpgt(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Pcmpgt::create(Func, Dest, Src0));
}
- void _pextrw(Variable *Dest, Operand *Src0, Operand *Src1) {
- Context.insert(InstX8632Pextrw::create(Func, Dest, Src0, Src1));
+ void _pextr(Variable *Dest, Operand *Src0, Operand *Src1) {
+ Context.insert(InstX8632Pextr::create(Func, Dest, Src0, Src1));
}
- void _pinsrw(Variable *Dest, Operand *Src0, Operand *Src1) {
- Context.insert(InstX8632Pinsrw::create(Func, Dest, Src0, Src1));
+ void _pinsr(Variable *Dest, Operand *Src0, Operand *Src1) {
+ Context.insert(InstX8632Pinsr::create(Func, Dest, Src0, Src1));
}
- void _pmullw(Variable *Dest, Operand *Src0) {
- Context.insert(InstX8632Pmullw::create(Func, Dest, Src0));
+ void _pmull(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Pmull::create(Func, Dest, Src0));
}
void _pmuludq(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Pmuludq::create(Func, Dest, Src0));
@@ -428,6 +445,7 @@ protected:
Context.insert(InstX8632Xor::create(Func, Dest, Src0));
}
+ const X86InstructionSet InstructionSet;
bool IsEbpBasedFrame;
size_t FrameSizeLocals;
size_t LocalsSizeBytes;
« no previous file with comments | « src/IceInstX8632.def ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698