OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |