-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bf0641
commit b22d0b5
Showing
11 changed files
with
250 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): | ||
pass | ||
if n > 1: | ||
for i in seq(0, n): # <-- NODE | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): | ||
pass | ||
if n > 1: | ||
[GAP - Before] | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): | ||
pass | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
[GAP - After] | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): # <-- NODE | ||
pass | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
[GAP - Before] | ||
for i in seq(0, n): | ||
pass | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): | ||
pass | ||
[GAP - After] | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
# BLOCK START | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
for i in seq(0, n): | ||
pass | ||
# BLOCK END | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0def foo(n: size, x: i8[n] @ DRAM): | ||
for j in seq(0, n - 1): | ||
x[j] = 2.0 | ||
# BLOCK START | ||
for i in seq(0, n): | ||
pass | ||
if n > 1: | ||
for i in seq(0, n): | ||
x[i] = 0.0 | ||
# BLOCK END | ||
for j in seq(0, n - 1): | ||
x[j] = 3.0 |
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
43 changes: 43 additions & 0 deletions
43
tests/golden/test_internal_cursors/test_cursor_pretty_print_gaps.txt
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 |
---|---|---|
@@ -1,28 +1,71 @@ | ||
def bar(n: size, m: size): | ||
[GAP - Before] | ||
x: f32 @ DRAM | ||
for i in seq(0, n): | ||
for j in seq(0, m): | ||
x = 0.0 | ||
x = 1.0 | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
|
||
def bar(n: size, m: size): | ||
x: f32 @ DRAM | ||
[GAP - Before] | ||
for i in seq(0, n): | ||
for j in seq(0, m): | ||
x = 0.0 | ||
x = 1.0 | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
|
||
def bar(n: size, m: size): | ||
x: f32 @ DRAM | ||
for i in seq(0, n): | ||
[GAP - Before] | ||
for j in seq(0, m): | ||
x = 0.0 | ||
x = 1.0 | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
|
||
def bar(n: size, m: size): | ||
x: f32 @ DRAM | ||
for i in seq(0, n): | ||
for j in seq(0, m): | ||
[GAP - Before] | ||
x = 0.0 | ||
x = 1.0 | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
|
||
def bar(n: size, m: size): | ||
x: f32 @ DRAM | ||
for i in seq(0, n): | ||
for j in seq(0, m): | ||
x = 0.0 | ||
x = 1.0 | ||
[GAP - Before] | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
|
||
def bar(n: size, m: size): | ||
x: f32 @ DRAM | ||
for i in seq(0, n): | ||
for j in seq(0, m): | ||
x = 0.0 | ||
x = 1.0 | ||
x = 2.0 | ||
x = 3.0 | ||
x = 4.0 | ||
x = 5.0 | ||
[GAP - After] |
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
Oops, something went wrong.