mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
docs: Enhance module documentation across various files for clarity a… (#62)
* docs: Enhance module documentation across various files for clarity and completeness * fix: Remove unnecessary blank line in build.rs for cleaner code * docs: Update documentation to improve clarity and consistency in code comments
This commit is contained in:
parent
40995e45e7
commit
1f2bfe76c1
44 changed files with 721 additions and 366 deletions
|
|
@ -1,3 +1,21 @@
|
|||
//! SSA IR, lowering, and optimization passes.
|
||||
//!
|
||||
//! The pipeline converts a CFG into a pruned SSA body consumed by the taint
|
||||
//! analysis engine. [`lower_to_ssa`] inserts phi nodes via Cytron's algorithm
|
||||
//! and renames variables along the dominator tree. [`optimize_ssa`] runs
|
||||
//! constant propagation, branch pruning, copy propagation, DCE, and type
|
||||
//! fact analysis in sequence.
|
||||
//!
|
||||
//! Key submodules:
|
||||
//! - [`ir`]: core types (`SsaValue`, `SsaOp`, `SsaInst`, `SsaBlock`, `SsaBody`)
|
||||
//! - [`lower`]: CFG-to-SSA lowering with Cytron phi insertion and dominator-tree rename
|
||||
//! - [`const_prop`]: sparse conditional constant propagation with branch pruning
|
||||
//! - [`copy_prop`]: copy and alias propagation
|
||||
//! - [`dce`]: dead definition elimination
|
||||
//! - [`type_facts`]: per-value type inference (`TypeKind`, `TypeFactResult`)
|
||||
//! - [`heap`]: abstract heap for container element abstractions
|
||||
//! - [`alias`]: base-variable alias groups from copy propagation
|
||||
|
||||
#[allow(dead_code)] // IR types, fields used by Display impl, tests, and downstream analyses
|
||||
pub mod alias;
|
||||
pub mod const_prop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue