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

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 1222943003: ARM32: Lower more integer intrinsics and test. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: move to TargetLowering Created 5 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/IceInstARM32.cpp ('k') | src/IceTargetLowering.h » ('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/IceInstMips32.cpp - Mips32 instruction implementation --===// 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===//
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 /// \file 10 /// \file
11 /// This file implements the InstMips32 and OperandMips32 classes, 11 /// This file implements the InstMips32 and OperandMips32 classes,
12 /// primarily the constructors and the dump()/emit() methods. 12 /// primarily the constructors and the dump()/emit() methods.
13 /// 13 ///
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "IceAssemblerMIPS32.h" 16 #include "IceAssemblerMIPS32.h"
17 #include "IceCfg.h" 17 #include "IceCfg.h"
18 #include "IceCfgNode.h" 18 #include "IceCfgNode.h"
19 #include "IceInst.h" 19 #include "IceInst.h"
20 #include "IceInstMIPS32.h" 20 #include "IceInstMIPS32.h"
21 #include "IceOperand.h" 21 #include "IceOperand.h"
22 #include "IceRegistersMIPS32.h" 22 #include "IceRegistersMIPS32.h"
23 #include "IceTargetLoweringMIPS32.h" 23 #include "IceTargetLoweringMIPS32.h"
24 24
25 namespace Ice { 25 namespace Ice {
26 26
27
28 InstMIPS32Ret::InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source) 27 InstMIPS32Ret::InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source)
29 : InstMIPS32(Func, InstMIPS32::Ret, Source ? 2 : 1, nullptr) { 28 : InstMIPS32(Func, InstMIPS32::Ret, Source ? 2 : 1, nullptr) {
30 addSource(RA); 29 addSource(RA);
31 if (Source) 30 if (Source)
32 addSource(Source); 31 addSource(Source);
33 } 32 }
34 33
35 void InstMIPS32Ret::emit(const Cfg *Func) const { 34 void InstMIPS32Ret::emit(const Cfg *Func) const {
36 if (!ALLOW_DUMP) 35 if (!ALLOW_DUMP)
37 return; 36 return;
(...skipping 15 matching lines...) Expand all
53 52
54 void InstMIPS32Ret::dump(const Cfg *Func) const { 53 void InstMIPS32Ret::dump(const Cfg *Func) const {
55 if (!ALLOW_DUMP) 54 if (!ALLOW_DUMP)
56 return; 55 return;
57 Ostream &Str = Func->getContext()->getStrDump(); 56 Ostream &Str = Func->getContext()->getStrDump();
58 Type Ty = (getSrcSize() == 1 ? IceType_void : getSrc(0)->getType()); 57 Type Ty = (getSrcSize() == 1 ? IceType_void : getSrc(0)->getType());
59 Str << "ret." << Ty << " "; 58 Str << "ret." << Ty << " ";
60 dumpSources(Func); 59 dumpSources(Func);
61 } 60 }
62 } 61 }
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698