Skip to content

Commit c3cd7de

Browse files
committed
Merge forward declare
1 parent 2a765eb commit c3cd7de

File tree

1 file changed

+28
-29
lines changed

1 file changed

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

3-
declare i64 @c_get_argc()
4-
declare %Pos @c_get_arg(i64)
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
55

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

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

12-
declare %Pos @c_ref_fresh(%Pos)
13-
declare %Pos @c_ref_get(%Pos)
14-
declare %Pos @c_ref_set(%Pos, %Pos)
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
1515

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)
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
2020

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)
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
2525

26-
declare ptr @c_bytearray_data(%Pos)
27-
declare %Pos @c_bytearray_construct(i64, ptr)
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
2828

29-
declare %Pos @c_bytearray_from_nullterminated_string(ptr)
30-
declare ptr @c_bytearray_into_nullterminated_string(%Pos)
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
3131

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)
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
3636

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)
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
4340

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)