xref: /aosp_15_r20/external/llvm/test/Assembler/dilocation.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; CHECK: !named = !{!0, !2, !3, !3, !4, !4, !5, !5, !6}
5*9880d681SAndroid Build Coastguard Worker!named = !{!0, !2, !3, !4, !5, !6, !7, !8, !9}
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!10}
8*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!1}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; CHECK: !0 = distinct !DISubprogram(
11*9880d681SAndroid Build Coastguard Worker!0 = distinct !DISubprogram(unit: !1)
12*9880d681SAndroid Build Coastguard Worker; CHECK: !1 = distinct !DICompileUnit
13*9880d681SAndroid Build Coastguard Worker!1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
14*9880d681SAndroid Build Coastguard Worker                             file: !2,
15*9880d681SAndroid Build Coastguard Worker                             isOptimized: true, flags: "-O2",
16*9880d681SAndroid Build Coastguard Worker                             splitDebugFilename: "abc.debug", emissionKind: 2)
17*9880d681SAndroid Build Coastguard Worker; CHECK: !2 = !DIFile
18*9880d681SAndroid Build Coastguard Worker!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !3 = !DILocation(line: 3, column: 7, scope: !0)
21*9880d681SAndroid Build Coastguard Worker!3 = !DILocation(line: 3, column: 7, scope: !0)
22*9880d681SAndroid Build Coastguard Worker!4 = !DILocation(scope: !0, column: 7, line: 3)
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !4 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !3)
25*9880d681SAndroid Build Coastguard Worker!5 = !DILocation(scope: !0, inlinedAt: !3, column: 7, line: 3)
26*9880d681SAndroid Build Coastguard Worker!6 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !3)
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !5 = !DILocation(line: 0, scope: !0)
29*9880d681SAndroid Build Coastguard Worker!7 = !DILocation(scope: !0)
30*9880d681SAndroid Build Coastguard Worker!8 = !DILocation(scope: !0, column: 0, line: 0)
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !6 = !DILocation(line: 4294967295, column: 65535, scope: !0)
33*9880d681SAndroid Build Coastguard Worker!9 = !DILocation(line: 4294967295, column: 65535, scope: !0)
34*9880d681SAndroid Build Coastguard Worker
35*9880d681SAndroid Build Coastguard Worker!10 = !{i32 2, !"Debug Info Version", i32 3}
36