aboutsummaryrefslogtreecommitdiff
path: root/source/validate.h
diff options
context:
space:
mode:
authorUmar Arshad <umar@arrayfire.com>2016-06-24 23:45:25 -0400
committerDavid Neto <dneto@google.com>2016-06-27 10:45:46 -0400
commit886dd352d5b0fc100978003c258ab43646dc4e92 (patch)
tree381ac9e679ba3758db0b3444649620f878ec59da /source/validate.h
parent3df8f7cebd5b15071535a8c29be458d14dcb8939 (diff)
downloadspirv-tools-886dd352d5b0fc100978003c258ab43646dc4e92.tar.gz
Fix several violations of the style guide
Diffstat (limited to 'source/validate.h')
-rw-r--r--source/validate.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/validate.h b/source/validate.h
index e24f7b11..35ec9a61 100644
--- a/source/validate.h
+++ b/source/validate.h
@@ -63,8 +63,8 @@ using get_blocks_func =
/// Computes dominators using the algorithm of Cooper, Harvey, and Kennedy
/// "A Simple, Fast Dominance Algorithm", 2001.
///
-/// The algorithm assumes there is a unique root node (a node without predecessors),
-/// and it is therefore at the end of the postorder vector.
+/// The algorithm assumes there is a unique root node (a node without
+/// predecessors), and it is therefore at the end of the postorder vector.
///
/// This function calculates the dominator edges for a set of blocks in the CFG.
/// Uses the dominator algorithm by Cooper et al.
@@ -75,9 +75,9 @@ using get_blocks_func =
/// block
///
/// @return the dominator tree of the graph, as a vector of pairs of nodes.
-/// The first node in the pair is a node in the graph. The second node in the pair
-/// is its immediate dominator in the sense of Cooper et.al., where a block without
-/// predecessors (such as the root node) is its own immediate dominator.
+/// The first node in the pair is a node in the graph. The second node in the
+/// pair is its immediate dominator in the sense of Cooper et.al., where a block
+/// without predecessors (such as the root node) is its own immediate dominator.
std::vector<std::pair<BasicBlock*, BasicBlock*>> CalculateDominators(
const std::vector<const BasicBlock*>& postorder,
get_blocks_func predecessor_func);