| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 Label->finalCheck(); | 102 Label->finalCheck(); |
| 103 } | 103 } |
| 104 for (const Label *Label : LocalLabels) { | 104 for (const Label *Label : LocalLabels) { |
| 105 Label->finalCheck(); | 105 Label->finalCheck(); |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 MoveRelocatableFixup *createMoveFixup(bool IsMovW, const Constant *Value); | 110 MoveRelocatableFixup *createMoveFixup(bool IsMovW, const Constant *Value); |
| 111 | 111 |
| 112 BlRelocatableFixup *createBlFixup(const ConstantRelocatable *Target); | 112 BlRelocatableFixup *createBlFixup(const ConstantRelocatable *BlTarget); |
| 113 | 113 |
| 114 void alignFunction() override { | 114 void alignFunction() override { |
| 115 const SizeT Align = 1 << getBundleAlignLog2Bytes(); | 115 const SizeT Align = 1 << getBundleAlignLog2Bytes(); |
| 116 SizeT BytesNeeded = Utils::OffsetToAlignment(Buffer.getPosition(), Align); | 116 SizeT BytesNeeded = Utils::OffsetToAlignment(Buffer.getPosition(), Align); |
| 117 constexpr IValueT UndefinedInst = 0xe7fedef0; // udf #60896 | 117 constexpr IValueT UndefinedInst = 0xe7fedef0; // udf #60896 |
| 118 constexpr SizeT InstSize = sizeof(IValueT); | 118 constexpr SizeT InstSize = sizeof(IValueT); |
| 119 assert(BytesNeeded % InstARM32::InstSize == 0); | 119 assert(BytesNeeded % InstARM32::InstSize == 0); |
| 120 while (BytesNeeded > 0) { | 120 while (BytesNeeded > 0) { |
| 121 AssemblerBuffer::EnsureCapacity ensured(&Buffer); | 121 AssemblerBuffer::EnsureCapacity ensured(&Buffer); |
| 122 emitInst(UndefinedInst); | 122 emitInst(UndefinedInst); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and | 384 // cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and |
| 385 // iiiiiiiiiiiiiiii=Imm16. | 385 // iiiiiiiiiiiiiiii=Imm16. |
| 386 void emitMovw(IValueT Opcode, IValueT Rd, IValueT Imm16, bool SetFlags, | 386 void emitMovw(IValueT Opcode, IValueT Rd, IValueT Imm16, bool SetFlags, |
| 387 CondARM32::Cond Cond); | 387 CondARM32::Cond Cond); |
| 388 }; | 388 }; |
| 389 | 389 |
| 390 } // end of namespace ARM32 | 390 } // end of namespace ARM32 |
| 391 } // end of namespace Ice | 391 } // end of namespace Ice |
| 392 | 392 |
| 393 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 393 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H |
| OLD | NEW |