@@ -145,7 +145,7 @@ class LazyCallGraph {
145
145
// / around but clear them.
146
146
explicit operator bool () const ;
147
147
148
- // / Returnss the \c Kind of the edge.
148
+ // / Returns the \c Kind of the edge.
149
149
Kind getKind () const ;
150
150
151
151
// / Test whether the edge represents a direct call to a function.
@@ -307,9 +307,9 @@ class LazyCallGraph {
307
307
308
308
// / A node in the call graph.
309
309
// /
310
- // / This represents a single node. It's primary roles are to cache the list of
311
- // / callees, de-duplicate and provide fast testing of whether a function is
312
- // / a callee, and facilitate iteration of child nodes in the graph.
310
+ // / This represents a single node. Its primary roles are to cache the list of
311
+ // / callees, de-duplicate and provide fast testing of whether a function is a
312
+ // / callee, and facilitate iteration of child nodes in the graph.
313
313
// /
314
314
// / The node works much like an optional in order to lazily populate the
315
315
// / edges of each node. Until populated, there are no edges. Once populated,
@@ -392,7 +392,7 @@ class LazyCallGraph {
392
392
393
393
// / Internal helper to directly replace the function with a new one.
394
394
// /
395
- // / This is used to facilitate tranfsormations which need to replace the
395
+ // / This is used to facilitate transformations which need to replace the
396
396
// / formal Function object but directly move the body and users from one to
397
397
// / the other.
398
398
void replaceFunction (Function &NewF);
@@ -435,7 +435,7 @@ class LazyCallGraph {
435
435
Nodes.clear ();
436
436
}
437
437
438
- // / Print a short descrtiption useful for debugging or logging.
438
+ // / Print a short description useful for debugging or logging.
439
439
// /
440
440
// / We print the function names in the SCC wrapped in '()'s and skipping
441
441
// / the middle functions if there are a large number.
@@ -467,9 +467,10 @@ class LazyCallGraph {
467
467
// / Verify invariants about the SCC.
468
468
// /
469
469
// / This will attempt to validate all of the basic invariants within an
470
- // / SCC, but not that it is a strongly connected componet per-se. Primarily
471
- // / useful while building and updating the graph to check that basic
472
- // / properties are in place rather than having inexplicable crashes later.
470
+ // / SCC, but not that it is a strongly connected component per se.
471
+ // / Primarily useful while building and updating the graph to check that
472
+ // / basic properties are in place rather than having inexplicable crashes
473
+ // / later.
473
474
void verify ();
474
475
#endif
475
476
@@ -511,7 +512,7 @@ class LazyCallGraph {
511
512
512
513
// / Provide a short name by printing this SCC to a std::string.
513
514
// /
514
- // / This copes with the fact that we don't have a name per- se for an SCC
515
+ // / This copes with the fact that we don't have a name per se for an SCC
515
516
// / while still making the use of this in debugging and logging useful.
516
517
std::string getName () const {
517
518
std::string Name;
@@ -644,7 +645,7 @@ class LazyCallGraph {
644
645
645
646
// / Provide a short name by printing this RefSCC to a std::string.
646
647
// /
647
- // / This copes with the fact that we don't have a name per- se for an RefSCC
648
+ // / This copes with the fact that we don't have a name per se for an RefSCC
648
649
// / while still making the use of this in debugging and logging useful.
649
650
std::string getName () const {
650
651
std::string Name;
0 commit comments