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

Side by Side Diff: src/IceLiveness.h

Issue 619983002: Subzero: Remove LLVM_DELETED_FUNCTION. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 2 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/IceIntrinsics.h ('k') | src/IceOperand.h » ('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/IceLiveness.h - Liveness analysis ------------*- C++ -*-===// 1 //===- subzero/src/IceLiveness.h - Liveness analysis ------------*- 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 Liveness and LivenessNode classes, 10 // This file declares the Liveness and LivenessNode classes,
(...skipping 28 matching lines...) Expand all
39 // LivenessNode::NumGlobals. 39 // LivenessNode::NumGlobals.
40 llvm::BitVector LiveIn, LiveOut; 40 llvm::BitVector LiveIn, LiveOut;
41 // LiveBegin and LiveEnd track the instruction numbers of the start 41 // LiveBegin and LiveEnd track the instruction numbers of the start
42 // and end of each variable's live range within this block. The 42 // and end of each variable's live range within this block. The
43 // size of each vector is NumLocals + Liveness::NumGlobals. 43 // size of each vector is NumLocals + Liveness::NumGlobals.
44 std::vector<InstNumberT> LiveBegin, LiveEnd; 44 std::vector<InstNumberT> LiveBegin, LiveEnd;
45 45
46 private: 46 private:
47 // TODO: Disable these constructors when Liveness::Nodes is no 47 // TODO: Disable these constructors when Liveness::Nodes is no
48 // longer an STL container. 48 // longer an STL container.
49 // LivenessNode(const LivenessNode &) LLVM_DELETED_FUNCTION; 49 // LivenessNode(const LivenessNode &) = delete;
50 // LivenessNode &operator=(const LivenessNode &) LLVM_DELETED_FUNCTION; 50 // LivenessNode &operator=(const LivenessNode &) = delete;
51 }; 51 };
52 52
53 class Liveness { 53 class Liveness {
54 public: 54 public:
55 Liveness(Cfg *Func, LivenessMode Mode) 55 Liveness(Cfg *Func, LivenessMode Mode)
56 : Func(Func), Mode(Mode), NumGlobals(0) {} 56 : Func(Func), Mode(Mode), NumGlobals(0) {}
57 void init(); 57 void init();
58 Variable *getVariable(SizeT LiveIndex, const CfgNode *Node) const; 58 Variable *getVariable(SizeT LiveIndex, const CfgNode *Node) const;
59 SizeT getLiveIndex(const Variable *Var) const; 59 SizeT getLiveIndex(const Variable *Var) const;
60 SizeT getNumGlobalVars() const { return NumGlobals; } 60 SizeT getNumGlobalVars() const { return NumGlobals; }
(...skipping 23 matching lines...) Expand all
84 // Size of Nodes is Cfg::Nodes.size(). 84 // Size of Nodes is Cfg::Nodes.size().
85 std::vector<LivenessNode> Nodes; 85 std::vector<LivenessNode> Nodes;
86 // VarToLiveMap maps a Variable's Variable::Number to its live index 86 // VarToLiveMap maps a Variable's Variable::Number to its live index
87 // within its basic block. 87 // within its basic block.
88 std::vector<SizeT> VarToLiveMap; 88 std::vector<SizeT> VarToLiveMap;
89 // LiveToVarMap is analogous to LivenessNode::LiveToVarMap, but for 89 // LiveToVarMap is analogous to LivenessNode::LiveToVarMap, but for
90 // non-local variables. 90 // non-local variables.
91 std::vector<Variable *> LiveToVarMap; 91 std::vector<Variable *> LiveToVarMap;
92 // LiveRanges maps a Variable::Number to its live range. 92 // LiveRanges maps a Variable::Number to its live range.
93 std::vector<LiveRange> LiveRanges; 93 std::vector<LiveRange> LiveRanges;
94 Liveness(const Liveness &) LLVM_DELETED_FUNCTION; 94 Liveness(const Liveness &) = delete;
95 Liveness &operator=(const Liveness &) LLVM_DELETED_FUNCTION; 95 Liveness &operator=(const Liveness &) = delete;
96 }; 96 };
97 97
98 } // end of namespace Ice 98 } // end of namespace Ice
99 99
100 #endif // SUBZERO_SRC_ICELIVENESS_H 100 #endif // SUBZERO_SRC_ICELIVENESS_H
OLDNEW
« no previous file with comments | « src/IceIntrinsics.h ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698