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

Side by Side Diff: src/IceOperand.h

Issue 812023003: Subzero: Use the CfgLocalAllocator for more vector types. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 11 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 | « src/IceDefs.h ('k') | no next file » | 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/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
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
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
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698