-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ssa refactor): Add entry point for acir gen pass (#1285)
* Add entry point for acir gen pass * Fix typo
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! This file holds the pass to convert from Noir's SSA IR to ACIR. | ||
use super::ssa_gen::Ssa; | ||
|
||
/// Context struct for the acir generation pass. | ||
/// May be similar to the Evaluator struct in the current SSA IR. | ||
struct Context {} | ||
|
||
/// The output of the Acir-gen pass | ||
pub struct Acir {} | ||
|
||
impl Ssa { | ||
pub(crate) fn into_acir(self) -> Acir { | ||
let mut context = Context::new(); | ||
context.convert_ssa(self) | ||
} | ||
} | ||
|
||
impl Context { | ||
fn new() -> Self { | ||
Self {} | ||
} | ||
|
||
fn convert_ssa(&mut self, _ssa: Ssa) -> Acir { | ||
todo!() | ||
} | ||
} |