| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // VarsReal (and Operand::Vars) are set up such that Vars[0] == | 518 // VarsReal (and Operand::Vars) are set up such that Vars[0] == |
| 519 // this. | 519 // this. |
| 520 Variable *VarsReal[1]; | 520 Variable *VarsReal[1]; |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 enum MetadataKind { | 523 enum MetadataKind { |
| 524 VMK_Uses, // Track only uses, not defs | 524 VMK_Uses, // Track only uses, not defs |
| 525 VMK_SingleDefs, // Track uses+defs, but only record single def | 525 VMK_SingleDefs, // Track uses+defs, but only record single def |
| 526 VMK_All // Track uses+defs, including full def list | 526 VMK_All // Track uses+defs, including full def list |
| 527 }; | 527 }; |
| 528 typedef std::vector<const Inst *, CfgLocalAllocator<const Inst *> > InstDefList; | 528 typedef std::vector<const Inst *, CfgLocalAllocator<const Inst *>> InstDefList; |
| 529 | 529 |
| 530 // VariableTracking tracks the metadata for a single variable. It is | 530 // VariableTracking tracks the metadata for a single variable. It is |
| 531 // only meant to be used internally by VariablesMetadata. | 531 // only meant to be used internally by VariablesMetadata. |
| 532 class VariableTracking { | 532 class VariableTracking { |
| 533 VariableTracking &operator=(const VariableTracking &) = delete; | 533 VariableTracking &operator=(const VariableTracking &) = delete; |
| 534 | 534 |
| 535 public: | 535 public: |
| 536 enum MultiDefState { | 536 enum MultiDefState { |
| 537 // TODO(stichnot): Consider using just a simple counter. | 537 // TODO(stichnot): Consider using just a simple counter. |
| 538 MDS_Unknown, | 538 MDS_Unknown, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 private: | 625 private: |
| 626 const Cfg *Func; | 626 const Cfg *Func; |
| 627 MetadataKind Kind; | 627 MetadataKind Kind; |
| 628 std::vector<VariableTracking> Metadata; | 628 std::vector<VariableTracking> Metadata; |
| 629 const static InstDefList NoDefinitions; | 629 const static InstDefList NoDefinitions; |
| 630 }; | 630 }; |
| 631 | 631 |
| 632 } // end of namespace Ice | 632 } // end of namespace Ice |
| 633 | 633 |
| 634 #endif // SUBZERO_SRC_ICEOPERAND_H | 634 #endif // SUBZERO_SRC_ICEOPERAND_H |
| OLD | NEW |