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

Side by Side Diff: src/IceOperand.h

Issue 848193003: Subzero: Add locking to prepare for multithreaded translation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase 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/IceGlobalContext.cpp ('k') | src/IceRegAlloc.cpp » ('j') | 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698