r201527 - Some nitpicky comment fixes for "i.e." and "e.g." abbreviations.
Bob Wilson
bob.wilson at apple.com
Mon Feb 17 11:21:03 PST 2014
Author: bwilson
Date: Mon Feb 17 13:21:03 2014
New Revision: 201527
URL: http://llvm.org/viewvc/llvm-project?rev=201527&view=rev
Log:
Some nitpicky comment fixes for "i.e." and "e.g." abbreviations.
Modified:
cfe/trunk/lib/CodeGen/CGStmt.cpp
cfe/trunk/lib/CodeGen/CodeGenPGO.h
Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=201527&r1=201526&r2=201527&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon Feb 17 13:21:03 2014
@@ -1001,7 +1001,7 @@ void CodeGenFunction::EmitCaseStmtRange(
unsigned NCases = Range.getZExtValue() + 1;
// We only have one region counter for the entire set of cases here, so we
// need to divide the weights evenly between the generated cases, ensuring
- // that the total weight is preserved. Ie, a weight of 5 over three cases
+ // that the total weight is preserved. E.g., a weight of 5 over three cases
// will be distributed as weights of 2, 2, and 1.
uint64_t Weight = Total / NCases, Rem = Total % NCases;
for (unsigned I = 0; I != NCases; ++I) {
Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.h?rev=201527&r1=201526&r2=201527&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenPGO.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenPGO.h Mon Feb 17 13:21:03 2014
@@ -158,7 +158,7 @@ public:
/// number of direct jumps to that label.
uint64_t getCount() const { return Count; }
/// Get the value of the counter with adjustments applied. Adjustments occur
- /// when control enters or leaves the region abnormally, ie, if there is a
+ /// when control enters or leaves the region abnormally; i.e., if there is a
/// jump to a label within the region, or if the function can return from
/// within the region. The adjusted count, then, is the value of the counter
/// at the end of the region.
@@ -166,10 +166,10 @@ public:
assert((Adjust > 0 || (uint64_t)(-Adjust) <= Count) && "Negative count");
return Count + Adjust;
}
- /// Get the value of the counter in this region's parent, ie, the region that
- /// was active when this region began. This is useful for deriving counts in
- /// implicitly counted regions, like the false case of a condition or the
- /// normal exits of a loop.
+ /// Get the value of the counter in this region's parent, i.e., the region
+ /// that was active when this region began. This is useful for deriving
+ /// counts in implicitly counted regions, like the false case of a condition
+ /// or the normal exits of a loop.
uint64_t getParentCount() const { return ParentCount; }
/// Get the number of times the condition of a loop will evaluate false. This
More information about the cfe-commits
mailing list