Skip to content

Commit

Permalink
clippy's indendation quest continues
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Dec 10, 2024
1 parent 8a91c3f commit fe52421
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion calyx-opt/src/analysis/inference_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,11 @@ impl InferenceAnalysis {

/// "Fixes Up" the component. In particular:
/// 1. Removes @promotable annotations for any groups that write to any
/// `updated_components`.
/// `updated_components`.
/// 2. Try to re-infer groups' latencies.
/// 3. Removes all @promotable annotation from the control program.
/// 4. Re-infers the @promotable annotations for any groups or control.
///
/// Note that this only fixes up the component's ``internals''.
/// It does *not* fix the component's signature.
pub fn fixup_timing(&self, comp: &mut ir::Component) {
Expand Down
13 changes: 7 additions & 6 deletions calyx-opt/src/analysis/static_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ impl SingleNode {
/// Therefore we take in a bunch of data structures to keep track of coloring:
/// - `coloring` that maps group names -> colors,
/// - `colors_to_max_values` which maps colors -> (max latency, max_num_repeats)
/// (we need to make sure that when we instantiate a color,
/// we give enough bits to support the maximum latency/num_repeats that will be
/// used for that color)
/// (we need to make sure that when we instantiate a color,
/// we give enough bits to support the maximum latency/num_repeats that will be
/// used for that color)
/// - `colors_to_fsm`
/// which maps colors to (fsm_register, iter_count_register): fsm_register counts
/// up for a single iteration, iter_count_register counts the number of iterations
/// that have passed.
/// which maps colors to (fsm_register, iter_count_register): fsm_register counts
/// up for a single iteration, iter_count_register counts the number of iterations
/// that have passed.
///
/// Note that it is not always necessary to instantiate one or both registers (e.g.,
/// if num_repeats == 1 then you don't need an iter_count_register).
Expand Down Expand Up @@ -1279,6 +1279,7 @@ impl SingleNode {
/// - if `global_view` is true, then you have to include the iteration
/// count register in the assignment's guard.
/// - if `global_view` is false, then you dont' have to include it
///
/// `ignore_timing`: remove static timing guards instead of transforming them
/// into an FSM query. Note that in order to do this, the timing guard must
/// equal %[0:1], otherwise we will throw an error. This option is here
Expand Down

0 comments on commit fe52421

Please sign in to comment.