| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerARM32.cpp - Assembler for ARM32 --*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerARM32.cpp - 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 return Utils::IsAligned(Offset, 4) && | 216 return Utils::IsAligned(Offset, 4) && |
| 217 Utils::IsInt(kBranchOffsetBits, Offset >> 2); | 217 Utils::IsInt(kBranchOffsetBits, Offset >> 2); |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // end of anonymous namespace | 220 } // end of anonymous namespace |
| 221 | 221 |
| 222 namespace Ice { | 222 namespace Ice { |
| 223 namespace ARM32 { | 223 namespace ARM32 { |
| 224 | 224 |
| 225 void AssemblerARM32::bindCfgNodeLabel(const CfgNode *Node) { | 225 void AssemblerARM32::bindCfgNodeLabel(const CfgNode *Node) { |
| 226 GlobalContext *Ctx = Node->getCfg()->getContext(); |
| 226 if (BuildDefs::dump() && !Ctx->getFlags().getDisableHybridAssembly()) { | 227 if (BuildDefs::dump() && !Ctx->getFlags().getDisableHybridAssembly()) { |
| 227 // Generate label name so that branches can find it. | 228 // Generate label name so that branches can find it. |
| 228 constexpr SizeT InstSize = 0; | 229 constexpr SizeT InstSize = 0; |
| 229 emitTextInst(Node->getAsmName() + ":", InstSize); | 230 emitTextInst(Node->getAsmName() + ":", InstSize); |
| 230 } | 231 } |
| 231 SizeT NodeNumber = Node->getIndex(); | 232 SizeT NodeNumber = Node->getIndex(); |
| 232 assert(!getPreliminary()); | 233 assert(!getPreliminary()); |
| 233 Label *L = getOrCreateCfgNodeLabel(NodeNumber); | 234 Label *L = getOrCreateCfgNodeLabel(NodeNumber); |
| 234 this->bind(L); | 235 this->bind(L); |
| 235 } | 236 } |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // Conditions of rule violated. | 607 // Conditions of rule violated. |
| 607 return setNeedsTextFixup(); | 608 return setNeedsTextFixup(); |
| 608 emitType01(Cond, kInstTypeDataImmediate, Sub, SetFlags, Rn, Rd, Src1Value); | 609 emitType01(Cond, kInstTypeDataImmediate, Sub, SetFlags, Rn, Rd, Src1Value); |
| 609 return; | 610 return; |
| 610 } | 611 } |
| 611 } | 612 } |
| 612 } | 613 } |
| 613 | 614 |
| 614 } // end of namespace ARM32 | 615 } // end of namespace ARM32 |
| 615 } // end of namespace Ice | 616 } // end of namespace Ice |
| OLD | NEW |