vyre-reference 0.6.2

Pure-Rust CPU reference interpreter for vyre IR; byte-identical oracle for backend conformance
Documentation
1
2
3
4
5
6
7
8
use crate::{dual_impls::common, workgroup::Memory};
use vyre_primitives::CompareLt;

impl common::ReferenceEvaluator for CompareLt {
    fn evaluate(&self, inputs: &[Memory]) -> Result<Memory, common::EvalError> {
        common::binary_u32_predicate(inputs, "compare_lt", |left, right| left < right)
    }
}