| OLD | NEW |
| 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// | 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file declares the Operand class and its target-independent | 10 // This file declares the Operand class and its target-independent |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // VarsReal (and Operand::Vars) are set up such that Vars[0] == | 521 // VarsReal (and Operand::Vars) are set up such that Vars[0] == |
| 522 // this. | 522 // this. |
| 523 Variable *VarsReal[1]; | 523 Variable *VarsReal[1]; |
| 524 }; | 524 }; |
| 525 | 525 |
| 526 enum MetadataKind { | 526 enum MetadataKind { |
| 527 VMK_Uses, // Track only uses, not defs | 527 VMK_Uses, // Track only uses, not defs |
| 528 VMK_SingleDefs, // Track uses+defs, but only record single def | 528 VMK_SingleDefs, // Track uses+defs, but only record single def |
| 529 VMK_All // Track uses+defs, including full def list | 529 VMK_All // Track uses+defs, including full def list |
| 530 }; | 530 }; |
| 531 typedef std::vector<const Inst *> InstDefList; | 531 typedef std::vector<const Inst *, CfgLocalAllocator<const Inst *> > InstDefList; |
| 532 | 532 |
| 533 // VariableTracking tracks the metadata for a single variable. It is | 533 // VariableTracking tracks the metadata for a single variable. It is |
| 534 // only meant to be used internally by VariablesMetadata. | 534 // only meant to be used internally by VariablesMetadata. |
| 535 class VariableTracking { | 535 class VariableTracking { |
| 536 // VariableTracking(const VariableTracking &) = delete; | 536 // VariableTracking(const VariableTracking &) = delete; |
| 537 VariableTracking &operator=(const VariableTracking &) = delete; | 537 VariableTracking &operator=(const VariableTracking &) = delete; |
| 538 | 538 |
| 539 public: | 539 public: |
| 540 enum MultiDefState { | 540 enum MultiDefState { |
| 541 // TODO(stichnot): Consider using just a simple counter. | 541 // TODO(stichnot): Consider using just a simple counter. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 private: | 628 private: |
| 629 const Cfg *Func; | 629 const Cfg *Func; |
| 630 MetadataKind Kind; | 630 MetadataKind Kind; |
| 631 std::vector<VariableTracking> Metadata; | 631 std::vector<VariableTracking> Metadata; |
| 632 const static InstDefList NoDefinitions; | 632 const static InstDefList NoDefinitions; |
| 633 }; | 633 }; |
| 634 | 634 |
| 635 } // end of namespace Ice | 635 } // end of namespace Ice |
| 636 | 636 |
| 637 #endif // SUBZERO_SRC_ICEOPERAND_H | 637 #endif // SUBZERO_SRC_ICEOPERAND_H |
| OLD | NEW |