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_to_item_tree;
12pub mod pretty_print;
13
14/// The optimization passes over the LLR
15pub mod optim_passes {
16 pub mod count_property_use;
17 mod inline_expressions;
18 mod remove_unused;
19
20 pub fn run_passes(root: &mut super::CompilationUnit) {
21 count_property_use::count_property_use(root);
22 inline_expressions::inline_simple_expressions(root);
23 remove_unused::remove_unused(root);
24 }
25}