47 lines · plain
1; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s 2;3; CHECK: DW_TAG_array_type4; CHECK-NEXT: DW_AT_GNU_vector [DW_FORM_flag_present] (true)5; CHECK-NEXT: DW_AT_byte_size [DW_FORM_data1] (0x20)6 7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"8target triple = "x86_64-unknown-linux-gnu"9 10define dso_local void @test() !dbg !9 {11 %1 = alloca <6 x float>, align 3212 call void @llvm.dbg.declare(metadata ptr %1, metadata !13, metadata !DIExpression()), !dbg !1913 call void @foo(ptr %1), !dbg !2114 ret void, !dbg !2215}16 17declare void @llvm.dbg.declare(metadata, metadata, metadata)18declare dso_local void @foo(ptr)19 20!llvm.dbg.cu = !{!0}21!llvm.module.flags = !{!5, !6, !7}22!llvm.ident = !{!8}23 24!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3)25!1 = !DIFile(filename: "small.c", directory: "/dbg/info")26!2 = !{}27!3 = !{!4}28!4 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)29!5 = !{i32 2, !"Dwarf Version", i32 4}30!6 = !{i32 2, !"Debug Info Version", i32 3}31!7 = !{i32 1, !"wchar_size", i32 4}32!8 = !{!"clang"}33!9 = distinct !DISubprogram(name: "test", scope: !10, file: !10, line: 3, type: !11, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)34!10 = !DIFile(filename: "./small.c", directory: "/dbg/info")35!11 = !DISubroutineType(types: !12)36!12 = !{null}37!13 = !DILocalVariable(name: "v01", scope: !9, file: !10, line: 4, type: !14)38!14 = !DIDerivedType(tag: DW_TAG_typedef, name: "vec6f", file: !10, line: 1, baseType: !15)39!15 = !DICompositeType(tag: DW_TAG_array_type, baseType: !16, size: 256, flags: DIFlagVector, elements: !17)40!16 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)41!17 = !{!18}42!18 = !DISubrange(count: 6)43!19 = !DILocation(line: 4, column: 9, scope: !9)44!20 = !DILocation(line: 5, column: 7, scope: !9)45!21 = !DILocation(line: 5, column: 3, scope: !9)46!22 = !DILocation(line: 6, column: 1, scope: !9)47