| OLD | NEW |
| 1 //===- subzero/src/IceAssembler.h - Integrated assembler --------*- C++ -*-===// | 1 //===- subzero/src/IceAssembler.h - Integrated assembler --------*- C++ -*-===// |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 // | 5 // |
| 6 // Modified by the Subzero authors. | 6 // Modified by the Subzero authors. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // The Subzero Code Generator | 10 // The Subzero Code Generator |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 /// Add nop padding of a particular width to the current bundle. | 243 /// Add nop padding of a particular width to the current bundle. |
| 244 virtual void padWithNop(intptr_t Padding) = 0; | 244 virtual void padWithNop(intptr_t Padding) = 0; |
| 245 | 245 |
| 246 virtual SizeT getBundleAlignLog2Bytes() const = 0; | 246 virtual SizeT getBundleAlignLog2Bytes() const = 0; |
| 247 | 247 |
| 248 virtual const char *getAlignDirective() const = 0; | 248 virtual const char *getAlignDirective() const = 0; |
| 249 virtual llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const = 0; | 249 virtual llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const = 0; |
| 250 | 250 |
| 251 /// Get the label for a CfgNode. | 251 /// Get the label for a CfgNode. |
| 252 virtual Label *getOrCreateCfgNodeLabel(SizeT NodeNumber) = 0; | 252 virtual Label *getCfgNodeLabel(SizeT NodeNumber) = 0; |
| 253 /// Mark the current text location as the start of a CFG node | 253 /// Mark the current text location as the start of a CFG node |
| 254 /// (represented by NodeNumber). | 254 /// (represented by NodeNumber). |
| 255 virtual void bindCfgNodeLabel(SizeT NodeNumber) = 0; | 255 virtual void bindCfgNodeLabel(SizeT NodeNumber) = 0; |
| 256 | 256 |
| 257 virtual bool fixupIsPCRel(FixupKind Kind) const = 0; | 257 virtual bool fixupIsPCRel(FixupKind Kind) const = 0; |
| 258 | 258 |
| 259 // Return a view of all the bytes of code for the current function. | 259 // Return a view of all the bytes of code for the current function. |
| 260 llvm::StringRef getBufferView() const; | 260 llvm::StringRef getBufferView() const; |
| 261 | 261 |
| 262 const FixupRefList &fixups() const { return Buffer.fixups(); } | 262 const FixupRefList &fixups() const { return Buffer.fixups(); } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 protected: | 300 protected: |
| 301 // Buffer's constructor uses the Allocator, so it needs to appear after it. | 301 // Buffer's constructor uses the Allocator, so it needs to appear after it. |
| 302 // TODO(jpp): dependencies on construction order are a nice way of shooting | 302 // TODO(jpp): dependencies on construction order are a nice way of shooting |
| 303 // yourself in the foot. Fix this. | 303 // yourself in the foot. Fix this. |
| 304 AssemblerBuffer Buffer; | 304 AssemblerBuffer Buffer; |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 } // end of namespace Ice | 307 } // end of namespace Ice |
| 308 | 308 |
| 309 #endif // SUBZERO_SRC_ICEASSEMBLER_H_ | 309 #endif // SUBZERO_SRC_ICEASSEMBLER_H_ |
| OLD | NEW |