Skip to content

Commit 893ebc6

Browse files
committed
llvm-21
1 parent c1f003e commit 893ebc6

File tree

83 files changed

+176
-176
lines changed

Some content is hidden

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

83 files changed

+176
-176
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ default-members = [".", "compiler/plc_driver", "compiler/plc_xml"]
8484

8585
[workspace.dependencies]
8686
insta = { version = "1.31.0", features = ["filters"] }
87-
inkwell = { version = "0.7", features = ["llvm20-1"] }
87+
inkwell = { version = "0.7", features = ["llvm21-1"] }
8888
encoding_rs = "0.8"
8989
encoding_rs_io = "0.1"
9090
log = "0.4"

src/codegen/tests/code_gen_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ fn fb_method_called_locally() {
11561156
}
11571157
11581158
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
1159-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
1159+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
11601160
11611161
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
11621162
"#)
@@ -1246,7 +1246,7 @@ fn fb_local_method_var_shadows_parent_var() {
12461246
}
12471247
12481248
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
1249-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
1249+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
12501250
12511251
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
12521252
"#)

src/codegen/tests/debug_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,13 @@ END_FUNCTION
705705
}
706706
707707
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
708-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
708+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
709709
710710
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
711-
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
711+
declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #1
712712
713713
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
714-
declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #0
714+
declare void @llvm.memcpy.p0.p0.i32(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i32, i1 immarg) #0
715715
716716
define void @__init_struct_(ptr %0) {
717717
entry:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ entry:
2020
}
2121

2222
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
23-
declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #0
23+
declare void @llvm.memcpy.p0.p0.i32(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i32, i1 immarg) #0
2424

2525
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
2626

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ entry:
2020
}
2121

2222
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
23-
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0
23+
declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #0
2424

2525
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
2626

src/codegen/tests/directaccess_test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ fn direct_acess_in_output_assignment_implicit_explicit_and_mixed() {
218218
}
219219
220220
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
221-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
221+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
222222
223223
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
224224
"#);
@@ -284,7 +284,7 @@ fn direct_acess_in_output_assignment_with_simple_expression() {
284284
}
285285
286286
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
287-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
287+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
288288
289289
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
290290
"#);
@@ -350,7 +350,7 @@ fn direct_acess_in_output_assignment_with_simple_expression_implicit() {
350350
}
351351
352352
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
353-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
353+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
354354
355355
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
356356
"#);
@@ -443,7 +443,7 @@ fn direct_acess_in_output_assignment_with_complexe_expression() {
443443
}
444444
445445
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
446-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
446+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
447447
448448
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
449449
"#);

src/codegen/tests/fnptr.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn function_pointer_method_no_parameters() {
5757
}
5858
5959
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
60-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
60+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
6161
6262
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
6363
"#);
@@ -122,7 +122,7 @@ fn function_pointer_method_with_return_type() {
122122
}
123123
124124
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
125-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
125+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
126126
127127
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
128128
"#);
@@ -217,13 +217,13 @@ fn function_pointer_method_with_return_type_aggregate() {
217217
}
218218
219219
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
220-
declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #0
220+
declare void @llvm.memcpy.p0.p0.i32(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i32, i1 immarg) #0
221221
222222
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
223-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
223+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
224224
225225
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
226-
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
226+
declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #1
227227
228228
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
229229
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
@@ -318,10 +318,10 @@ fn function_pointer_method_with_all_variable_parameter_types() {
318318
}
319319
320320
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
321-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
321+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
322322
323323
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
324-
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
324+
declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #1
325325
326326
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
327327
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
@@ -412,7 +412,7 @@ fn function_block_body() {
412412
}
413413
414414
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
415-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
415+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
416416
417417
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
418418
"#);

src/codegen/tests/initialization_test/complex_initializers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ fn user_init_called_for_variables_on_stack() {
853853
}
854854
855855
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
856-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
856+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
857857
858858
define void @__init___vtable_foo(ptr %0) {
859859
entry:
@@ -2194,7 +2194,7 @@ fn temporary_variable_ref_to_temporary_variable() {
21942194
}
21952195
21962196
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
2197-
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0
2197+
declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #0
21982198
21992199
define void @__init___Test() {
22002200
entry:
@@ -2884,7 +2884,7 @@ fn methods_call_init_functions_for_their_members() {
28842884
}
28852885
28862886
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
2887-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
2887+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
28882888
28892889
define void @__init___vtable_foo(ptr %0) {
28902890
entry:

src/codegen/tests/initialization_test/snapshots/rusty__codegen__tests__initialization_test__global_initializers__global_constant_without_initializer_gets_declared_initializer.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ entry:
2828
}
2929

3030
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
31-
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0
31+
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0
3232

3333
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

0 commit comments

Comments
 (0)