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

Unified Diff: src/IceLiveness.h

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/IceLiveness.h
diff --git a/src/IceLiveness.h b/src/IceLiveness.h
index 03c63ad289b62a6d6a563d41218c058605ea935e..8df9e546689663228150cb64b497079bed2fe4d0 100644
--- a/src/IceLiveness.h
+++ b/src/IceLiveness.h
@@ -37,12 +37,12 @@ class Liveness {
public:
LivenessNode() = default;
LivenessNode(const LivenessNode &) = default;
- // NumLocals is the number of Variables local to this block.
+ /// NumLocals is the number of Variables local to this block.
SizeT NumLocals = 0;
- // NumNonDeadPhis tracks the number of Phi instructions that
- // Inst::liveness() identified as tentatively live. If
- // NumNonDeadPhis changes from the last liveness pass, then liveness
- // has not yet converged.
+ /// NumNonDeadPhis tracks the number of Phi instructions that
+ /// Inst::liveness() identified as tentatively live. If
+ /// NumNonDeadPhis changes from the last liveness pass, then liveness
+ /// has not yet converged.
SizeT NumNonDeadPhis = 0;
// LiveToVarMap maps a liveness bitvector index to a Variable. This
// is generally just for printing/dumping. The index should be less
@@ -95,7 +95,7 @@ public:
}
private:
- // Resize Nodes so that Nodes[Index] is valid.
+ /// Resize Nodes so that Nodes[Index] is valid.
void resize(SizeT Index) {
if (Index >= Nodes.size())
Nodes.resize(Index + 1);
@@ -103,13 +103,13 @@ private:
Cfg *Func;
LivenessMode Mode;
SizeT NumGlobals = 0;
- // Size of Nodes is Cfg::Nodes.size().
+ /// Size of Nodes is Cfg::Nodes.size().
std::vector<LivenessNode> Nodes;
- // VarToLiveMap maps a Variable's Variable::Number to its live index
- // within its basic block.
+ /// VarToLiveMap maps a Variable's Variable::Number to its live index
+ /// within its basic block.
std::vector<SizeT> VarToLiveMap;
- // LiveToVarMap is analogous to LivenessNode::LiveToVarMap, but for
- // non-local variables.
+ /// LiveToVarMap is analogous to LivenessNode::LiveToVarMap, but for
+ /// non-local variables.
std::vector<Variable *> LiveToVarMap;
};

Powered by Google App Engine
This is Rietveld 408576698