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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 321993002: Add a few Subzero intrinsics (not the atomic ones yet). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove TODO Created 6 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 unified diff | Download patch
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.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/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering 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 // This file implements the skeleton of the TargetLowering class, 10 // This file implements the skeleton of the TargetLowering class,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 break; 109 break;
110 case Inst::Cast: 110 case Inst::Cast:
111 lowerCast(llvm::dyn_cast<InstCast>(Inst)); 111 lowerCast(llvm::dyn_cast<InstCast>(Inst));
112 break; 112 break;
113 case Inst::Fcmp: 113 case Inst::Fcmp:
114 lowerFcmp(llvm::dyn_cast<InstFcmp>(Inst)); 114 lowerFcmp(llvm::dyn_cast<InstFcmp>(Inst));
115 break; 115 break;
116 case Inst::Icmp: 116 case Inst::Icmp:
117 lowerIcmp(llvm::dyn_cast<InstIcmp>(Inst)); 117 lowerIcmp(llvm::dyn_cast<InstIcmp>(Inst));
118 break; 118 break;
119 case Inst::IntrinsicCall:
120 lowerIntrinsicCall(llvm::dyn_cast<InstIntrinsicCall>(Inst));
121 break;
119 case Inst::Load: 122 case Inst::Load:
120 lowerLoad(llvm::dyn_cast<InstLoad>(Inst)); 123 lowerLoad(llvm::dyn_cast<InstLoad>(Inst));
121 break; 124 break;
122 case Inst::Phi: 125 case Inst::Phi:
123 lowerPhi(llvm::dyn_cast<InstPhi>(Inst)); 126 lowerPhi(llvm::dyn_cast<InstPhi>(Inst));
124 break; 127 break;
125 case Inst::Ret: 128 case Inst::Ret:
126 lowerRet(llvm::dyn_cast<InstRet>(Inst)); 129 lowerRet(llvm::dyn_cast<InstRet>(Inst));
127 break; 130 break;
128 case Inst::Select: 131 case Inst::Select:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 RegInclude |= RegSet_CallerSave; 168 RegInclude |= RegSet_CallerSave;
166 RegInclude |= RegSet_CalleeSave; 169 RegInclude |= RegSet_CalleeSave;
167 RegExclude |= RegSet_StackPointer; 170 RegExclude |= RegSet_StackPointer;
168 if (hasFramePointer()) 171 if (hasFramePointer())
169 RegExclude |= RegSet_FramePointer; 172 RegExclude |= RegSet_FramePointer;
170 llvm::SmallBitVector RegMask = getRegisterSet(RegInclude, RegExclude); 173 llvm::SmallBitVector RegMask = getRegisterSet(RegInclude, RegExclude);
171 LinearScan.scan(RegMask); 174 LinearScan.scan(RegMask);
172 } 175 }
173 176
174 } // end of namespace Ice 177 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698