Skip to content

Commit

Permalink
chore: move SSA checks to a new folder (#5434)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*

This PR separates read-only checks on the SSA from the passes which
modify it as part of the compilation process.

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Jul 8, 2024
1 parent 24c621f commit 75f98ed
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiler/noirc_evaluator/src/ssa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ use self::{
};

mod acir_gen;
mod checks;
pub(super) mod function_builder;
pub mod ir;
mod opt;
Expand Down
1 change: 1 addition & 0 deletions compiler/noirc_evaluator/src/ssa/checks/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod check_for_underconstrained_values;
1 change: 0 additions & 1 deletion compiler/noirc_evaluator/src/ssa/opt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod array_set;
mod as_slice_length;
mod assert_constant;
mod bubble_up_constrains;
mod check_for_underconstrained_values;
mod constant_folding;
mod defunctionalize;
mod die;
Expand Down

0 comments on commit 75f98ed

Please sign in to comment.