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 /// \file | 10 /// \file |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "IceTargetLoweringARM32.def" | 30 #include "IceTargetLoweringARM32.def" |
31 #include "IceUtils.h" | 31 #include "IceUtils.h" |
32 #include "llvm/Support/MathExtras.h" | 32 #include "llvm/Support/MathExtras.h" |
33 | 33 |
34 #include <algorithm> | 34 #include <algorithm> |
35 #include <array> | 35 #include <array> |
36 #include <utility> | 36 #include <utility> |
37 | 37 |
38 namespace ARM32 { | 38 namespace ARM32 { |
39 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) { | 39 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) { |
40 return ::Ice::TargetARM32::create(Func); | 40 return ::Ice::ARM32::TargetARM32::create(Func); |
41 } | 41 } |
42 | 42 |
43 std::unique_ptr<::Ice::TargetDataLowering> | 43 std::unique_ptr<::Ice::TargetDataLowering> |
44 createTargetDataLowering(::Ice::GlobalContext *Ctx) { | 44 createTargetDataLowering(::Ice::GlobalContext *Ctx) { |
45 return ::Ice::TargetDataARM32::create(Ctx); | 45 return ::Ice::ARM32::TargetDataARM32::create(Ctx); |
46 } | 46 } |
47 | 47 |
48 std::unique_ptr<::Ice::TargetHeaderLowering> | 48 std::unique_ptr<::Ice::TargetHeaderLowering> |
49 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) { | 49 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) { |
50 return ::Ice::TargetHeaderARM32::create(Ctx); | 50 return ::Ice::ARM32::TargetHeaderARM32::create(Ctx); |
51 } | 51 } |
52 | 52 |
53 void staticInit() { ::Ice::TargetARM32::staticInit(); } | 53 void staticInit() { ::Ice::ARM32::TargetARM32::staticInit(); } |
54 } // end of namespace ARM32 | 54 } // end of namespace ARM32 |
55 | 55 |
56 namespace Ice { | 56 namespace Ice { |
| 57 namespace ARM32 { |
57 | 58 |
58 namespace { | 59 namespace { |
59 | 60 |
60 // The following table summarizes the logic for lowering the icmp instruction | 61 // The following table summarizes the logic for lowering the icmp instruction |
61 // for i32 and narrower types. Each icmp condition has a clear mapping to an | 62 // for i32 and narrower types. Each icmp condition has a clear mapping to an |
62 // ARM32 conditional move instruction. | 63 // ARM32 conditional move instruction. |
63 | 64 |
64 const struct TableIcmp32_ { | 65 const struct TableIcmp32_ { |
65 CondARM32::Cond Mapping; | 66 CondARM32::Cond Mapping; |
66 } TableIcmp32[] = { | 67 } TableIcmp32[] = { |
(...skipping 6373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6440 } | 6441 } |
6441 // Technically R9 is used for TLS with Sandboxing, and we reserve it. | 6442 // Technically R9 is used for TLS with Sandboxing, and we reserve it. |
6442 // However, for compatibility with current NaCl LLVM, don't claim that. | 6443 // However, for compatibility with current NaCl LLVM, don't claim that. |
6443 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; | 6444 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; |
6444 } | 6445 } |
6445 | 6446 |
6446 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM]; | 6447 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM]; |
6447 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; | 6448 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; |
6448 llvm::SmallBitVector TargetARM32::ScratchRegs; | 6449 llvm::SmallBitVector TargetARM32::ScratchRegs; |
6449 | 6450 |
| 6451 } // end of namespace ARM32 |
6450 } // end of namespace Ice | 6452 } // end of namespace Ice |
OLD | NEW |