Repo Added
|
Files
873
|
Badge
README BADGES
|
push
github
Fully port ALAPScheduleAnalysis to Rust (#14664) * Implement ALAP scheduling analysis in Rust and integrate with Python module * Fix lint issues * Add benchmark for ALAPScheduleAnalysis to passes.py * Add copyright and licensing information to alap_schedule_analysis.rs * Refactor ALAP schedule analysis based on suggestions * Remove the benchmark added to passes.py * Fix lint issues * Refactor comments in ALAP schedule analysis * Fix more lint issues * Simplify node duration handling and update function signature * Revert "Simplify node duration handling and update function signature" This reverts commit e240bae88. * Update run function to pass node_durations as native Rust HashMap; improve docstrings for clarity - The run method now constructs node_durations as a Python dict mapping node indices to durations, which is passed to Rust as a native HashMap<usize, f64>. - Enhanced docstrings for the ALAPScheduleAnalysis class and run method to clarify scheduling behavior * Make documentation consistent * Fix lint * Split the pass into Rust-native function and Python-facing wrapper * Fix lint * Fix failing tests by move the type conversion logic back to py_run_alap_schedule_analysis, remove the extra node iteration. * Add enum for type handling of duration values * Rename enum to TimeValue * Implement From trait, ensure conversion to integer on case to case basis per node * Modify TimeValue to support arithmetic and max ops; update scheduling to use TimeValue throughout. * Replace enum with TimeOps trait for improved type flexibility * Remove from_u64 method from TimeOps trait; Refactor code to create op_durations only once. * Add back documentation example; Update node_duration argument in docstring
142 of 147 new or added lines in 4 files covered. (96.6%)
18 existing lines in 2 files now uncovered.81902 of 93442 relevant lines covered (87.65%)
540170.89 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|