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// cSpell: ignore optim
5//! The Low Level Representation module
6
7mod expression;
8pub use expression::*;
9mod item_tree;
10pub use item_tree::*;
11pub mod lower_expression;
12pub mod lower_layout_expression;
13pub mod lower_to_item_tree;
14pub mod pretty_print;
15
16/// The optimization passes over the LLR
17pub mod optim_passes {
18 pub mod count_property_use;
19 mod inline_expressions;
20 mod remove_unused;
21
22 pub fn run_passes(root: &mut super::CompilationUnit) {
23 count_property_use::count_property_use(root);
24 inline_expressions::inline_simple_expressions(root);
25 remove_unused::remove_unused(root);
26 }
27}