Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1676123002: Subzero: Use a proper RegNumT type instead of int32_t/SizeT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make it possible to do "auto NewReg = RegNumT::NoRegister;" Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698