|
18 | 18 |
|
19 | 19 | ; CHECK-LLVM: define spir_func void @foo() #0 !dbg ![[#Func1:]] { |
20 | 20 | ; CHECK-LLVM: entry: |
21 | | -; CHECK-LLVM: %puts = call spir_func i32 @puts(ptr addrspace(1) nocapture @str) #0, !dbg ![[#Puts1Loc:]] |
| 21 | +; CHECK-LLVM: %puts = call spir_func i32 @puts(ptr addrspace(1) captures(none) @str) #0, !dbg ![[#Puts1Loc:]] |
22 | 22 | ; CHECK-LLVM: ret void, !dbg ![[#Ret1:]] |
23 | 23 | ; CHECK-LLVM: } |
24 | 24 |
|
25 | | -; CHECK-LLVM: define spir_func i32 @main(i32 %argc, ptr nocapture %argv) #0 !dbg ![[#Func2:]] { |
| 25 | +; CHECK-LLVM: define spir_func i32 @main(i32 %argc, ptr captures(none) %argv) #0 !dbg ![[#Func2:]] { |
26 | 26 | ; CHECK-LLVM: entry: |
27 | 27 | ; CHECK-LLVM: #dbg_value(i32 %argc, ![[#Fun2Param1:]], !DIExpression(), ![[#Fun2Param1Loc:]]) |
28 | 28 | ; CHECK-LLVM: #dbg_value(ptr %argv, ![[#Fun2Param2:]], !DIExpression(DW_OP_deref, DW_OP_deref), ![[#Fun2Param2Loc:]]) |
29 | 29 | ; CHECK-LLVM: %0 = bitcast ptr addrspace(1) @str1 to ptr addrspace(1), !dbg ![[#Puts2Loc:]] |
30 | | -; CHECK-LLVM: %puts = call spir_func i32 @puts(ptr addrspace(1) nocapture %0) #0, !dbg ![[#Puts2Loc]] |
| 30 | +; CHECK-LLVM: %puts = call spir_func i32 @puts(ptr addrspace(1) captures(none) %0) #0, !dbg ![[#Puts2Loc]] |
31 | 31 | ; CHECK-LLVM: call spir_func void @foo() #0, !dbg ![[#CallFoo:]] |
32 | 32 | ; CHECK-LLVM: ret i32 0, !dbg ![[#Ret2:]] |
33 | 33 | ; CHECK-LLVM: } |
|
74 | 74 | ret void, !dbg !25 |
75 | 75 | } |
76 | 76 |
|
77 | | -declare i32 @puts(ptr addrspace(1) nocapture) nounwind |
| 77 | +declare i32 @puts(ptr addrspace(1) captures(none)) nounwind |
78 | 78 |
|
79 | | -define i32 @main(i32 %argc, ptr nocapture %argv) nounwind !dbg !12 { |
| 79 | +define i32 @main(i32 %argc, ptr captures(none) %argv) nounwind !dbg !12 { |
80 | 80 | entry: |
81 | 81 | tail call void @llvm.dbg.value(metadata i32 %argc, metadata !21, metadata !DIExpression()), !dbg !26 |
82 | 82 | ; Avoid talking about the pointer size in debug info because that's target dependent |
|
0 commit comments