brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · b5606ff Raw
39 lines · plain
1; RUN: llc -O0 %s -filetype=obj -o %t.o2; RUN: llvm-dwarfdump -arch arm64   %t.o | FileCheck %s3; AArch64 does not support Metal. However in the absence of a suitable target4; it can still be used to test that DW_LANG_Metal/DW_LNAME_Metal can be5; encoded/decoded correctly.6; CHECK: DW_AT_language (DW_LANG_Metal)7source_filename = "test.cpp"8target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"9target triple = "arm64-apple-macosx15.0.0"10 11; Function Attrs: mustprogress noinline norecurse nounwind optnone ssp uwtable(sync)12define noundef i32 @main() #0 !dbg !11 {13entry:14  ret i32 0, !dbg !1415}16 17attributes #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)39