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

Side by Side Diff: src/IceRegAlloc.h

Issue 1676123002: Subzero: Use a proper RegNumT type instead of int32_t/SizeT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make it possible to do "auto NewReg = RegNumT::NoRegister;" Created 4 years, 10 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/IceOperand.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/IceRegAlloc.h - Linear-scan reg. allocation --*- C++ -*-===// 1 //===- subzero/src/IceRegAlloc.h - Linear-scan reg. allocation --*- 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 /// \file 10 /// \file
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 using DefUseErrorList = llvm::SmallVector<SizeT, 10>; 51 using DefUseErrorList = llvm::SmallVector<SizeT, 10>;
52 52
53 class IterationState { 53 class IterationState {
54 IterationState(const IterationState &) = delete; 54 IterationState(const IterationState &) = delete;
55 IterationState operator=(const IterationState &) = delete; 55 IterationState operator=(const IterationState &) = delete;
56 56
57 public: 57 public:
58 IterationState() = default; 58 IterationState() = default;
59 Variable *Cur = nullptr; 59 Variable *Cur = nullptr;
60 Variable *Prefer = nullptr; 60 Variable *Prefer = nullptr;
61 int32_t PreferReg = Variable::NoRegister; 61 RegNumT PreferReg = RegNumT::NoRegister;
62 bool AllowOverlap = false; 62 bool AllowOverlap = false;
63 llvm::SmallBitVector RegMask; 63 llvm::SmallBitVector RegMask;
64 llvm::SmallBitVector RegMaskUnfiltered; 64 llvm::SmallBitVector RegMaskUnfiltered;
65 llvm::SmallBitVector Free; 65 llvm::SmallBitVector Free;
66 llvm::SmallBitVector FreeUnfiltered; 66 llvm::SmallBitVector FreeUnfiltered;
67 llvm::SmallBitVector PrecoloredUnhandledMask; // Note: only used for dumping 67 llvm::SmallBitVector PrecoloredUnhandledMask; // Note: only used for dumping
68 llvm::SmallVector<RegWeight, REGS_SIZE> Weights; 68 llvm::SmallVector<RegWeight, REGS_SIZE> Weights;
69 }; 69 };
70 70
71 bool livenessValidateIntervals(const DefUseErrorList &DefsWithoutUses, 71 bool livenessValidateIntervals(const DefUseErrorList &DefsWithoutUses,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool FindPreference = false; 131 bool FindPreference = false;
132 bool FindOverlap = false; 132 bool FindOverlap = false;
133 133
134 const bool Verbose; 134 const bool Verbose;
135 const bool UseReserve; 135 const bool UseReserve;
136 }; 136 };
137 137
138 } // end of namespace Ice 138 } // end of namespace Ice
139 139
140 #endif // SUBZERO_SRC_ICEREGALLOC_H 140 #endif // SUBZERO_SRC_ICEREGALLOC_H
OLDNEW
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698