rlx-compile 0.2.14

HIR → MIR → LIR compile pipeline for RLX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RLX — versatile ML compiler + runtime.
// Copyright (C) 2026 Eugene Hauptmann, Nataliya Kosmyna.
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Debug-build verification hooks at compiler stage boundaries.
//!
//! Use [`debug_assert_graph!`] at pipeline stage boundaries. The macro
//! is compiled out entirely in release builds.

/// Stage-boundary IR check. **Debug builds only** — compiled out in release.
#[macro_export]
macro_rules! debug_assert_graph {
    ($graph:expr, $stage:expr) => {
        rlx_ir::debug_assert_valid!($graph, $stage);
    };
}