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

Unified Diff: src/IceInstX86BaseImpl.h

Issue 1530423002: Add template parameter for suffix to BinopXmm (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years 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
« src/IceInstX86Base.h ('K') | « src/IceInstX86Base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstX86BaseImpl.h
diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h
index 4e9a675b2f51ce47a589b27c0aff4ff431767ee7..4a92d5aff796938262e87828ea2b7f5db965b30e 100644
--- a/src/IceInstX86BaseImpl.h
+++ b/src/IceInstX86BaseImpl.h
@@ -1005,18 +1005,6 @@ void InstX86Sqrtss<Machine>::emit(const Cfg *Func) const {
}
template <class Machine>
-void InstX86Addss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "add%s",
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
void InstX86Padd<Machine>::emit(const Cfg *Func) const {
if (!BuildDefs::dump())
return;
@@ -1069,18 +1057,6 @@ void InstX86Pmull<Machine>::emitIAS(const Cfg *Func) const {
}
template <class Machine>
-void InstX86Subss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "sub%s",
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
void InstX86Psub<Machine>::emit(const Cfg *Func) const {
if (!BuildDefs::dump())
return;
@@ -1093,96 +1069,6 @@ void InstX86Psub<Machine>::emit(const Cfg *Func) const {
}
template <class Machine>
-void InstX86Mulss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "mul%s",
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Andnps<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .PdPsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Andps<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .PdPsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Maxss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Minss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Orps<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .PdPsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
-void InstX86Xorps<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
-
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "%s%s", this->Opcode,
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .PdPsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
-template <class Machine>
void InstX86Pmuludq<Machine>::emit(const Cfg *Func) const {
if (!BuildDefs::dump())
return;
@@ -1191,18 +1077,6 @@ void InstX86Pmuludq<Machine>::emit(const Cfg *Func) const {
this->emitTwoAddress(this->Opcode, this, Func);
}
-template <class Machine>
-void InstX86Divss<Machine>::emit(const Cfg *Func) const {
- if (!BuildDefs::dump())
- return;
- char buf[30];
- snprintf(
- buf, llvm::array_lengthof(buf), "div%s",
- InstX86Base<Machine>::Traits::TypeAttributes[this->getDest()->getType()]
- .SdSsString);
- this->emitTwoAddress(buf, this, Func);
-}
-
template <class Machine> void InstX86Div<Machine>::emit(const Cfg *Func) const {
if (!BuildDefs::dump())
return;
« src/IceInstX86Base.h ('K') | « src/IceInstX86Base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698