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

Unified Diff: src/IceCfgNode.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/IceCfgNode.h
diff --git a/src/IceCfgNode.h b/src/IceCfgNode.h
index 3afc446d2bc9dbaaed7f1dccad45e9f319fabc4b..e9a7f6eac94a88f3334506edf64b93666684fb23 100644
--- a/src/IceCfgNode.h
+++ b/src/IceCfgNode.h
@@ -31,7 +31,7 @@ public:
return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex);
}
- // Access the label number and name for this node.
+ /// Access the label number and name for this node.
SizeT getIndex() const { return Number; }
void resetIndex(SizeT NewNumber) { Number = NewNumber; }
IceString getName() const;
@@ -62,14 +62,14 @@ public:
PhiList &getPhis() { return Phis; }
void appendInst(Inst *Inst);
void renumberInstructions();
- // Rough and generally conservative estimate of the number of
- // instructions in the block. It is updated when an instruction is
- // added, but not when deleted. It is recomputed during
- // renumberInstructions().
+ /// Rough and generally conservative estimate of the number of
+ /// instructions in the block. It is updated when an instruction is
+ /// added, but not when deleted. It is recomputed during
+ /// renumberInstructions().
InstNumberT getInstCountEstimate() const { return InstCountEstimate; }
- // Add a predecessor edge to the InEdges list for each of this
- // node's successors.
+ /// Add a predecessor edge to the InEdges list for each of this
+ /// node's successors.
void computePredecessors();
void computeSuccessors();
CfgNode *splitIncomingEdge(CfgNode *Pred, SizeT InEdgeIndex);
@@ -96,16 +96,16 @@ public:
private:
CfgNode(Cfg *Func, SizeT LabelIndex);
Cfg *const Func;
- SizeT Number; // label index
+ SizeT Number; /// label index
Cfg::IdentifierIndexType NameIndex =
- Cfg::IdentifierIndexInvalid; // index into Cfg::NodeNames table
- bool HasReturn = false; // does this block need an epilog?
+ Cfg::IdentifierIndexInvalid; /// index into Cfg::NodeNames table
+ bool HasReturn = false; /// does this block need an epilog?
bool NeedsPlacement = false;
- InstNumberT InstCountEstimate = 0; // rough instruction count estimate
- NodeList InEdges; // in no particular order
- NodeList OutEdges; // in no particular order
- PhiList Phis; // unordered set of phi instructions
- InstList Insts; // ordered list of non-phi instructions
+ InstNumberT InstCountEstimate = 0; /// rough instruction count estimate
+ NodeList InEdges; /// in no particular order
+ NodeList OutEdges; /// in no particular order
+ PhiList Phis; /// unordered set of phi instructions
+ InstList Insts; /// ordered list of non-phi instructions
};
} // end of namespace Ice

Powered by Google App Engine
This is Rietveld 408576698