Debian Codegraph @

llvm/test/tools/llvm-dwarfdump/AArch64/dwarf-lang-metal.ll

raw
1 ; RUN: llc -O0 %s -filetype=obj -o %t.o
2 ; RUN: llvm-dwarfdump -arch arm64 %t.o | FileCheck %s
3 ; AArch64 does not support Metal. However in the absence of a suitable target
4 ; it can still be used to test that DW_LANG_Metal/DW_LNAME_Metal can be
5 ; encoded/decoded correctly.
6 ; CHECK: DW_AT_language (DW_LANG_Metal)
7 source_filename = "test.cpp"
8 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
9 target triple = "arm64-apple-macosx15.0.0"
10
11 ; Function Attrs: mustprogress noinline norecurse nounwind optnone ssp uwtable(sync)
12 define noundef i32 @main() #0 !dbg !11 {
13 entry:
14 ret i32 0, !dbg !14
15 }
16
17 attributes #0 = { mustprogress norecurse nounwind }
18
19 !llvm.module.flags = !{!3, !4, !5, !6, !7, !8, !9}
20 !llvm.dbg.cu = !{!0}
21 !llvm.linker.options = !{}
22 !llvm.ident = !{!10}
23
24 !0 = distinct !DICompileUnit(language: DW_LANG_Metal, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
25 !1 = !DIFile(filename: "test.cpp", directory: "/tmp")
26 !2 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
27 !3 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 0]}
28 !4 = !{i32 7, !"Dwarf Version", i32 5}
29 !5 = !{i32 2, !"Debug Info Version", i32 3}
30 !6 = !{i32 1, !"wchar_size", i32 4}
31 !7 = !{i32 8, !"PIC Level", i32 2}
32 !8 = !{i32 7, !"uwtable", i32 1}
33 !9 = !{i32 7, !"frame-pointer", i32 1}
34 !10 = !{!"clang"}
35 !11 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 8, type: !12, scopeLine: 8, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)
36 !12 = !DISubroutineType(types: !13)
37 !13 = !{!2}
38 !14 = !DILocation(line: 11, column: 1, scope: !11)