Skip to content

Commit

Permalink
Move functions under Loops and Loop where there is an obvious self
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Nov 12, 2024
1 parent 65676d9 commit a7a8f52
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 250 deletions.
8 changes: 8 additions & 0 deletions compiler/noirc_evaluator/src/ssa/ir/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ impl RuntimeType {
| RuntimeType::Brillig(InlineType::NoPredicates)
)
}

pub(crate) fn is_brillig(&self) -> bool {
matches!(self, RuntimeType::Brillig(_))
}

pub(crate) fn is_acir(&self) -> bool {
matches!(self, RuntimeType::Acir(_))
}
}

/// A function holds a list of instructions.
Expand Down
Loading

0 comments on commit a7a8f52

Please sign in to comment.