-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #76854 - aDotInTheVoid:mir-opt-32-64-diff-name, r=oli-obk
Rename mir-opt diff tests with 32/64 bit Now syntax highlighting should work. I've tested that `--bless` works localy, but I'm not sure it's possible on CI Fixes #75746 r? `@oli-obk`
- Loading branch information
Showing
77 changed files
with
215 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
digraph Mir_0_3 { | ||
graph [fontname="Courier, monospace"]; | ||
node [fontname="Courier, monospace"]; | ||
edge [fontname="Courier, monospace"]; | ||
label=<fn main() -> ()<br align="left"/>>; | ||
bb0__0_3 [shape="none", label=<<table border="0" cellborder="1" cellspacing="0"><tr><td bgcolor="gray" align="center" colspan="1">0</td></tr><tr><td align="left" balign="left">_0 = const ()<br/></td></tr><tr><td align="left">goto</td></tr></table>>]; | ||
bb1__0_3 [shape="none", label=<<table border="0" cellborder="1" cellspacing="0"><tr><td bgcolor="gray" align="center" colspan="1">1</td></tr><tr><td align="left">resume</td></tr></table>>]; | ||
bb2__0_3 [shape="none", label=<<table border="0" cellborder="1" cellspacing="0"><tr><td bgcolor="gray" align="center" colspan="1">2</td></tr><tr><td align="left">return</td></tr></table>>]; | ||
bb0__0_3 -> bb2__0_3 [label=""]; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>coverage_of_if_else - Code Regions</title> | ||
<style> | ||
.line { | ||
counter-increment: line; | ||
} | ||
.line:before { | ||
content: counter(line) ": "; | ||
font-family: Menlo, Monaco, monospace; | ||
font-style: italic; | ||
width: 3.8em; | ||
display: inline-block; | ||
text-align: right; | ||
filter: opacity(50%); | ||
-webkit-user-select: none; | ||
} | ||
.code { | ||
color: #dddddd; | ||
background-color: #222222; | ||
font-family: Menlo, Monaco, monospace; | ||
line-height: 1.4em; | ||
border-bottom: 2px solid #222222; | ||
white-space: pre; | ||
display: inline-block; | ||
} | ||
.odd { | ||
background-color: #55bbff; | ||
color: #223311; | ||
} | ||
.even { | ||
background-color: #ee7756; | ||
color: #551133; | ||
} | ||
.code { | ||
--index: calc(var(--layer) - 1); | ||
padding-top: calc(var(--index) * 0.15em); | ||
filter: | ||
hue-rotate(calc(var(--index) * 25deg)) | ||
saturate(calc(100% - (var(--index) * 2%))) | ||
brightness(calc(100% - (var(--index) * 1.5%))); | ||
} | ||
.annotation { | ||
color: #4444ff; | ||
font-family: monospace; | ||
font-style: italic; | ||
display: none; | ||
-webkit-user-select: none; | ||
} | ||
body:active .annotation { | ||
/* requires holding mouse down anywhere on the page */ | ||
display: inline-block; | ||
} | ||
span:hover .annotation { | ||
/* requires hover over a span ONLY on its first line */ | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="code" style="counter-reset: line 4"><span class="line"><span class="code" style="--layer: 0">fn main() </span><span><span class="code even" style="--layer: 1" title="0: $DIR/spanview-block.rs:5:11: 5:13: | ||
5:11-5:13: Assign: _0 = const () | ||
5:13-5:13: Goto: goto -> bb2"><span class="annotation">0⦊</span>{}<span class="annotation">⦉0</span></span></span><span><span class="code odd" style="--layer: 1" title="2: $DIR/spanview-block.rs:5:13: 5:13: | ||
5:13-5:13: Return: return"><span class="annotation">2⦊</span>‸<span class="annotation">⦉2</span></span></span></span></div> | ||
</body> | ||
</html> |
67 changes: 67 additions & 0 deletions
67
src/test/mir-opt/spanview_statement.main.mir_map.0.html.mir
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,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>coverage_of_if_else - Code Regions</title> | ||
<style> | ||
.line { | ||
counter-increment: line; | ||
} | ||
.line:before { | ||
content: counter(line) ": "; | ||
font-family: Menlo, Monaco, monospace; | ||
font-style: italic; | ||
width: 3.8em; | ||
display: inline-block; | ||
text-align: right; | ||
filter: opacity(50%); | ||
-webkit-user-select: none; | ||
} | ||
.code { | ||
color: #dddddd; | ||
background-color: #222222; | ||
font-family: Menlo, Monaco, monospace; | ||
line-height: 1.4em; | ||
border-bottom: 2px solid #222222; | ||
white-space: pre; | ||
display: inline-block; | ||
} | ||
.odd { | ||
background-color: #55bbff; | ||
color: #223311; | ||
} | ||
.even { | ||
background-color: #ee7756; | ||
color: #551133; | ||
} | ||
.code { | ||
--index: calc(var(--layer) - 1); | ||
padding-top: calc(var(--index) * 0.15em); | ||
filter: | ||
hue-rotate(calc(var(--index) * 25deg)) | ||
saturate(calc(100% - (var(--index) * 2%))) | ||
brightness(calc(100% - (var(--index) * 1.5%))); | ||
} | ||
.annotation { | ||
color: #4444ff; | ||
font-family: monospace; | ||
font-style: italic; | ||
display: none; | ||
-webkit-user-select: none; | ||
} | ||
body:active .annotation { | ||
/* requires holding mouse down anywhere on the page */ | ||
display: inline-block; | ||
} | ||
span:hover .annotation { | ||
/* requires hover over a span ONLY on its first line */ | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="code" style="counter-reset: line 4"><span class="line"><span class="code" style="--layer: 0">fn main() </span><span><span class="code even" style="--layer: 1" title="0[0]: $DIR/spanview-statement.rs:5:11: 5:13: | ||
5:11-5:13: Assign: _0 = const ()"><span class="annotation">0[0]⦊</span>{}<span class="annotation">⦉0[0]</span></span></span><span><span class="code odd" style="--layer: 1" title="0:Goto: $DIR/spanview-statement.rs:5:13: 5:13: | ||
5:13-5:13: Goto: goto -> bb2"><span class="annotation">0:Goto⦊</span>‸<span class="annotation">⦉0:Goto</span></span></span><span><span class="code even" style="--layer: 1" title="2:Return: $DIR/spanview-statement.rs:5:13: 5:13: | ||
5:13-5:13: Return: return"><span class="annotation">2:Return⦊</span>‸<span class="annotation">⦉2:Return</span></span></span></span></div> | ||
</body> | ||
</html> |
66 changes: 66 additions & 0 deletions
66
src/test/mir-opt/spanview_terminator.main.mir_map.0.html.mir
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,66 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>coverage_of_if_else - Code Regions</title> | ||
<style> | ||
.line { | ||
counter-increment: line; | ||
} | ||
.line:before { | ||
content: counter(line) ": "; | ||
font-family: Menlo, Monaco, monospace; | ||
font-style: italic; | ||
width: 3.8em; | ||
display: inline-block; | ||
text-align: right; | ||
filter: opacity(50%); | ||
-webkit-user-select: none; | ||
} | ||
.code { | ||
color: #dddddd; | ||
background-color: #222222; | ||
font-family: Menlo, Monaco, monospace; | ||
line-height: 1.4em; | ||
border-bottom: 2px solid #222222; | ||
white-space: pre; | ||
display: inline-block; | ||
} | ||
.odd { | ||
background-color: #55bbff; | ||
color: #223311; | ||
} | ||
.even { | ||
background-color: #ee7756; | ||
color: #551133; | ||
} | ||
.code { | ||
--index: calc(var(--layer) - 1); | ||
padding-top: calc(var(--index) * 0.15em); | ||
filter: | ||
hue-rotate(calc(var(--index) * 25deg)) | ||
saturate(calc(100% - (var(--index) * 2%))) | ||
brightness(calc(100% - (var(--index) * 1.5%))); | ||
} | ||
.annotation { | ||
color: #4444ff; | ||
font-family: monospace; | ||
font-style: italic; | ||
display: none; | ||
-webkit-user-select: none; | ||
} | ||
body:active .annotation { | ||
/* requires holding mouse down anywhere on the page */ | ||
display: inline-block; | ||
} | ||
span:hover .annotation { | ||
/* requires hover over a span ONLY on its first line */ | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="code" style="counter-reset: line 4"><span class="line"><span class="code" style="--layer: 0">fn main() {}</span><span><span class="code even" style="--layer: 1" title="0:Goto: $DIR/spanview-terminator.rs:5:13: 5:13: | ||
5:13-5:13: Goto: goto -> bb2"><span class="annotation">0:Goto⦊</span>‸<span class="annotation">⦉0:Goto</span></span></span><span><span class="code odd" style="--layer: 1" title="2:Return: $DIR/spanview-terminator.rs:5:13: 5:13: | ||
5:13-5:13: Return: return"><span class="annotation">2:Return⦊</span>‸<span class="annotation">⦉2:Return</span></span></span></span></div> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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