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

Side by Side Diff: src/IceInstX8632.h

Issue 429993002: Subzero: Try to fix warnings and errors in the Windows build. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Forward-declare latest set of emit() template specializations Created 6 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
« no previous file with comments | « no previous file | src/IceInstX8632.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInstX8632.h - Low-level x86 instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstX8632.h - Low-level x86 instructions --*- 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 // This file declares the InstX8632 and OperandX8632 classes and 10 // This file declares the InstX8632 and OperandX8632 classes and
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 virtual void dump(const Cfg *Func) const; 1183 virtual void dump(const Cfg *Func) const;
1184 static bool classof(const Inst *Inst) { return isClassof(Inst, Xchg); } 1184 static bool classof(const Inst *Inst) { return isClassof(Inst, Xchg); }
1185 1185
1186 private: 1186 private:
1187 InstX8632Xchg(Cfg *Func, Operand *Dest, Variable *Source); 1187 InstX8632Xchg(Cfg *Func, Operand *Dest, Variable *Source);
1188 InstX8632Xchg(const InstX8632Xchg &) LLVM_DELETED_FUNCTION; 1188 InstX8632Xchg(const InstX8632Xchg &) LLVM_DELETED_FUNCTION;
1189 InstX8632Xchg &operator=(const InstX8632Xchg &) LLVM_DELETED_FUNCTION; 1189 InstX8632Xchg &operator=(const InstX8632Xchg &) LLVM_DELETED_FUNCTION;
1190 virtual ~InstX8632Xchg() {} 1190 virtual ~InstX8632Xchg() {}
1191 }; 1191 };
1192 1192
1193 // Declare partial template specializations of emit() methods that
1194 // already have default implementations. Without this, there is the
1195 // possibility of ODR violations and link errors.
1196 template <> void InstX8632Addss::emit(const Cfg *Func) const;
1197 template <> void InstX8632Blendvps::emit(const Cfg *Func) const;
1198 template <> void InstX8632Div::emit(const Cfg *Func) const;
1199 template <> void InstX8632Divss::emit(const Cfg *Func) const;
1200 template <> void InstX8632Idiv::emit(const Cfg *Func) const;
1201 template <> void InstX8632Imul::emit(const Cfg *Func) const;
1202 template <> void InstX8632Lea::emit(const Cfg *Func) const;
1203 template <> void InstX8632Mulss::emit(const Cfg *Func) const;
1204 template <> void InstX8632Padd::emit(const Cfg *Func) const;
1205 template <> void InstX8632Pblendvb::emit(const Cfg *Func) const;
1206 template <> void InstX8632Pcmpeq::emit(const Cfg *Func) const;
1207 template <> void InstX8632Pcmpgt::emit(const Cfg *Func) const;
1208 template <> void InstX8632Pextr::emit(const Cfg *Func) const;
1209 template <> void InstX8632Pinsr::emit(const Cfg *Func) const;
1210 template <> void InstX8632Pmull::emit(const Cfg *Func) const;
1211 template <> void InstX8632Pmuludq::emit(const Cfg *Func) const;
1212 template <> void InstX8632Psll::emit(const Cfg *Func) const;
1213 template <> void InstX8632Psra::emit(const Cfg *Func) const;
1214 template <> void InstX8632Psub::emit(const Cfg *Func) const;
1215 template <> void InstX8632Sqrtss::emit(const Cfg *Func) const;
1216 template <> void InstX8632Subss::emit(const Cfg *Func) const;
1217
1193 } // end of namespace Ice 1218 } // end of namespace Ice
1194 1219
1195 #endif // SUBZERO_SRC_ICEINSTX8632_H 1220 #endif // SUBZERO_SRC_ICEINSTX8632_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698