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

Unified Diff: src/IceTargetLoweringX8632.h

Issue 1186713010: Subzero: Add more kinds of RMW lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Refactor the assembler for 8 integer arithmetic instructions Created 5 years, 6 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/IceTargetLowering.cpp ('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 83945166dcd792aa06118a2fc2ad85a2ee9500da..408156f806db5fb540d00c06a94c25934dbf4a33 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -264,6 +264,9 @@ protected:
void _adc(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Adc::create(Func, Dest, Src0));
}
+ void _adc_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632AdcRMW::create(Func, DestSrc0, Src1));
+ }
void _add(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Add::create(Func, Dest, Src0));
}
@@ -283,6 +286,9 @@ protected:
void _and(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632And::create(Func, Dest, Src0));
}
+ void _and_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632AndRMW::create(Func, DestSrc0, Src1));
+ }
void _blendvps(Variable *Dest, Operand *Src0, Operand *Src1) {
Context.insert(InstX8632Blendvps::create(Func, Dest, Src0, Src1));
}
@@ -425,6 +431,9 @@ protected:
void _or(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Or::create(Func, Dest, Src0));
}
+ void _or_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632OrRMW::create(Func, DestSrc0, Src1));
+ }
void _padd(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Padd::create(Func, Dest, Src0));
}
@@ -494,6 +503,9 @@ protected:
void _sbb(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Sbb::create(Func, Dest, Src0));
}
+ void _sbb_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632SbbRMW::create(Func, DestSrc0, Src1));
+ }
void _setcc(Variable *Dest, CondX86::BrCond Condition) {
Context.insert(InstX8632Setcc::create(Func, Dest, Condition));
}
@@ -527,6 +539,9 @@ protected:
void _sub(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Sub::create(Func, Dest, Src0));
}
+ void _sub_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632SubRMW::create(Func, DestSrc0, Src1));
+ }
void _subps(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Subps::create(Func, Dest, Src0));
}
@@ -561,6 +576,9 @@ protected:
void _xor(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Xor::create(Func, Dest, Src0));
}
+ void _xor_rmw(OperandX8632Mem *DestSrc0, Operand *Src1) {
+ Context.insert(InstX8632XorRMW::create(Func, DestSrc0, Src1));
+ }
void _set_dest_nonkillable() {
Context.getLastInserted()->setDestNonKillable();
}
« no previous file with comments | « src/IceTargetLowering.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698