| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// | 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// |
| 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 TargetLoweringMIPS32 class, which consists almost | 11 /// This file implements the TargetLoweringMIPS32 class, which consists almost |
| 12 /// entirely of the lowering sequence for each high-level instruction. | 12 /// entirely of the lowering sequence for each high-level instruction. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #include "IceTargetLoweringMIPS32.h" | 16 #include "IceTargetLoweringMIPS32.h" |
| 17 | 17 |
| 18 #include "IceCfg.h" | 18 #include "IceCfg.h" |
| 19 #include "IceCfgNode.h" | 19 #include "IceCfgNode.h" |
| 20 #include "IceClFlags.h" | 20 #include "IceClFlags.h" |
| 21 #include "IceDefs.h" | 21 #include "IceDefs.h" |
| 22 #include "IceELFObjectWriter.h" | 22 #include "IceELFObjectWriter.h" |
| 23 #include "IceGlobalInits.h" | 23 #include "IceGlobalInits.h" |
| 24 #include "IceInstMIPS32.h" | 24 #include "IceInstMIPS32.h" |
| 25 #include "IceLiveness.h" | 25 #include "IceLiveness.h" |
| 26 #include "IceOperand.h" | 26 #include "IceOperand.h" |
| 27 #include "IceRegistersMIPS32.h" | 27 #include "IceRegistersMIPS32.h" |
| 28 #include "IceTargetLoweringMIPS32.def" | 28 #include "IceTargetLoweringMIPS32.def" |
| 29 #include "IceUtils.h" | 29 #include "IceUtils.h" |
| 30 |
| 31 #pragma clang diagnostic push |
| 32 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 33 #pragma clang diagnostic ignored "-Wshadow" |
| 30 #include "llvm/Support/MathExtras.h" | 34 #include "llvm/Support/MathExtras.h" |
| 35 #pragma clang diagnostic pop |
| 31 | 36 |
| 32 namespace Ice { | 37 namespace Ice { |
| 33 | 38 |
| 34 namespace { | 39 namespace { |
| 35 void UnimplementedError(const ClFlags &Flags) { | 40 void UnimplementedError(const ClFlags &Flags) { |
| 36 if (!Flags.getSkipUnimplemented()) { | 41 if (!Flags.getSkipUnimplemented()) { |
| 37 // Use llvm_unreachable instead of report_fatal_error, which gives better | 42 // Use llvm_unreachable instead of report_fatal_error, which gives better |
| 38 // stack traces. | 43 // stack traces. |
| 39 llvm_unreachable("Not yet implemented"); | 44 llvm_unreachable("Not yet implemented"); |
| 40 abort(); | 45 abort(); |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 void TargetDataMIPS32::lowerConstants() { | 715 void TargetDataMIPS32::lowerConstants() { |
| 711 if (Ctx->getFlags().getDisableTranslation()) | 716 if (Ctx->getFlags().getDisableTranslation()) |
| 712 return; | 717 return; |
| 713 UnimplementedError(Ctx->getFlags()); | 718 UnimplementedError(Ctx->getFlags()); |
| 714 } | 719 } |
| 715 | 720 |
| 716 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 721 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 717 : TargetHeaderLowering(Ctx) {} | 722 : TargetHeaderLowering(Ctx) {} |
| 718 | 723 |
| 719 } // end of namespace Ice | 724 } // end of namespace Ice |
| OLD | NEW |