Skip to content

Commit b5250ab

Browse files
committed
snapshots
1 parent 36101c7 commit b5250ab

File tree

444 files changed

+1432
-236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+1432
-236
lines changed

compiler/plc_driver/src/tests/snapshots/plc_driver__tests__external_files__external_file_function_call.snap

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
22
source: compiler/plc_driver/./src/tests/external_files.rs
33
expression: "results.join(\"\\n\")"
4+
snapshot_kind: text
45
---
56
; ModuleID = 'main.st'
67
source_filename = "main.st"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
710

811
define i16 @main() {
912
entry:
@@ -18,11 +21,15 @@ declare i16 @external()
1821

1922
; ModuleID = 'external.st'
2023
source_filename = "external.st"
24+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
25+
target triple = "x86_64-pc-linux-gnu"
2126

2227
declare i16 @external()
2328

2429
; ModuleID = '__init___TestProject'
2530
source_filename = "__init___TestProject"
31+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
32+
target triple = "x86_64-pc-linux-gnu"
2633

2734
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___TestProject, i8* null }]
2835

compiler/plc_driver/src/tests/snapshots/plc_driver__tests__external_files__external_file_global_var.snap

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
22
source: compiler/plc_driver/./src/tests/external_files.rs
33
expression: "results.join(\"\\n\")"
4+
snapshot_kind: text
45
---
56
; ModuleID = 'main.st'
67
source_filename = "main.st"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
710

811
@x = external global i16
912
@y = external global i16
@@ -23,6 +26,8 @@ declare i16 @external()
2326

2427
; ModuleID = 'external.st'
2528
source_filename = "external.st"
29+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
30+
target triple = "x86_64-pc-linux-gnu"
2631

2732
@x = external global i16
2833
@y = external global i16
@@ -31,6 +36,8 @@ declare i16 @external()
3136

3237
; ModuleID = '__init___TestProject'
3338
source_filename = "__init___TestProject"
39+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
40+
target triple = "x86_64-pc-linux-gnu"
3441

3542
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___TestProject, i8* null }]
3643

compiler/plc_driver/src/tests/snapshots/plc_driver__tests__multi_files__multiple_files_in_different_locations_with_debug_info.snap

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = 'app/file1.st'
77
source_filename = "app/file1.st"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
%mainProg = type {}
1012

@@ -55,6 +57,8 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5557

5658
; ModuleID = 'lib/file2.st'
5759
source_filename = "lib/file2.st"
60+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
61+
target triple = "x86_64-pc-linux-gnu"
5862

5963
%mainProg = type {}
6064

@@ -92,6 +96,8 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
9296

9397
; ModuleID = '__initializers'
9498
source_filename = "__initializers"
99+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
100+
target triple = "x86_64-pc-linux-gnu"
95101

96102
%mainProg = type {}
97103

@@ -115,6 +121,8 @@ entry:
115121

116122
; ModuleID = '__init___TestProject'
117123
source_filename = "__init___TestProject"
124+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
125+
target triple = "x86_64-pc-linux-gnu"
118126

119127
%mainProg = type {}
120128

compiler/plc_driver/src/tests/snapshots/plc_driver__tests__multi_files__multiple_files_with_debug_info.snap

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = 'file1.st'
77
source_filename = "file1.st"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
%mainProg = type {}
1012

@@ -55,6 +57,8 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5557

5658
; ModuleID = 'file2.st'
5759
source_filename = "file2.st"
60+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
61+
target triple = "x86_64-pc-linux-gnu"
5862

5963
%mainProg = type {}
6064

@@ -92,6 +96,8 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
9296

9397
; ModuleID = '__initializers'
9498
source_filename = "__initializers"
99+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
100+
target triple = "x86_64-pc-linux-gnu"
95101

96102
%mainProg = type {}
97103

@@ -115,6 +121,8 @@ entry:
115121

116122
; ModuleID = '__init___TestProject'
117123
source_filename = "__init___TestProject"
124+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
125+
target triple = "x86_64-pc-linux-gnu"
118126

119127
%mainProg = type {}
120128

compiler/plc_driver/src/tests/snapshots/plc_driver__tests__multi_files__multiple_source_files_generated.snap

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = 'external_file1.st'
77
source_filename = "external_file1.st"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
%mainProg = type {}
1012

@@ -23,6 +25,8 @@ declare void @mainProg(%mainProg*)
2325

2426
; ModuleID = 'external_file2.st'
2527
source_filename = "external_file2.st"
28+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
29+
target triple = "x86_64-pc-linux-gnu"
2630

2731
%mainProg = type {}
2832

@@ -35,6 +39,8 @@ entry:
3539

3640
; ModuleID = '__initializers'
3741
source_filename = "__initializers"
42+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
43+
target triple = "x86_64-pc-linux-gnu"
3844

3945
%mainProg = type {}
4046

@@ -58,6 +64,8 @@ entry:
5864

5965
; ModuleID = '__init___TestProject'
6066
source_filename = "__init___TestProject"
67+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
68+
target triple = "x86_64-pc-linux-gnu"
6169

6270
%mainProg = type {}
6371

src/codegen/tests/address_tests.rs

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ fn aliased_address_in_global_generated() {
1515
assert_snapshot!(res, @r#"
1616
; ModuleID = '<internal>'
1717
source_filename = "<internal>"
18+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
19+
target triple = "x86_64-pc-linux-gnu"
1820
1921
@foo = global i8* null
2022
@__PI_1_2_3_4 = global i8 0
@@ -35,6 +37,8 @@ fn duplicate_aliased_address_in_global_generated() {
3537
assert_snapshot!(res, @r#"
3638
; ModuleID = '<internal>'
3739
source_filename = "<internal>"
40+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
41+
target triple = "x86_64-pc-linux-gnu"
3842
3943
@foo = global i8* null
4044
@__PI_1_2_3_4 = global i8 0
@@ -61,6 +65,8 @@ fn address_variable_used_with_symbolic_name() {
6165
assert_snapshot!(res, @r#"
6266
; ModuleID = '<internal>'
6367
source_filename = "<internal>"
68+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
69+
target triple = "x86_64-pc-linux-gnu"
6470
6571
%mainProg = type {}
6672
@@ -100,6 +106,8 @@ fn address_used_in_body() {
100106
assert_snapshot!(res, @r#"
101107
; ModuleID = '<internal>'
102108
source_filename = "<internal>"
109+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
110+
target triple = "x86_64-pc-linux-gnu"
103111
104112
%mainProg = type {}
105113

src/codegen/tests/code_gen_tests.rs

+14
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,8 @@ fn fb_method_called_locally() {
11071107
insta::assert_snapshot!(result, @r#"
11081108
; ModuleID = '<internal>'
11091109
source_filename = "<internal>"
1110+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1111+
target triple = "x86_64-pc-linux-gnu"
11101112
11111113
%foo = type { i32 }
11121114
@@ -1190,6 +1192,8 @@ fn fb_local_method_var_shadows_parent_var() {
11901192
insta::assert_snapshot!(result, @r#"
11911193
; ModuleID = '<internal>'
11921194
source_filename = "<internal>"
1195+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1196+
target triple = "x86_64-pc-linux-gnu"
11931197
11941198
%foo = type { i32 }
11951199
@@ -1272,6 +1276,8 @@ fn prog_method_called_locally() {
12721276
insta::assert_snapshot!(result, @r#"
12731277
; ModuleID = '<internal>'
12741278
source_filename = "<internal>"
1279+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1280+
target triple = "x86_64-pc-linux-gnu"
12751281
12761282
%foo = type { i32 }
12771283
@@ -1346,6 +1352,8 @@ fn prog_local_method_var_shadows_parent_var() {
13461352
insta::assert_snapshot!(result, @r#"
13471353
; ModuleID = '<internal>'
13481354
source_filename = "<internal>"
1355+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1356+
target triple = "x86_64-pc-linux-gnu"
13491357
13501358
%foo = type { i32 }
13511359
@@ -1599,6 +1607,8 @@ fn for_statement_with_binary_expressions() {
15991607
insta::assert_snapshot!(result, @r#"
16001608
; ModuleID = '<internal>'
16011609
source_filename = "<internal>"
1610+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1611+
target triple = "x86_64-pc-linux-gnu"
16021612
16031613
%prg = type { i32, i32, i32, i32 }
16041614
@@ -1666,6 +1676,8 @@ fn for_statement_type_casting() {
16661676
insta::assert_snapshot!(result, @r#"
16671677
; ModuleID = '<internal>'
16681678
source_filename = "<internal>"
1679+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1680+
target triple = "x86_64-pc-linux-gnu"
16691681
16701682
define void @main() {
16711683
entry:
@@ -3952,6 +3964,8 @@ fn variables_in_var_external_block_are_not_generated() {
39523964
insta::assert_snapshot!(res, @r#"
39533965
; ModuleID = '<internal>'
39543966
source_filename = "<internal>"
3967+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3968+
target triple = "x86_64-pc-linux-gnu"
39553969
39563970
%bar = type {}
39573971
%baz = type {}

src/codegen/tests/debug_tests.rs

+8
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ fn switch_case_debug_info() {
221221
assert_snapshot!(codegen, @r#"
222222
; ModuleID = '<internal>'
223223
source_filename = "<internal>"
224+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
225+
target triple = "x86_64-pc-linux-gnu"
224226
225227
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
226228
@@ -352,6 +354,8 @@ fn dbg_declare_has_valid_metadata_references_for_methods() {
352354
assert_snapshot!(codegen, @r#"
353355
; ModuleID = '<internal>'
354356
source_filename = "<internal>"
357+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
358+
target triple = "x86_64-pc-linux-gnu"
355359
356360
%fb = type {}
357361
@@ -445,6 +449,8 @@ fn action_with_var_temp() {
445449
assert_snapshot!(codegen, @r#"
446450
; ModuleID = '<internal>'
447451
source_filename = "<internal>"
452+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
453+
target triple = "x86_64-pc-linux-gnu"
448454
449455
%PLC_PRG = type {}
450456
@@ -602,6 +608,8 @@ END_FUNCTION
602608
assert_snapshot!(result, @r#"
603609
; ModuleID = '<internal>'
604610
source_filename = "<internal>"
611+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
612+
target triple = "x86_64-pc-linux-gnu"
605613
606614
%struct_ = type { %inner, [3 x %inner], [81 x i8], i8, float, [3 x [81 x i8]], i16 }
607615
%inner = type { [81 x i8], i8, float, [3 x [81 x i8]], i16 }

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__aggregate_return_value_variable_in_function.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
@utf08_literal_0 = private unnamed_addr constant [6 x i8] c"hello\00"
1012

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__array_size_correctly_set_in_dwarf_info.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @foo() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__assignment_statement_have_location.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__case_conditions_location_marked.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__exit_statement_have_location.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__external_impl_is_not_added_as_external_subroutine.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
%myPrg = type {}
1012
%myFb = type {}

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__for_conditions_location_marked.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__function_calls_have_location.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__function_calls_in_expressions_have_location.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__if_conditions_location_marked.snap

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ snapshot_kind: text
55
---
66
; ModuleID = '<internal>'
77
source_filename = "<internal>"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-pc-linux-gnu"
810

911
define i32 @myFunc() !dbg !4 {
1012
entry:

0 commit comments

Comments
 (0)