Skip to main content

i_slint_compiler/
llr.rs

1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4//! The Low Level Representation module
5
6mod expression;
7pub use expression::*;
8mod item_tree;
9pub use item_tree::*;
10pub mod lower_expression;
11pub mod lower_layout_expression;
12pub mod lower_to_item_tree;
13pub mod pretty_print;
14
15/// The optimization passes over the LLR
16pub mod optim_passes {
17    pub mod count_property_use;
18    mod inline_expressions;
19    mod remove_unused;
20
21    pub fn run_passes(root: &mut super::CompilationUnit) {
22        count_property_use::count_property_use(root);
23        inline_expressions::inline_simple_expressions(root);
24        remove_unused::remove_unused(root);
25    }
26}