Skip to content

Commit

Permalink
chore(ssa): Replace JmpIf with BrIf (#1193)
Browse files Browse the repository at this point in the history
* chore(ssa): Replace JmpIf with BrIf

* chore(ssa): doc tweak

Co-authored-by: kevaundray <kevtheappdev@gmail.com>

* chore(ssa): cargo fmt

* chore(ssa): rename BrIf -> JmpIf

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
  • Loading branch information
joss-aztec and kevaundray committed Apr 21, 2023
1 parent 3d2233d commit 7f8d2c2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/noirc_evaluator/src/ssa_refactor/ir/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,14 @@ pub(crate) enum TerminatorInstruction {
///
/// Jump If
///
/// Jumps to the specified `destination` with
/// arguments, if the condition
/// if the condition is true.
JmpIf { condition: ValueId, destination: BasicBlockId, arguments: BlockArguments },
/// If the condition is true: jump to the specified `then_destination` with `arguments`.
/// Otherwise, jump to the specified `else_destination` with `arguments`.
JmpIf {
condition: ValueId,
then_destination: BasicBlockId,
else_destination: BasicBlockId,
arguments: BlockArguments,
},
/// Unconditional Jump
///
/// Jumps to specified `destination` with `arguments`
Expand Down

0 comments on commit 7f8d2c2

Please sign in to comment.