Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// | 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 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 // This file implements the TargetLoweringARM32 class, which consists almost | 10 // This file implements the TargetLoweringARM32 class, which consists almost |
| 11 // entirely of the lowering sequence for each high-level instruction. | 11 // entirely of the lowering sequence for each high-level instruction. |
| 12 // | 12 // |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #include "IceTargetLoweringARM32.h" | |
| 16 | |
| 15 #include "llvm/Support/MathExtras.h" | 17 #include "llvm/Support/MathExtras.h" |
|
Jim Stichnoth
2015/06/24 21:35:33
Move this after Ice*.h includes?
John
2015/06/25 17:13:12
Done.
| |
| 16 | 18 |
| 17 #include "IceCfg.h" | 19 #include "IceCfg.h" |
| 18 #include "IceCfgNode.h" | 20 #include "IceCfgNode.h" |
| 19 #include "IceClFlags.h" | 21 #include "IceClFlags.h" |
| 20 #include "IceDefs.h" | 22 #include "IceDefs.h" |
| 21 #include "IceELFObjectWriter.h" | 23 #include "IceELFObjectWriter.h" |
| 22 #include "IceGlobalInits.h" | 24 #include "IceGlobalInits.h" |
| 23 #include "IceInstARM32.h" | 25 #include "IceInstARM32.h" |
| 24 #include "IceLiveness.h" | 26 #include "IceLiveness.h" |
| 25 #include "IceOperand.h" | 27 #include "IceOperand.h" |
| 26 #include "IceRegistersARM32.h" | 28 #include "IceRegistersARM32.h" |
| 27 #include "IceTargetLoweringARM32.def" | 29 #include "IceTargetLoweringARM32.def" |
| 28 #include "IceTargetLoweringARM32.h" | |
| 29 #include "IceUtils.h" | 30 #include "IceUtils.h" |
| 30 | 31 |
| 31 namespace Ice { | 32 namespace Ice { |
| 32 | 33 |
| 33 namespace { | 34 namespace { |
| 34 | 35 |
| 35 void UnimplementedError(const ClFlags &Flags) { | 36 void UnimplementedError(const ClFlags &Flags) { |
| 36 if (!Flags.getSkipUnimplemented()) { | 37 if (!Flags.getSkipUnimplemented()) { |
| 37 // Use llvm_unreachable instead of report_fatal_error, which gives better | 38 // Use llvm_unreachable instead of report_fatal_error, which gives better |
| 38 // stack traces. | 39 // stack traces. |
| (...skipping 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2378 << ".eabi_attribute 36, 1 @ Tag_FP_HP_extension\n" | 2379 << ".eabi_attribute 36, 1 @ Tag_FP_HP_extension\n" |
| 2379 << ".eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format\n" | 2380 << ".eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format\n" |
| 2380 << ".eabi_attribute 42, 1 @ Tag_MPextension_use\n" | 2381 << ".eabi_attribute 42, 1 @ Tag_MPextension_use\n" |
| 2381 << ".eabi_attribute 68, 1 @ Tag_Virtualization_use\n"; | 2382 << ".eabi_attribute 68, 1 @ Tag_Virtualization_use\n"; |
| 2382 // Technically R9 is used for TLS with Sandboxing, and we reserve it. | 2383 // Technically R9 is used for TLS with Sandboxing, and we reserve it. |
| 2383 // However, for compatibility with current NaCl LLVM, don't claim that. | 2384 // However, for compatibility with current NaCl LLVM, don't claim that. |
| 2384 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; | 2385 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; |
| 2385 } | 2386 } |
| 2386 | 2387 |
| 2387 } // end of namespace Ice | 2388 } // end of namespace Ice |
| OLD | NEW |