-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(hydroflow_plus): move rewrites to a submodule
- Loading branch information
Showing
20 changed files
with
95 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub mod persist_pullup; | ||
pub mod profiler; | ||
pub mod properties; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...low_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
source: hydroflow_plus/src/rewrites/persist_pullup.rs | ||
expression: graph.surface_syntax_string() | ||
--- | ||
1v1 = source_iter ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }); | ||
2v1 = tee (); | ||
3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); | ||
4v1 = persist :: < 'static > (); | ||
5v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); | ||
6v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); | ||
7v1 = persist :: < 'static > (); | ||
8v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); | ||
|
||
1v1 -> 2v1; | ||
2v1 -> 3v1; | ||
3v1 -> 4v1; | ||
4v1 -> 5v1; | ||
2v1 -> 6v1; | ||
6v1 -> 7v1; | ||
7v1 -> 8v1; |
8 changes: 4 additions & 4 deletions
8
..._tests__persist_pullup_through_map-2.snap → ..._tests__persist_pullup_through_map-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...p__tests__persist_pullup_through_map.snap → ...p__tests__persist_pullup_through_map.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: hydroflow_plus/src/rewrites/persist_pullup.rs | ||
expression: graph.surface_syntax_string() | ||
--- | ||
1v1 = source_iter ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }); | ||
2v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); | ||
3v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); | ||
|
||
1v1 -> 2v1; | ||
2v1 -> 3v1; |
26 changes: 26 additions & 0 deletions
26
...apshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
source: hydroflow_plus/src/rewrites/profiler.rs | ||
expression: "&pushed_down.ir()" | ||
--- | ||
[ | ||
ForEach { | ||
f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | n | println ! ("{}" , n) }), | ||
input: Inspect { | ||
f: { use crate :: __staged :: rewrites :: profiler :: * ; let counter_queue = Fake ; let counters = Fake ; let my_id = 0u32 ; { counter_queue . borrow () . unbounded_send ((my_id as usize , counters . borrow () [my_id as usize])) . unwrap () ; counters . borrow_mut () [my_id as usize] = 0 ; move | _ | { myself :: increment_counter (& mut counters . borrow_mut () [my_id as usize]) ; } } }, | ||
input: Map { | ||
f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | v | v + 1 }), | ||
input: Inspect { | ||
f: { use crate :: __staged :: rewrites :: profiler :: * ; let counter_queue = Fake ; let counters = Fake ; let my_id = 1u32 ; { counter_queue . borrow () . unbounded_send ((my_id as usize , counters . borrow () [my_id as usize])) . unwrap () ; counters . borrow_mut () [my_id as usize] = 0 ; move | _ | { myself :: increment_counter (& mut counters . borrow_mut () [my_id as usize]) ; } } }, | ||
input: Source { | ||
source: Iter( | ||
{ use crate :: __staged :: rewrites :: profiler :: tests :: * ; 0 .. 10 }, | ||
), | ||
location_kind: Process( | ||
0, | ||
), | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
] |
8 changes: 4 additions & 4 deletions
8
...sts__profiler_wrapping_all_operators.snap → ...sts__profiler_wrapping_all_operators.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...roperties__tests__property_optimized.snap → ...roperties__tests__property_optimized.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...ots/hydroflow_plus__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ts/hydroflow_plus__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...plus/src/snapshots/hydroflow_plus__profiler__tests__predicate_pushdown_through_map-2.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.