Skip to content

Commit db5c65d

Browse files
authored
[skiplang/skc] Update bootstrap. (#970)
2 parents a7fc486 + a35d317 commit db5c65d

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

skiplang/prelude/preamble/preamble32.ll

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ declare ptr @SKIP_llvm_memcpy(ptr, ptr, i64)
1010

1111
; LLVM intrinsics
1212

13-
declare void @llvm.lifetime.start(i64, ptr nocapture) argmemonly nounwind
14-
declare void @llvm.lifetime.end(i64, ptr nocapture) argmemonly nounwind
13+
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
14+
declare void @llvm.lifetime.start(i64 immarg, ptr nocapture)
15+
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
16+
declare void @llvm.lifetime.end(i64 immarg, ptr nocapture)
1517

16-
declare i32 @llvm.eh.typeid.for(ptr) nounwind readnone
18+
; Function Attrs: nounwind readnone
19+
declare i32 @llvm.eh.typeid.for(ptr)
1720

21+
; Function Attrs: nounwind readnone
1822
declare i64 @llvm.ctlz.i64(i64, i1)
23+
; Function Attrs: nounwind readnone
1924
declare i64 @llvm.cttz.i64(i64, i1)
25+
; Function Attrs: nounwind readnone
2026
declare i64 @llvm.ctpop.i64(i64)
2127

2228
declare i32 @__gxx_personality_v0(...)

skiplang/prelude/preamble/preamble64.ll

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ declare ptr @SKIP_llvm_memcpy(ptr, ptr, i64)
99

1010
; LLVM intrinsics
1111

12-
declare void @llvm.lifetime.start(i64, ptr nocapture) argmemonly nounwind
13-
declare void @llvm.lifetime.end(i64, ptr nocapture) argmemonly nounwind
12+
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
13+
declare void @llvm.lifetime.start(i64 immarg, ptr nocapture)
14+
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
15+
declare void @llvm.lifetime.end(i64 immarg, ptr nocapture)
1416

15-
declare i32 @llvm.eh.typeid.for(ptr) nounwind readnone
17+
; Function Attrs: nounwind readnone
18+
declare i32 @llvm.eh.typeid.for(ptr)
1619

20+
; Function Attrs: nounwind readnone
1721
declare i64 @llvm.ctlz.i64(i64, i1)
22+
; Function Attrs: nounwind readnone
1823
declare i64 @llvm.cttz.i64(i64, i1)
24+
; Function Attrs: nounwind readnone
1925
declare i64 @llvm.ctpop.i64(i64)
2026

2127
declare i32 @__gxx_personality_v0(...)

skiplang/prelude/runtime/runtime64_specific.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ char* SKIP_getArgN(int64_t n) {
231231

232232
int64_t SKIP_get_envc() {
233233
char** p = nullptr;
234-
for (p = environ; *p != nullptr; ++p)
235-
;
234+
for (p = environ; *p != nullptr; ++p);
236235
return (int)(p - environ);
237236
}
238237

0 commit comments

Comments
 (0)