1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Contains two optimizer that can operate on the llir:
//! The [peephole optimizer](peephole_opt::PeepholeOptimizer) which optimizes
//! every emitted node on its own (but is also able to look at previous nodes)
//! and the [global optimizer](global_opt::GlobalOptimizer)

use super::block_id::BlockId;

pub mod call_graph;
pub mod code_stats;
mod function_parameters;
pub mod global_opt;
mod logger;
pub mod optimize_commands;
pub mod optimizers;
pub mod peephole_opt;
pub mod variable_metadata;

/// The optimizer can uniquely identify each node with this type
pub type NodeId = (BlockId, usize);