| 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 27 matching lines...) Expand all  Loading... | 
| 38 namespace Ice { | 38 namespace Ice { | 
| 39 namespace ARM32 { | 39 namespace ARM32 { | 
| 40 | 40 | 
| 41 /// Encoding of an ARM 32-bit instruction. | 41 /// Encoding of an ARM 32-bit instruction. | 
| 42 using IValueT = uint32_t; | 42 using IValueT = uint32_t; | 
| 43 | 43 | 
| 44 /// An Offset value (+/-) used in an ARM 32-bit instruction. | 44 /// An Offset value (+/-) used in an ARM 32-bit instruction. | 
| 45 using IOffsetT = int32_t; | 45 using IOffsetT = int32_t; | 
| 46 | 46 | 
| 47 class AssemblerARM32 : public Assembler { | 47 class AssemblerARM32 : public Assembler { | 
| 48   AssemblerARM32() = delete; |  | 
| 49   AssemblerARM32(const AssemblerARM32 &) = delete; | 48   AssemblerARM32(const AssemblerARM32 &) = delete; | 
| 50   AssemblerARM32 &operator=(const AssemblerARM32 &) = delete; | 49   AssemblerARM32 &operator=(const AssemblerARM32 &) = delete; | 
| 51 | 50 | 
| 52 public: | 51 public: | 
| 53   explicit AssemblerARM32(GlobalContext *Ctx, bool use_far_branches = false) | 52   explicit AssemblerARM32(bool use_far_branches = false) | 
| 54       : Assembler(Asm_ARM32, Ctx) { | 53       : Assembler(Asm_ARM32) { | 
| 55     // TODO(kschimpf): Add mode if needed when branches are handled. | 54     // TODO(kschimpf): Add mode if needed when branches are handled. | 
| 56     (void)use_far_branches; | 55     (void)use_far_branches; | 
| 57   } | 56   } | 
| 58   ~AssemblerARM32() override { | 57   ~AssemblerARM32() override { | 
| 59     if (BuildDefs::asserts()) { | 58     if (BuildDefs::asserts()) { | 
| 60       for (const Label *Label : CfgNodeLabels) { | 59       for (const Label *Label : CfgNodeLabels) { | 
| 61         Label->finalCheck(); | 60         Label->finalCheck(); | 
| 62       } | 61       } | 
| 63       for (const Label *Label : LocalLabels) { | 62       for (const Label *Label : LocalLabels) { | 
| 64         Label->finalCheck(); | 63         Label->finalCheck(); | 
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 184   IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); | 183   IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); | 
| 185 | 184 | 
| 186   // Returns the offset encoded in the branch instruction Inst. | 185   // Returns the offset encoded in the branch instruction Inst. | 
| 187   static IOffsetT decodeBranchOffset(IValueT Inst); | 186   static IOffsetT decodeBranchOffset(IValueT Inst); | 
| 188 }; | 187 }; | 
| 189 | 188 | 
| 190 } // end of namespace ARM32 | 189 } // end of namespace ARM32 | 
| 191 } // end of namespace Ice | 190 } // end of namespace Ice | 
| 192 | 191 | 
| 193 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 192 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 
| OLD | NEW | 
|---|