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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1848303003: Simplify references to command line flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 8 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 Label *getOrCreateCfgNodeLabel(SizeT NodeNumber) { 142 Label *getOrCreateCfgNodeLabel(SizeT NodeNumber) {
143 return getOrCreateLabel(NodeNumber, CfgNodeLabels); 143 return getOrCreateLabel(NodeNumber, CfgNodeLabels);
144 } 144 }
145 145
146 Label *getOrCreateLocalLabel(SizeT Number) { 146 Label *getOrCreateLocalLabel(SizeT Number) {
147 return getOrCreateLabel(Number, LocalLabels); 147 return getOrCreateLabel(Number, LocalLabels);
148 } 148 }
149 149
150 void bindLocalLabel(const Cfg *Func, const InstARM32Label *InstL, 150 void bindLocalLabel(const InstARM32Label *InstL, SizeT Number) {
151 SizeT Number) { 151 if (BuildDefs::dump() && !getFlags().getDisableHybridAssembly()) {
152 if (BuildDefs::dump() &&
153 !Func->getContext()->getFlags().getDisableHybridAssembly()) {
154 constexpr SizeT InstSize = 0; 152 constexpr SizeT InstSize = 0;
155 emitTextInst(InstL->getLabelName() + ":", InstSize); 153 emitTextInst(InstL->getLabelName() + ":", InstSize);
156 } 154 }
157 Label *L = getOrCreateLocalLabel(Number); 155 Label *L = getOrCreateLocalLabel(Number);
158 if (!getPreliminary()) 156 if (!getPreliminary())
159 this->bind(L); 157 this->bind(L);
160 } 158 }
161 159
162 bool fixupIsPCRel(FixupKind Kind) const override { 160 bool fixupIsPCRel(FixupKind Kind) const override {
163 if (Kind == llvm::ELF::R_ARM_MOVW_PREL_NC) 161 if (Kind == llvm::ELF::R_ARM_MOVW_PREL_NC)
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 758
761 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd, 759 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd,
762 const Operand *OpSn, const Operand *OpSm, 760 const Operand *OpSn, const Operand *OpSm,
763 const char *InstName); 761 const char *InstName);
764 }; 762 };
765 763
766 } // end of namespace ARM32 764 } // end of namespace ARM32
767 } // end of namespace Ice 765 } // end of namespace Ice
768 766
769 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 767 #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