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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 1516753008: Subzero: Use "auto" per (unwritten) auto coding style. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More <cast> instances without the llvm:: prefix 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 unified diff | Download patch
« no previous file with comments | « src/IcePhiLoweringImpl.h ('k') | src/IceTargetLoweringARM32.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/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 /// \file 10 /// \file
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 case Inst::Fcmp: 217 case Inst::Fcmp:
218 lowerFcmp(llvm::cast<InstFcmp>(Inst)); 218 lowerFcmp(llvm::cast<InstFcmp>(Inst));
219 break; 219 break;
220 case Inst::Icmp: 220 case Inst::Icmp:
221 lowerIcmp(llvm::cast<InstIcmp>(Inst)); 221 lowerIcmp(llvm::cast<InstIcmp>(Inst));
222 break; 222 break;
223 case Inst::InsertElement: 223 case Inst::InsertElement:
224 lowerInsertElement(llvm::cast<InstInsertElement>(Inst)); 224 lowerInsertElement(llvm::cast<InstInsertElement>(Inst));
225 break; 225 break;
226 case Inst::IntrinsicCall: { 226 case Inst::IntrinsicCall: {
227 InstIntrinsicCall *Call = llvm::cast<InstIntrinsicCall>(Inst); 227 auto *Call = llvm::cast<InstIntrinsicCall>(Inst);
228 if (Call->getIntrinsicInfo().ReturnsTwice) 228 if (Call->getIntrinsicInfo().ReturnsTwice)
229 setCallsReturnsTwice(true); 229 setCallsReturnsTwice(true);
230 lowerIntrinsicCall(Call); 230 lowerIntrinsicCall(Call);
231 break; 231 break;
232 } 232 }
233 case Inst::Load: 233 case Inst::Load:
234 lowerLoad(llvm::cast<InstLoad>(Inst)); 234 lowerLoad(llvm::cast<InstLoad>(Inst));
235 break; 235 break;
236 case Inst::Phi: 236 case Inst::Phi:
237 lowerPhi(llvm::cast<InstPhi>(Inst)); 237 lowerPhi(llvm::cast<InstPhi>(Inst));
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 if (Target == Target_##X) \ 665 if (Target == Target_##X) \
666 return TargetHeader##X::create(Ctx); 666 return TargetHeader##X::create(Ctx);
667 #include "llvm/Config/SZTargets.def" 667 #include "llvm/Config/SZTargets.def"
668 668
669 llvm::report_fatal_error("Unsupported target header lowering"); 669 llvm::report_fatal_error("Unsupported target header lowering");
670 } 670 }
671 671
672 TargetHeaderLowering::~TargetHeaderLowering() = default; 672 TargetHeaderLowering::~TargetHeaderLowering() = default;
673 673
674 } // end of namespace Ice 674 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IcePhiLoweringImpl.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698