OLD | NEW |
1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// |
2 // | 2 // |
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 // | 6 // |
7 // Modified by the Subzero authors. | 7 // Modified by the Subzero authors. |
8 // | 8 // |
9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
10 // | 10 // |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 DRegListSize2 = 10, // 0b1010 | 79 DRegListSize2 = 10, // 0b1010 |
80 DRegListSIze3 = 6, // 0b0110 | 80 DRegListSIze3 = 6, // 0b0110 |
81 DRegListSize4 = 2 // 0b0010 | 81 DRegListSize4 = 2 // 0b0010 |
82 }; | 82 }; |
83 | 83 |
84 class TargetInfo { | 84 class TargetInfo { |
85 TargetInfo(const TargetInfo &) = delete; | 85 TargetInfo(const TargetInfo &) = delete; |
86 TargetInfo &operator=(const TargetInfo &) = delete; | 86 TargetInfo &operator=(const TargetInfo &) = delete; |
87 | 87 |
88 public: | 88 public: |
89 TargetInfo(bool HasFramePointer, SizeT FrameOrStackReg) | 89 TargetInfo(bool HasFramePointer, RegNumT FrameOrStackReg) |
90 : HasFramePointer(HasFramePointer), FrameOrStackReg(FrameOrStackReg) {} | 90 : HasFramePointer(HasFramePointer), FrameOrStackReg(FrameOrStackReg) {} |
91 explicit TargetInfo(const TargetLowering *Target) | 91 explicit TargetInfo(const TargetLowering *Target) |
92 : HasFramePointer(Target->hasFramePointer()), | 92 : HasFramePointer(Target->hasFramePointer()), |
93 FrameOrStackReg(Target->getFrameOrStackReg()) {} | 93 FrameOrStackReg(Target->getFrameOrStackReg()) {} |
94 const bool HasFramePointer; | 94 const bool HasFramePointer; |
95 const SizeT FrameOrStackReg; | 95 const RegNumT FrameOrStackReg; |
96 }; | 96 }; |
97 | 97 |
98 explicit AssemblerARM32(bool use_far_branches = false) | 98 explicit AssemblerARM32(bool use_far_branches = false) |
99 : Assembler(Asm_ARM32) { | 99 : Assembler(Asm_ARM32) { |
100 // TODO(kschimpf): Add mode if needed when branches are handled. | 100 // TODO(kschimpf): Add mode if needed when branches are handled. |
101 (void)use_far_branches; | 101 (void)use_far_branches; |
102 } | 102 } |
103 ~AssemblerARM32() override { | 103 ~AssemblerARM32() override { |
104 if (BuildDefs::asserts()) { | 104 if (BuildDefs::asserts()) { |
105 for (const Label *Label : CfgNodeLabels) { | 105 for (const Label *Label : CfgNodeLabels) { |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 705 |
706 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd, | 706 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd, |
707 const Operand *OpSn, const Operand *OpSm, | 707 const Operand *OpSn, const Operand *OpSm, |
708 const char *InstName); | 708 const char *InstName); |
709 }; | 709 }; |
710 | 710 |
711 } // end of namespace ARM32 | 711 } // end of namespace ARM32 |
712 } // end of namespace Ice | 712 } // end of namespace Ice |
713 | 713 |
714 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 714 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H |
OLD | NEW |