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

Side by Side Diff: src/IceLiveness.cpp

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase to master Created 5 years, 5 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/IceLiveness.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.cpp - Liveness analysis implementation -----===// 1 //===- subzero/src/IceLiveness.cpp - Liveness analysis implementation -----===//
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 provides some of the support for the Liveness class. In 10 /// \file
11 // particular, it handles the sparsity representation of the mapping 11 /// This file provides some of the support for the Liveness class. In
12 // between Variables and CfgNodes. The idea is that since most 12 /// particular, it handles the sparsity representation of the mapping
13 // variables are used only within a single basic block, we can 13 /// between Variables and CfgNodes. The idea is that since most
14 // partition the variables into "local" and "global" sets. Instead of 14 /// variables are used only within a single basic block, we can
15 // sizing and indexing vectors according to Variable::Number, we 15 /// partition the variables into "local" and "global" sets. Instead of
16 // create a mapping such that global variables are mapped to low 16 /// sizing and indexing vectors according to Variable::Number, we
17 // indexes that are common across nodes, and local variables are 17 /// create a mapping such that global variables are mapped to low
18 // mapped to a higher index space that is shared across nodes. 18 /// indexes that are common across nodes, and local variables are
19 // 19 /// mapped to a higher index space that is shared across nodes.
20 ///
20 //===----------------------------------------------------------------------===// 21 //===----------------------------------------------------------------------===//
21 22
22 #include "IceLiveness.h" 23 #include "IceLiveness.h"
23 24
24 #include "IceCfg.h" 25 #include "IceCfg.h"
25 #include "IceCfgNode.h" 26 #include "IceCfgNode.h"
26 #include "IceDefs.h" 27 #include "IceDefs.h"
27 #include "IceInst.h" 28 #include "IceInst.h"
28 #include "IceOperand.h" 29 #include "IceOperand.h"
29 30
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 91 }
91 92
92 Variable *Liveness::getVariable(SizeT LiveIndex, const CfgNode *Node) const { 93 Variable *Liveness::getVariable(SizeT LiveIndex, const CfgNode *Node) const {
93 if (LiveIndex < NumGlobals) 94 if (LiveIndex < NumGlobals)
94 return LiveToVarMap[LiveIndex]; 95 return LiveToVarMap[LiveIndex];
95 SizeT NodeIndex = Node->getIndex(); 96 SizeT NodeIndex = Node->getIndex();
96 return Nodes[NodeIndex].LiveToVarMap[LiveIndex - NumGlobals]; 97 return Nodes[NodeIndex].LiveToVarMap[LiveIndex - NumGlobals];
97 } 98 }
98 99
99 } // end of namespace Ice 100 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceLiveness.h ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698