Skip to content

Commit ae9f26c

Browse files
committed
Move functions under Loops and Loop where there is an obvious self
1 parent 65676d9 commit ae9f26c

File tree

2 files changed

+272
-250
lines changed

2 files changed

+272
-250
lines changed

compiler/noirc_evaluator/src/ssa/ir/function.rs

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ impl RuntimeType {
4646
| RuntimeType::Brillig(InlineType::NoPredicates)
4747
)
4848
}
49+
50+
pub(crate) fn is_brillig(&self) -> bool {
51+
matches!(self, RuntimeType::Brillig(_))
52+
}
53+
54+
pub(crate) fn is_acir(&self) -> bool {
55+
matches!(self, RuntimeType::Acir(_))
56+
}
4957
}
5058

5159
/// A function holds a list of instructions.

0 commit comments

Comments
 (0)