Skip to content

Commit 87d48b5

Browse files
committed
Revert forward declare changes
1 parent 658722d commit 87d48b5

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

libraries/llvm/forward-declare-c.ll

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
; forward-declared from primitives.c
22

3-
declare i64 @c_get_argc() mustprogress nofree norecurse nosync nounwind sspstrong willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
4-
declare %Pos @c_get_arg(i64) nofree nounwind sspstrong uwtable
3+
declare i64 @c_get_argc()
4+
declare %Pos @c_get_arg(i64)
55

66
declare void @c_io_println(%Pos)
77
declare %Pos @c_io_readln()
88

9-
declare void @hole(i8*) noreturn nounwind sspstrong uwtable
10-
declare void @duplicated_prompt() noreturn nounwind sspstrong uwtable
9+
declare void @hole(i8*)
10+
declare void @duplicated_prompt()
1111

12-
declare %Pos @c_ref_fresh(%Pos) mustprogress nofree nounwind sspstrong willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable
13-
declare %Pos @c_ref_get(%Pos) nounwind sspstrong uwtable
14-
declare %Pos @c_ref_set(%Pos, %Pos) nounwind sspstrong uwtable
12+
declare %Pos @c_ref_fresh(%Pos)
13+
declare %Pos @c_ref_get(%Pos)
14+
declare %Pos @c_ref_set(%Pos, %Pos)
1515

16-
declare %Pos @c_array_new(%Int) mustprogress nofree nounwind sspstrong willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable
17-
declare %Int @c_array_size(%Pos) nounwind sspstrong uwtable
18-
declare %Pos @c_array_get(%Pos, %Int) nounwind sspstrong uwtable
19-
declare %Pos @c_array_set(%Pos, %Int, %Pos) nounwind sspstrong uwtable
16+
declare %Pos @c_array_new(%Int)
17+
declare %Int @c_array_size(%Pos)
18+
declare %Pos @c_array_get(%Pos, %Int)
19+
declare %Pos @c_array_set(%Pos, %Int, %Pos)
2020

21-
declare %Pos @c_bytearray_new(%Int) mustprogress nofree nounwind sspstrong willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable
22-
declare %Int @c_bytearray_size(%Pos) nounwind sspstrong uwtable
23-
declare %Byte @c_bytearray_get(%Pos, %Int) nounwind sspstrong uwtable
24-
declare %Pos @c_bytearray_set(%Pos, %Int, %Byte) nounwind sspstrong uwtable
21+
declare %Pos @c_bytearray_new(%Int)
22+
declare %Int @c_bytearray_size(%Pos)
23+
declare %Byte @c_bytearray_get(%Pos, %Int)
24+
declare %Pos @c_bytearray_set(%Pos, %Int, %Byte)
2525

26-
declare ptr @c_bytearray_data(%Pos) mustprogress nofree norecurse nosync nounwind sspstrong willreturn memory(none) uwtable
27-
declare %Pos @c_bytearray_construct(i64, ptr) mustprogress nofree nounwind sspstrong willreturn uwtable
26+
declare ptr @c_bytearray_data(%Pos)
27+
declare %Pos @c_bytearray_construct(i64, ptr)
2828

29-
declare %Pos @c_bytearray_from_nullterminated_string(ptr) nofree nounwind sspstrong uwtable
30-
declare ptr @c_bytearray_into_nullterminated_string(%Pos) mustprogress nofree nounwind sspstrong willreturn uwtable
29+
declare %Pos @c_bytearray_from_nullterminated_string(ptr)
30+
declare ptr @c_bytearray_into_nullterminated_string(%Pos)
3131

32-
declare %Pos @c_bytearray_show_Int(i64) nofree nounwind sspstrong uwtable
33-
declare %Pos @c_bytearray_show_Char(i32) nofree nounwind sspstrong memory(readwrite, argmem: none) uwtable
34-
declare %Pos @c_bytearray_show_Byte(i8) nofree nounwind sspstrong uwtable
35-
declare %Pos @c_bytearray_show_Double(double) nofree nounwind sspstrong uwtable
32+
declare %Pos @c_bytearray_show_Int(i64)
33+
declare %Pos @c_bytearray_show_Char(i32)
34+
declare %Pos @c_bytearray_show_Byte(i8)
35+
declare %Pos @c_bytearray_show_Double(double)
3636

37-
declare %Pos @c_bytearray_concatenate(%Pos, %Pos) nounwind sspstrong uwtable
38-
declare %Pos @c_bytearray_equal(%Pos, %Pos) nounwind sspstrong uwtable
39-
declare %Int @c_bytearray_compare(%Pos, %Pos) nounwind sspstrong uwtable
37+
declare %Pos @c_bytearray_concatenate(%Pos, %Pos)
38+
declare %Pos @c_bytearray_equal(%Pos, %Pos)
39+
declare %Int @c_bytearray_compare(%Pos, %Pos)
40+
41+
declare %Pos @c_bytearray_substring(%Pos, i64, i64)
42+
declare %Int @c_bytearray_character_at(%Pos, i64)
4043

41-
declare %Pos @c_bytearray_substring(%Pos, i64, i64) nounwind sspstrong uwtable
42-
declare %Int @c_bytearray_character_at(%Pos, i64) nounwind sspstrong uwtable

0 commit comments

Comments
 (0)