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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 384443003: Add scalar lowering for sqrt intrinsic. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: whitespace 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 unified diff | Download patch
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.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/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 TargetLoweringX8632 class, which 10 // This file declares the TargetLoweringX8632 class, which
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 void _shld(Variable *Dest, Variable *Src0, Variable *Src1) { 246 void _shld(Variable *Dest, Variable *Src0, Variable *Src1) {
247 Context.insert(InstX8632Shld::create(Func, Dest, Src0, Src1)); 247 Context.insert(InstX8632Shld::create(Func, Dest, Src0, Src1));
248 } 248 }
249 void _shr(Variable *Dest, Operand *Src0) { 249 void _shr(Variable *Dest, Operand *Src0) {
250 Context.insert(InstX8632Shr::create(Func, Dest, Src0)); 250 Context.insert(InstX8632Shr::create(Func, Dest, Src0));
251 } 251 }
252 void _shrd(Variable *Dest, Variable *Src0, Variable *Src1) { 252 void _shrd(Variable *Dest, Variable *Src0, Variable *Src1) {
253 Context.insert(InstX8632Shrd::create(Func, Dest, Src0, Src1)); 253 Context.insert(InstX8632Shrd::create(Func, Dest, Src0, Src1));
254 } 254 }
255 void _sqrtss(Variable *Dest, Operand *Src0) {
256 Context.insert(InstX8632Sqrtss::create(Func, Dest, Src0));
257 }
255 void _store(Operand *Value, OperandX8632 *Mem) { 258 void _store(Operand *Value, OperandX8632 *Mem) {
256 Context.insert(InstX8632Store::create(Func, Value, Mem)); 259 Context.insert(InstX8632Store::create(Func, Value, Mem));
257 } 260 }
258 void _storeq(Operand *Value, OperandX8632 *Mem) { 261 void _storeq(Operand *Value, OperandX8632 *Mem) {
259 Context.insert(InstX8632StoreQ::create(Func, Value, Mem)); 262 Context.insert(InstX8632StoreQ::create(Func, Value, Mem));
260 } 263 }
261 void _sub(Variable *Dest, Operand *Src0) { 264 void _sub(Variable *Dest, Operand *Src0) {
262 Context.insert(InstX8632Sub::create(Func, Dest, Src0)); 265 Context.insert(InstX8632Sub::create(Func, Dest, Src0));
263 } 266 }
264 void _subss(Variable *Dest, Operand *Src0) { 267 void _subss(Variable *Dest, Operand *Src0) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 virtual ~TargetGlobalInitX8632() {} 324 virtual ~TargetGlobalInitX8632() {}
322 }; 325 };
323 326
324 template <> void ConstantInteger::emit(GlobalContext *Ctx) const; 327 template <> void ConstantInteger::emit(GlobalContext *Ctx) const;
325 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 328 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
326 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 329 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
327 330
328 } // end of namespace Ice 331 } // end of namespace Ice
329 332
330 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 333 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698