Skip to content

Commit

Permalink
better comment for build translation
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Jan 28, 2024
1 parent abd9649 commit ba505f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rvsdg/tree_unique/to_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ impl<'a> RegionTranslator<'a> {
res
}

/// Make a new translator for a region with
/// num_args and the given nodes.
fn new(num_args: usize, nodes: &'a Vec<RvsdgBody>) -> RegionTranslator {
RegionTranslator {
num_args,
Expand All @@ -70,10 +72,8 @@ impl<'a> RegionTranslator<'a> {
}
}

/// Build a translator and translate
/// the operands to the tree encoding.
/// Produces a tree-encoded term that evaluates
/// to a tuple containing results.
/// Wrap the given expression in all the
/// bindings that have been generated.
fn build_translation(&self, inner: Expr) -> Expr {
let mut expr = inner;

Expand Down

0 comments on commit ba505f0

Please sign in to comment.