77target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
88target triple = "nvptx64-nvidia-cuda"
99
10- ; CHECK: remark: test.c:3:0: in function 'extNotKer ', ExternalNotKernel = 1
11- define external void @extNotKer () !dbg !10 {
10+ ; CHECK: remark: test.c:3:0: in function 'f ', ExternalNotKernel = 1
11+ define external void @f () !dbg !10 {
1212entry:
1313 ret void
1414}
1515
16- ; CHECK: remark: test.c:13:0: in artificial function 'impNotKer ', ExternalNotKernel = 1
17- define void @impNotKer () !dbg !20 {
16+ ; CHECK: remark: test.c:13:0: in artificial function 'g ', ExternalNotKernel = 1
17+ define void @g () !dbg !20 {
1818entry:
1919 ret void
2020}
2121
22- ; CHECK: remark: test.c:23:0: in artificial function 'weakNotKer ', ExternalNotKernel = 0
23- define weak void @weakNotKer () !dbg !30 {
22+ ; CHECK: remark: test.c:23:0: in function 'h ', ExternalNotKernel = 0
23+ define external void @h () # 0 !dbg !30 {
2424entry:
2525 ret void
2626}
2727
28- ; CHECK: remark: test.c:33:0: in function 'extKerAttr', ExternalNotKernel = 0
29- define external void @extKerAttr () #0 !dbg !40 {
30- entry:
31- ret void
32- }
33-
34- ; CHECK: remark: test.c:43:0: in function 'extKer', ExternalNotKernel = 0
35- define external void @extKer () !dbg !50 {
36- entry:
37- ret void
38- }
39-
40- ; CHECK: remark: test.c:53:0: in artificial function 'weakKer', ExternalNotKernel = 0
41- define weak void @weakKer () !dbg !60 {
28+ ; CHECK: remark: test.c:33:0: in artificial function 'i', ExternalNotKernel = 0
29+ define weak void @i () !dbg !40 {
4230entry:
4331 ret void
4432}
4533
4634attributes #0 = { "kernel" }
4735
48- !nvvm.annotations = !{!42 , !52 , !62 }
49-
5036!llvm.module.flags = !{!0 }
5137!llvm.dbg.cu = !{!1 }
5238
@@ -55,24 +41,11 @@ attributes #0 = { "kernel" }
5541!2 = !DIFile (filename: "test.c" , directory: "/tmp" )
5642!3 = !{null }
5743!4 = !{}
58-
59- !10 = distinct !DISubprogram (name: "extNotKer" , scope: !2 , file: !2 , line: 3 , type: !11 , scopeLine: 3 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
44+ !10 = distinct !DISubprogram (name: "f" , scope: !2 , file: !2 , line: 3 , type: !11 , scopeLine: 3 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
6045!11 = !DISubroutineType (types: !3 )
61-
62- !20 = distinct !DISubprogram (name: "impNotKer" , scope: !2 , file: !2 , line: 13 , type: !21 , scopeLine: 13 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
46+ !20 = distinct !DISubprogram (name: "g" , scope: !2 , file: !2 , line: 13 , type: !21 , scopeLine: 13 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
6347!21 = distinct !DISubroutineType (types: !3 )
64-
65- !30 = distinct !DISubprogram (name: "weakNotKer" , scope: !2 , file: !2 , line: 23 , type: !31 , scopeLine: 23 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
48+ !30 = distinct !DISubprogram (name: "h" , scope: !2 , file: !2 , line: 23 , type: !31 , scopeLine: 23 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
6649!31 = distinct !DISubroutineType (types: !3 )
67-
68- !40 = distinct !DISubprogram (name: "extKerAttr" , scope: !2 , file: !2 , line: 33 , type: !41 , scopeLine: 33 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
50+ !40 = distinct !DISubprogram (name: "i" , scope: !2 , file: !2 , line: 33 , type: !41 , scopeLine: 33 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
6951!41 = distinct !DISubroutineType (types: !3 )
70- !42 = !{ptr @extKerAttr , !"kernel" , i32 1 }
71-
72- !50 = distinct !DISubprogram (name: "extKer" , scope: !2 , file: !2 , line: 43 , type: !51 , scopeLine: 43 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
73- !51 = distinct !DISubroutineType (types: !3 )
74- !52 = !{ptr @extKer , !"kernel" , i32 1 }
75-
76- !60 = distinct !DISubprogram (name: "weakKer" , scope: !2 , file: !2 , line: 53 , type: !61 , scopeLine: 53 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
77- !61 = distinct !DISubroutineType (types: !3 )
78- !62 = !{ptr @weakKer , !"kernel" , i32 1 }
0 commit comments