diff options
Diffstat (limited to 'test/DebugInfo/AArch64')
-rw-r--r-- | test/DebugInfo/AArch64/big-endian-dump.ll | 12 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/big-endian.ll | 22 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/cfi-eof-prologue.ll | 112 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/coalescing.ll | 65 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/dwarfdump.ll | 22 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/frameindices.ll | 257 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/little-endian-dump.ll | 12 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/processes-relocations.ll | 12 | ||||
-rw-r--r-- | test/DebugInfo/AArch64/struct_by_value.ll | 44 |
9 files changed, 496 insertions, 62 deletions
diff --git a/test/DebugInfo/AArch64/big-endian-dump.ll b/test/DebugInfo/AArch64/big-endian-dump.ll index 3af3001..4a1a9e7 100644 --- a/test/DebugInfo/AArch64/big-endian-dump.ll +++ b/test/DebugInfo/AArch64/big-endian-dump.ll @@ -8,9 +8,9 @@ target datalayout = "E-m:e-i64:64-i128:128-n32:64-S128" !llvm.module.flags = !{!3, !4} !llvm.ident = !{!5} -!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] -!1 = metadata !{metadata !"empty.c", metadata !"/a"} -!2 = metadata !{} -!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} -!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1} -!5 = metadata !{metadata !"clang version 3.6.0 "} +!0 = !{i32 786449, !1, i32 12, !"clang version 3.6.0 ", i1 false, !"", i32 0, !2, !2, !2, !2, !2, !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] +!1 = !{!"empty.c", !"/a"} +!2 = !{} +!3 = !{i32 2, !"Dwarf Version", i32 4} +!4 = !{i32 2, !"Debug Info Version", i32 1} +!5 = !{!"clang version 3.6.0 "} diff --git a/test/DebugInfo/AArch64/big-endian.ll b/test/DebugInfo/AArch64/big-endian.ll index 8391d44..79e38c4 100644 --- a/test/DebugInfo/AArch64/big-endian.ll +++ b/test/DebugInfo/AArch64/big-endian.ll @@ -9,14 +9,14 @@ target triple = "aarch64_be--none-eabi" !llvm.module.flags = !{!8, !9} !llvm.ident = !{!10} -!0 = metadata !{metadata !"0x11\0012\00clang version 3.6.0 \001\00\000\00\001", metadata !1, metadata !2, metadata !2, metadata !2, metadata !3, metadata !2} ; [ DW_TAG_compile_unit ] [/work/validation/-] [DW_LANG_C99] -!1 = metadata !{metadata !"-", metadata !"/work/validation"} -!2 = metadata !{} -!3 = metadata !{metadata !4} -!4 = metadata !{metadata !"0x34\00a\00a\00\001\000\001", null, metadata !5, metadata !7, i32* @a, null} ; [ DW_TAG_variable ] [a] [line 1] [def] -!5 = metadata !{metadata !"0x29", metadata !6} ; [ DW_TAG_file_type ] [/work/validation/<stdin>] -!6 = metadata !{metadata !"<stdin>", metadata !"/work/validation"} -!7 = metadata !{metadata !"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] -!8 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} -!9 = metadata !{i32 2, metadata !"Debug Info Version", i32 2} -!10 = metadata !{metadata !"clang version 3.6.0 "} +!0 = !{!"0x11\0012\00clang version 3.6.0 \001\00\000\00\001", !1, !2, !2, !2, !3, !2} ; [ DW_TAG_compile_unit ] [/work/validation/-] [DW_LANG_C99] +!1 = !{!"-", !"/work/validation"} +!2 = !{} +!3 = !{!4} +!4 = !{!"0x34\00a\00a\00\001\000\001", null, !5, !7, i32* @a, null} ; [ DW_TAG_variable ] [a] [line 1] [def] +!5 = !{!"0x29", !6} ; [ DW_TAG_file_type ] [/work/validation/<stdin>] +!6 = !{!"<stdin>", !"/work/validation"} +!7 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] +!8 = !{i32 2, !"Dwarf Version", i32 4} +!9 = !{i32 2, !"Debug Info Version", i32 2} +!10 = !{!"clang version 3.6.0 "} diff --git a/test/DebugInfo/AArch64/cfi-eof-prologue.ll b/test/DebugInfo/AArch64/cfi-eof-prologue.ll new file mode 100644 index 0000000..2d68af6 --- /dev/null +++ b/test/DebugInfo/AArch64/cfi-eof-prologue.ll @@ -0,0 +1,112 @@ +; struct A { +; A(); +; virtual ~A(); +; }; +; struct B : A { +; B(); +; virtual ~B(); +; }; +; B::B() {} +; CHECK: __ZN1BC1Ev: +; CHECK: .loc 1 [[@LINE-2]] 0 prologue_end +; CHECK-NOT: .loc 1 0 0 prologue_end + +; The location of the prologue_end marker should not be affected by the presence +; of CFI instructions. + +; RUN: llc -O0 -filetype=asm < %s | FileCheck %s + +; ModuleID = 'test1.cpp' +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" +target triple = "aarch64-apple-ios" + +%struct.B = type { %struct.A } +%struct.A = type { i32 (...)** } + +@_ZTV1B = external unnamed_addr constant [4 x i8*] + +; Function Attrs: nounwind +define %struct.B* @_ZN1BC2Ev(%struct.B* %this) unnamed_addr #0 align 2 { +entry: + tail call void @llvm.dbg.value(metadata %struct.B* %this, i64 0, metadata !30, metadata !38), !dbg !39 + %0 = getelementptr inbounds %struct.B* %this, i64 0, i32 0, !dbg !40 + %call = tail call %struct.A* @_ZN1AC2Ev(%struct.A* %0) #3, !dbg !40 + %1 = getelementptr inbounds %struct.B* %this, i64 0, i32 0, i32 0, !dbg !40 + store i32 (...)** bitcast (i8** getelementptr inbounds ([4 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**), i32 (...)*** %1, align 8, !dbg !40, !tbaa !41 + ret %struct.B* %this, !dbg !40 +} + +declare %struct.A* @_ZN1AC2Ev(%struct.A*) + +; Function Attrs: nounwind +define %struct.B* @_ZN1BC1Ev(%struct.B* %this) unnamed_addr #0 align 2 { +entry: + tail call void @llvm.dbg.value(metadata %struct.B* %this, i64 0, metadata !34, metadata !38), !dbg !44 + tail call void @llvm.dbg.value(metadata %struct.B* %this, i64 0, metadata !45, metadata !38) #3, !dbg !47 + %0 = getelementptr inbounds %struct.B* %this, i64 0, i32 0, !dbg !48 + %call.i = tail call %struct.A* @_ZN1AC2Ev(%struct.A* %0) #3, !dbg !48 + %1 = getelementptr inbounds %struct.B* %this, i64 0, i32 0, i32 0, !dbg !48 + store i32 (...)** bitcast (i8** getelementptr inbounds ([4 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**), i32 (...)*** %1, align 8, !dbg !48, !tbaa !41 + ret %struct.B* %this, !dbg !46 +} + +; Function Attrs: nounwind readnone +declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #2 + +attributes #0 = { nounwind } +attributes #2 = { nounwind readnone } +attributes #3 = { nounwind } + +!llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!35, !36} +!llvm.ident = !{!37} + +!0 = !{!"0x11\004\00clang version 3.6.0 (trunk 224279) (llvm/trunk 224283)\001\00\000\00\001", !1, !2, !3, !27, !2, !2} ; [ DW_TAG_compile_unit ] [<stdin>] [DW_LANG_C_plus_plus] +!1 = !{!"<stdin>", !""} +!2 = !{} +!3 = !{!4, !13} +!4 = !{!"0x13\00B\005\0064\0064\000\000\000", !5, null, null, !6, !"_ZTS1A", null, !"_ZTS1B"} ; [ DW_TAG_structure_type ] [B] [line 5, size 64, align 64, offset 0] [def] [from ] +!5 = !{!"test1.cpp", !""} +!6 = !{!7, !8, !12} +!7 = !{!"0x1c\00\000\000\000\000\000", null, !"_ZTS1B", !"_ZTS1A"} ; [ DW_TAG_inheritance ] [line 0, size 0, align 0, offset 0] [from _ZTS1A] +!8 = !{!"0x2e\00B\00B\00\006\000\000\000\000\00256\001\006", !5, !"_ZTS1B", !9, null, null, null, null, null} ; [ DW_TAG_subprogram ] [line 6] [B] +!9 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !10, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!10 = !{null, !11} +!11 = !{!"0xf\00\000\0064\0064\000\001088\00", null, null, !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1B] +!12 = !{!"0x2e\00~B\00~B\00\007\000\000\001\000\00256\001\007", !5, !"_ZTS1B", !9, !"_ZTS1B", null, null, null, null} ; [ DW_TAG_subprogram ] [line 7] [~B] +!13 = !{!"0x13\00A\001\0064\0064\000\000\000", !5, null, null, !14, !"_ZTS1A", null, !"_ZTS1A"} ; [ DW_TAG_structure_type ] [A] [line 1, size 64, align 64, offset 0] [def] [from ] +!14 = !{!15, !22, !26} +!15 = !{!"0xd\00_vptr$A\000\0064\000\000\0064", !5, !16, !17} ; [ DW_TAG_member ] [_vptr$A] [line 0, size 64, align 0, offset 0] [artificial] [from ] +!16 = !{!"0x29", !5} ; [ DW_TAG_file_type ] [test1.cpp] +!17 = !{!"0xf\00\000\0064\000\000\000", null, null, !18} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 0, offset 0] [from __vtbl_ptr_type] +!18 = !{!"0xf\00__vtbl_ptr_type\000\0064\000\000\000", null, null, !19} ; [ DW_TAG_pointer_type ] [__vtbl_ptr_type] [line 0, size 64, align 0, offset 0] [from ] +!19 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !20, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!20 = !{!21} +!21 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] +!22 = !{!"0x2e\00A\00A\00\002\000\000\000\000\00256\001\002", !5, !"_ZTS1A", !23, null, null, null, null, null} ; [ DW_TAG_subprogram ] [line 2] [A] +!23 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !24, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!24 = !{null, !25} +!25 = !{!"0xf\00\000\0064\0064\000\001088\00", null, null, !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A] +!26 = !{!"0x2e\00~A\00~A\00\003\000\000\001\000\00256\001\003", !5, !"_ZTS1A", !23, !"_ZTS1A", null, null, null, null} ; [ DW_TAG_subprogram ] [line 3] [~A] +!27 = !{!28, !32} +!28 = !{!"0x2e\00B\00B\00_ZN1BC2Ev\009\000\001\000\000\00256\001\009", !5, !"_ZTS1B", !9, null, %struct.B* (%struct.B*)* @_ZN1BC2Ev, null, !8, !29} ; [ DW_TAG_subprogram ] [line 9] [def] [B] +!29 = !{!30} +!30 = !{!"0x101\00this\0016777216\001088", !28, null, !31} ; [ DW_TAG_arg_variable ] [this] [line 0] +!31 = !{!"0xf\00\000\0064\0064\000\000", null, null, !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from _ZTS1B] +!32 = !{!"0x2e\00B\00B\00_ZN1BC1Ev\009\000\001\000\000\00256\001\009", !5, !"_ZTS1B", !9, null, %struct.B* (%struct.B*)* @_ZN1BC1Ev, null, !8, !33} ; [ DW_TAG_subprogram ] [line 9] [def] [B] +!33 = !{!34} +!34 = !{!"0x101\00this\0016777216\001088", !32, null, !31} ; [ DW_TAG_arg_variable ] [this] [line 0] +!35 = !{i32 2, !"Dwarf Version", i32 4} +!36 = !{i32 2, !"Debug Info Version", i32 2} +!37 = !{!"clang version 3.6.0 (trunk 224279) (llvm/trunk 224283)"} +!38 = !{!"0x102"} ; [ DW_TAG_expression ] +!39 = !MDLocation(line: 0, scope: !28) +!40 = !MDLocation(line: 9, scope: !28) +!41 = !{!42, !42, i64 0} +!42 = !{!"vtable pointer", !43, i64 0} +!43 = !{!"Simple C/C++ TBAA"} +!44 = !MDLocation(line: 0, scope: !32) +!45 = !{!"0x101\00this\0016777216\001088", !28, null, !31, !46} ; [ DW_TAG_arg_variable ] [this] [line 0] +!46 = !MDLocation(line: 9, scope: !32) +!47 = !MDLocation(line: 0, scope: !28, inlinedAt: !46) +!48 = !MDLocation(line: 9, scope: !28, inlinedAt: !46) diff --git a/test/DebugInfo/AArch64/coalescing.ll b/test/DebugInfo/AArch64/coalescing.ll new file mode 100644 index 0000000..35bb041 --- /dev/null +++ b/test/DebugInfo/AArch64/coalescing.ll @@ -0,0 +1,65 @@ +; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - | FileCheck %s +; +; Generated at -Os from: +; void *foo(void *dst); +; void start() { +; unsigned size; +; foo(&size); +; if (size != 0) { // Work around a bug to preserve the dbg.value. +; } +; } + +; ModuleID = 'test1.cpp' +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" +target triple = "arm64-apple-ios" + +; Function Attrs: nounwind optsize +define void @_Z5startv() #0 { +entry: + %size = alloca i32, align 4 + %0 = bitcast i32* %size to i8*, !dbg !15 + %call = call i8* @_Z3fooPv(i8* %0) #3, !dbg !15 + call void @llvm.dbg.value(metadata i32* %size, i64 0, metadata !10, metadata !16), !dbg !17 + ; CHECK: .debug_info contents: + ; CHECK: DW_TAG_variable + ; CHECK-NEXT: DW_AT_location + ; CHECK-NEXT: DW_AT_name {{.*}}"size" + ; CHECK: .debug_loc contents: + ; CHECK: Location description: 70 00 + ret void, !dbg !18 +} + +; Function Attrs: optsize +declare i8* @_Z3fooPv(i8*) #1 + +; Function Attrs: nounwind readnone +declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #2 + +attributes #0 = { nounwind optsize } +attributes #1 = { optsize } +attributes #2 = { nounwind readnone } +attributes #3 = { nounwind optsize } + +!llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!12, !13} +!llvm.ident = !{!14} + +!0 = !{!"0x11\004\00clang version 3.6.0 (trunk 223149) (llvm/trunk 223115)\001\00\000\00\001", !1, !2, !2, !3, !2, !2} ; [ DW_TAG_compile_unit ] [<stdin>] [DW_LANG_C_plus_plus] +!1 = !{!"<stdin>", !""} +!2 = !{} +!3 = !{!4} +!4 = !{!"0x2e\00start\00start\00_Z5startv\002\000\001\000\000\00256\001\003", !5, !6, !7, null, void ()* @_Z5startv, null, null, !9} ; [ DW_TAG_subprogram ] [line 2] [def] [scope 3] [start] +!5 = !{!"test1.c", !""} +!6 = !{!"0x29", !5} ; [ DW_TAG_file_type ] [/test1.c] +!7 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !8, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!8 = !{null} +!9 = !{!10} +!10 = !{!"0x100\00size\004\000", !4, !6, !11} ; [ DW_TAG_auto_variable ] [size] [line 4] +!11 = !{!"0x24\00unsigned int\000\0032\0032\000\000\007", null, null} ; [ DW_TAG_base_type ] [unsigned int] [line 0, size 32, align 32, offset 0, enc DW_ATE_unsigned] +!12 = !{i32 2, !"Dwarf Version", i32 2} +!13 = !{i32 2, !"Debug Info Version", i32 2} +!14 = !{!"clang version 3.6.0 (trunk 223149) (llvm/trunk 223115)"} +!15 = !MDLocation(line: 5, column: 3, scope: !4) +!16 = !{!"0x102"} ; [ DW_TAG_expression ] +!17 = !MDLocation(line: 4, column: 12, scope: !4) +!18 = !MDLocation(line: 8, column: 1, scope: !4) diff --git a/test/DebugInfo/AArch64/dwarfdump.ll b/test/DebugInfo/AArch64/dwarfdump.ll index e9dd428..cba18b2 100644 --- a/test/DebugInfo/AArch64/dwarfdump.ll +++ b/test/DebugInfo/AArch64/dwarfdump.ll @@ -27,14 +27,14 @@ attributes #0 = { nounwind } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!10} -!0 = metadata !{metadata !"0x11\0012\00clang version 3.3 \000\00\000\00\000", metadata !9, metadata !1, metadata !1, metadata !2, metadata !1, metadata !1} ; [ DW_TAG_compile_unit ] [/home/timnor01/llvm/build/tmp.c] [DW_LANG_C99] -!1 = metadata !{} -!2 = metadata !{metadata !3} -!3 = metadata !{metadata !"0x2e\00main\00main\00\001\000\001\000\006\000\000\001", metadata !9, metadata !4, metadata !5, null, i32 ()* @main, null, null, metadata !1} ; [ DW_TAG_subprogram ] [line 1] [def] [main] -!4 = metadata !{metadata !"0x29", metadata !9} ; [ DW_TAG_file_type ] -!5 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", null, null, null, metadata !6, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] -!6 = metadata !{metadata !7} -!7 = metadata !{metadata !"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] -!8 = metadata !{i32 2, i32 0, metadata !3, null} -!9 = metadata !{metadata !"tmp.c", metadata !"/home/tim/llvm/build"} -!10 = metadata !{i32 1, metadata !"Debug Info Version", i32 2} +!0 = !{!"0x11\0012\00clang version 3.3 \000\00\000\00\000", !9, !1, !1, !2, !1, !1} ; [ DW_TAG_compile_unit ] [/home/timnor01/llvm/build/tmp.c] [DW_LANG_C99] +!1 = !{} +!2 = !{!3} +!3 = !{!"0x2e\00main\00main\00\001\000\001\000\006\000\000\001", !9, !4, !5, null, i32 ()* @main, null, null, !1} ; [ DW_TAG_subprogram ] [line 1] [def] [main] +!4 = !{!"0x29", !9} ; [ DW_TAG_file_type ] +!5 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !6, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!6 = !{!7} +!7 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] +!8 = !MDLocation(line: 2, scope: !3) +!9 = !{!"tmp.c", !"/home/tim/llvm/build"} +!10 = !{i32 1, !"Debug Info Version", i32 2} diff --git a/test/DebugInfo/AArch64/frameindices.ll b/test/DebugInfo/AArch64/frameindices.ll new file mode 100644 index 0000000..5e00d10 --- /dev/null +++ b/test/DebugInfo/AArch64/frameindices.ll @@ -0,0 +1,257 @@ +; RUN: llc -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; Test that a variable with multiple entries in the MMI table makes it into the +; debug info. +; +; CHECK: DW_TAG_inlined_subroutine +; CHECK: "_Z3f111A" +; CHECK: DW_TAG_formal_parameter +; CHECK: DW_AT_location [DW_FORM_block1] (<0x0b> 91 51 9d 78 08 91 4a 9d 38 88 01 ) +; -- fbreg -47, bit-piece 120 8 , fbreg -54, bit-piece 56 136 ------^ +; CHECK: DW_AT_abstract_origin {{.*}} "p1" +; +; long a; +; struct A { +; bool x4; +; void *x5; +; bool x6; +; }; +; int *b; +; struct B { +; B(long); +; ~B(); +; }; +; void f9(A); +; void f13(A p1) { +; b = (int *)__builtin_operator_new(a); +; f9(p1); +; } +; void f11(A p1) { f13(p1); } +; void f16() { +; A c; +; B d(a); +; c.x6 = c.x4 = true; +; f11(c); +; } +; ModuleID = 'test.cpp' +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" +target triple = "aarch64-apple-ios" + +%struct.A = type { i8, i8*, i8 } +%struct.B = type { i8 } + +@a = global i64 0, align 8 +@b = global i32* null, align 8 + +define void @_Z3f131A(%struct.A* nocapture readonly %p1) #0 { +entry: + %agg.tmp = alloca %struct.A, align 8 + tail call void @llvm.dbg.declare(metadata %struct.A* %p1, metadata !30, metadata !46), !dbg !47 + %0 = load i64* @a, align 8, !dbg !48, !tbaa !49 + %call = tail call noalias i8* @_Znwm(i64 %0) #5, !dbg !53 + store i8* %call, i8** bitcast (i32** @b to i8**), align 8, !dbg !54, !tbaa !55 + %1 = getelementptr inbounds %struct.A* %agg.tmp, i64 0, i32 0, !dbg !57 + %2 = getelementptr inbounds %struct.A* %p1, i64 0, i32 0, !dbg !57 + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 24, i32 8, i1 false), !dbg !57, !tbaa.struct !58 + call void @_Z2f91A(%struct.A* %agg.tmp), !dbg !61 + ret void, !dbg !62 +} + +; Function Attrs: nounwind readnone +declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 + +; Function Attrs: nobuiltin +declare noalias i8* @_Znwm(i64) #2 + +declare void @_Z2f91A(%struct.A*) #0 + +; Function Attrs: nounwind +declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1) #3 + +define void @_Z3f111A(%struct.A* nocapture readonly %p1) #0 { +entry: + %agg.tmp.i = alloca %struct.A, align 8 + tail call void @llvm.dbg.declare(metadata %struct.A* %p1, metadata !33, metadata !46), !dbg !63 + %0 = getelementptr inbounds %struct.A* %p1, i64 0, i32 0, !dbg !64 + %1 = getelementptr inbounds %struct.A* %agg.tmp.i, i64 0, i32 0, !dbg !65 + call void @llvm.lifetime.start(i64 24, i8* %1), !dbg !65 + %2 = load i64* @a, align 8, !dbg !67, !tbaa !49 + %call.i = tail call noalias i8* @_Znwm(i64 %2) #5, !dbg !68 + store i8* %call.i, i8** bitcast (i32** @b to i8**), align 8, !dbg !69, !tbaa !55 + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %0, i64 24, i32 8, i1 false), !dbg !70 + call void @_Z2f91A(%struct.A* %agg.tmp.i), !dbg !71 + call void @llvm.lifetime.end(i64 24, i8* %1), !dbg !72 + ret void, !dbg !73 +} + +define void @_Z3f16v() #0 { +entry: + %agg.tmp.i.i = alloca %struct.A, align 8 + %d = alloca %struct.B, align 1 + %agg.tmp.sroa.2 = alloca [15 x i8], align 1 + %agg.tmp.sroa.4 = alloca [7 x i8], align 1 + tail call void @llvm.dbg.declare(metadata [15 x i8]* %agg.tmp.sroa.2, metadata !74, metadata !76), !dbg !77 + tail call void @llvm.dbg.declare(metadata [7 x i8]* %agg.tmp.sroa.4, metadata !74, metadata !78), !dbg !77 + tail call void @llvm.dbg.declare(metadata %struct.A* undef, metadata !38, metadata !79), !dbg !80 + %0 = load i64* @a, align 8, !dbg !81, !tbaa !49 + tail call void @llvm.dbg.value(metadata %struct.B* %d, i64 0, metadata !39, metadata !79), !dbg !82 + %call = call %struct.B* @_ZN1BC1El(%struct.B* %d, i64 %0), !dbg !82 + call void @llvm.dbg.value(metadata i8 1, i64 0, metadata !38, metadata !83), !dbg !80 + call void @llvm.dbg.value(metadata i8 1, i64 0, metadata !38, metadata !84), !dbg !80 + call void @llvm.dbg.value(metadata i8 1, i64 0, metadata !74, metadata !83), !dbg !77 + call void @llvm.dbg.value(metadata i8 1, i64 0, metadata !74, metadata !84), !dbg !77 + call void @llvm.dbg.declare(metadata %struct.A* undef, metadata !74, metadata !46), !dbg !77 + %1 = getelementptr inbounds %struct.A* %agg.tmp.i.i, i64 0, i32 0, !dbg !85 + call void @llvm.lifetime.start(i64 24, i8* %1), !dbg !85 + %2 = load i64* @a, align 8, !dbg !87, !tbaa !49 + %call.i.i5 = invoke noalias i8* @_Znwm(i64 %2) #5 + to label %call.i.i.noexc unwind label %lpad, !dbg !88 + +call.i.i.noexc: ; preds = %entry + %agg.tmp.sroa.4.17..sroa_idx = getelementptr inbounds [7 x i8]* %agg.tmp.sroa.4, i64 0, i64 0, !dbg !89 + %agg.tmp.sroa.2.1..sroa_idx = getelementptr inbounds [15 x i8]* %agg.tmp.sroa.2, i64 0, i64 0, !dbg !89 + store i8* %call.i.i5, i8** bitcast (i32** @b to i8**), align 8, !dbg !90, !tbaa !55 + store i8 1, i8* %1, align 8, !dbg !91 + %agg.tmp.sroa.2.0..sroa_raw_idx = getelementptr inbounds i8* %1, i64 1, !dbg !91 + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %agg.tmp.sroa.2.0..sroa_raw_idx, i8* %agg.tmp.sroa.2.1..sroa_idx, i64 15, i32 1, i1 false), !dbg !91 + %agg.tmp.sroa.3.0..sroa_idx = getelementptr inbounds %struct.A* %agg.tmp.i.i, i64 0, i32 2, !dbg !91 + store i8 1, i8* %agg.tmp.sroa.3.0..sroa_idx, align 8, !dbg !91 + %agg.tmp.sroa.4.0..sroa_raw_idx = getelementptr inbounds i8* %1, i64 17, !dbg !91 + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %agg.tmp.sroa.4.0..sroa_raw_idx, i8* %agg.tmp.sroa.4.17..sroa_idx, i64 7, i32 1, i1 false), !dbg !91 + invoke void @_Z2f91A(%struct.A* %agg.tmp.i.i) + to label %invoke.cont unwind label %lpad, !dbg !92 + +invoke.cont: ; preds = %call.i.i.noexc + call void @llvm.lifetime.end(i64 24, i8* %1), !dbg !93 + call void @llvm.dbg.value(metadata %struct.B* %d, i64 0, metadata !39, metadata !79), !dbg !82 + %call1 = call %struct.B* @_ZN1BD1Ev(%struct.B* %d) #3, !dbg !94 + ret void, !dbg !94 + +lpad: ; preds = %call.i.i.noexc, %entry + %3 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) + cleanup, !dbg !94 + call void @llvm.dbg.value(metadata %struct.B* %d, i64 0, metadata !39, metadata !79), !dbg !82 + %call2 = call %struct.B* @_ZN1BD1Ev(%struct.B* %d) #3, !dbg !94 + resume { i8*, i32 } %3, !dbg !94 +} + +declare %struct.B* @_ZN1BC1El(%struct.B*, i64) + +declare i32 @__gxx_personality_v0(...) + +; Function Attrs: nounwind +declare %struct.B* @_ZN1BD1Ev(%struct.B*) #4 + +; Function Attrs: nounwind readnone +declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1 + +; Function Attrs: nounwind +declare void @llvm.lifetime.start(i64, i8* nocapture) #3 + +; Function Attrs: nounwind +declare void @llvm.lifetime.end(i64, i8* nocapture) #3 + +attributes #1 = { nounwind readnone } +attributes #2 = { nobuiltin } +attributes #3 = { nounwind } +attributes #4 = { nounwind } +attributes #5 = { builtin } + +!llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!43, !44} +!llvm.ident = !{!45} + +!0 = !{!"0x11\004\00clang version 3.7.0 \001\00\000\00\001", !1, !2, !3, !24, !40, !2} ; [ DW_TAG_compile_unit ] [/<stdin>] [DW_LANG_C_plus_plus] +!1 = !{!"<stdin>", !""} +!2 = !{} +!3 = !{!4, !12, !14} +!4 = !{!"0x13\00A\002\00192\0064\000\000\000", !5, null, null, !6, null, null, !"_ZTS1A"} ; [ DW_TAG_structure_type ] [A] [line 2, size 192, align 64, offset 0] [def] [from ] +!5 = !{!"test.cpp", !""} +!6 = !{!7, !9, !11} +!7 = !{!"0xd\00x4\003\008\008\000\000", !5, !"_ZTS1A", !8} ; [ DW_TAG_member ] [x4] [line 3, size 8, align 8, offset 0] [from bool] +!8 = !{!"0x24\00bool\000\008\008\000\000\002", null, null} ; [ DW_TAG_base_type ] [bool] [line 0, size 8, align 8, offset 0, enc DW_ATE_boolean] +!9 = !{!"0xd\00x5\004\0064\0064\0064\000", !5, !"_ZTS1A", !10} ; [ DW_TAG_member ] [x5] [line 4, size 64, align 64, offset 64] [from ] +!10 = !{!"0xf\00\000\0064\0064\000\000", null, null, null} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ] +!11 = !{!"0xd\00x6\005\008\008\00128\000", !5, !"_ZTS1A", !8} ; [ DW_TAG_member ] [x6] [line 5, size 8, align 8, offset 128] [from bool] +!12 = !{!"0xf\00\000\0064\0064\000\000", null, null, !13} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from int] +!13 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] +!14 = !{!"0x13\00B\008\008\008\000\000\000", !5, null, null, !15, null, null, !"_ZTS1B"} ; [ DW_TAG_structure_type ] [B] [line 8, size 8, align 8, offset 0] [def] [from ] +!15 = !{!16, !21} +!16 = !{!"0x2e\00B\00B\00\009\000\000\000\000\00256\001\009", !5, !"_ZTS1B", !17, null, null, null, null, null} ; [ DW_TAG_subprogram ] [line 9] [B] +!17 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !18, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!18 = !{null, !19, !20} +!19 = !{!"0xf\00\000\0064\0064\000\001088\00", null, null, !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1B] +!20 = !{!"0x24\00long int\000\0064\0064\000\000\005", null, null} ; [ DW_TAG_base_type ] [long int] [line 0, size 64, align 64, offset 0, enc DW_ATE_signed] +!21 = !{!"0x2e\00~B\00~B\00\0010\000\000\000\000\00256\001\0010", !5, !"_ZTS1B", !22, null, null, null, null, null} ; [ DW_TAG_subprogram ] [line 10] [~B] +!22 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !23, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!23 = !{null, !19} +!24 = !{!25, !31, !34} +!25 = !{!"0x2e\00f13\00f13\00_Z3f131A\0013\000\001\000\000\00256\001\0013", !5, !26, !27, null, void (%struct.A*)* @_Z3f131A, null, null, !29} ; [ DW_TAG_subprogram ] [line 13] [def] [f13] +!26 = !{!"0x29", !5} ; [ DW_TAG_file_type ] [/test.cpp] +!27 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !28, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!28 = !{null, !"_ZTS1A"} +!29 = !{!30} +!30 = !{!"0x101\00p1\0016777229\000", !25, !26, !"_ZTS1A"} ; [ DW_TAG_arg_variable ] [p1] [line 13] +!31 = !{!"0x2e\00f11\00f11\00_Z3f111A\0017\000\001\000\000\00256\001\0017", !5, !26, !27, null, void (%struct.A*)* @_Z3f111A, null, null, !32} ; [ DW_TAG_subprogram ] [line 17] [def] [f11] +!32 = !{!33} +!33 = !{!"0x101\00p1\0016777233\000", !31, !26, !"_ZTS1A"} ; [ DW_TAG_arg_variable ] [p1] [line 17] +!34 = !{!"0x2e\00f16\00f16\00_Z3f16v\0018\000\001\000\000\00256\001\0018", !5, !26, !35, null, void ()* @_Z3f16v, null, null, !37} ; [ DW_TAG_subprogram ] [line 18] [def] [f16] +!35 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !36, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!36 = !{null} +!37 = !{!38, !39} +!38 = !{!"0x100\00c\0019\000", !34, !26, !"_ZTS1A"} ; [ DW_TAG_auto_variable ] [c] [line 19] +!39 = !{!"0x100\00d\0020\000", !34, !26, !"_ZTS1B"} ; [ DW_TAG_auto_variable ] [d] [line 20] +!40 = !{!41, !42} +!41 = !{!"0x34\00a\00a\00\001\000\001", null, !26, !20, i64* @a, null} ; [ DW_TAG_variable ] [a] [line 1] [def] +!42 = !{!"0x34\00b\00b\00\007\000\001", null, !26, !12, i32** @b, null} ; [ DW_TAG_variable ] [b] [line 7] [def] +!43 = !{i32 2, !"Dwarf Version", i32 2} +!44 = !{i32 2, !"Debug Info Version", i32 2} +!45 = !{!"clang version 3.7.0 "} +!46 = !{!"0x102\006"} ; [ DW_TAG_expression ] [DW_OP_deref] +!47 = !MDLocation(line: 13, column: 12, scope: !25) +!48 = !MDLocation(line: 14, column: 37, scope: !25) +!49 = !{!50, !50, i64 0} +!50 = !{!"long", !51, i64 0} +!51 = !{!"omnipotent char", !52, i64 0} +!52 = !{!"Simple C/C++ TBAA"} +!53 = !MDLocation(line: 14, column: 14, scope: !25) +!54 = !MDLocation(line: 14, column: 5, scope: !25) +!55 = !{!56, !56, i64 0} +!56 = !{!"any pointer", !51, i64 0} +!57 = !MDLocation(line: 15, column: 6, scope: !25) +!58 = !{i64 0, i64 1, !59, i64 8, i64 8, !55, i64 16, i64 1, !59} +!59 = !{!60, !60, i64 0} +!60 = !{!"bool", !51, i64 0} +!61 = !MDLocation(line: 15, column: 3, scope: !25) +!62 = !MDLocation(line: 16, column: 1, scope: !25) +!63 = !MDLocation(line: 17, column: 12, scope: !31) +!64 = !MDLocation(line: 17, column: 22, scope: !31) +!65 = !MDLocation(line: 13, column: 12, scope: !25, inlinedAt: !66) +!66 = distinct !MDLocation(line: 17, column: 18, scope: !31) +!67 = !MDLocation(line: 14, column: 37, scope: !25, inlinedAt: !66) +!68 = !MDLocation(line: 14, column: 14, scope: !25, inlinedAt: !66) +!69 = !MDLocation(line: 14, column: 5, scope: !25, inlinedAt: !66) +!70 = !MDLocation(line: 15, column: 6, scope: !25, inlinedAt: !66) +!71 = !MDLocation(line: 15, column: 3, scope: !25, inlinedAt: !66) +!72 = !MDLocation(line: 16, column: 1, scope: !25, inlinedAt: !66) +!73 = !MDLocation(line: 17, column: 27, scope: !31) +!74 = !{!"0x101\00p1\0016777233\000", !31, !26, !"_ZTS1A", !75} ; [ DW_TAG_arg_variable ] [p1] [line 17] +!75 = distinct !MDLocation(line: 22, column: 3, scope: !34) +!76 = !{!"0x102\00157\008\00120"} ; [ DW_TAG_expression ] [DW_OP_bit_piece offset=8, size=120] +!77 = !MDLocation(line: 17, column: 12, scope: !31, inlinedAt: !75) +!78 = !{!"0x102\00157\00136\0056"} ; [ DW_TAG_expression ] [DW_OP_bit_piece offset=136, size=56] +!79 = !{!"0x102"} ; [ DW_TAG_expression ] +!80 = !MDLocation(line: 19, column: 5, scope: !34) +!81 = !MDLocation(line: 20, column: 7, scope: !34) +!82 = !MDLocation(line: 20, column: 5, scope: !34) +!83 = !{!"0x102\00157\000\008"} ; [ DW_TAG_expression ] [DW_OP_bit_piece offset=0, size=8] +!84 = !{!"0x102\00157\00128\008"} ; [ DW_TAG_expression ] [DW_OP_bit_piece offset=128, size=8] +!85 = !MDLocation(line: 13, column: 12, scope: !25, inlinedAt: !86) +!86 = distinct !MDLocation(line: 17, column: 18, scope: !31, inlinedAt: !75) +!87 = !MDLocation(line: 14, column: 37, scope: !25, inlinedAt: !86) +!88 = !MDLocation(line: 14, column: 14, scope: !25, inlinedAt: !86) +!89 = !MDLocation(line: 22, column: 7, scope: !34) +!90 = !MDLocation(line: 14, column: 5, scope: !25, inlinedAt: !86) +!91 = !MDLocation(line: 15, column: 6, scope: !25, inlinedAt: !86) +!92 = !MDLocation(line: 15, column: 3, scope: !25, inlinedAt: !86) +!93 = !MDLocation(line: 16, column: 1, scope: !25, inlinedAt: !86) +!94 = !MDLocation(line: 23, column: 1, scope: !34) diff --git a/test/DebugInfo/AArch64/little-endian-dump.ll b/test/DebugInfo/AArch64/little-endian-dump.ll index 5c7f336..65330c9 100644 --- a/test/DebugInfo/AArch64/little-endian-dump.ll +++ b/test/DebugInfo/AArch64/little-endian-dump.ll @@ -8,9 +8,9 @@ target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" !llvm.module.flags = !{!3, !4} !llvm.ident = !{!5} -!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] -!1 = metadata !{metadata !"empty.c", metadata !"/a"} -!2 = metadata !{} -!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} -!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1} -!5 = metadata !{metadata !"clang version 3.6.0 "} +!0 = !{i32 786449, !1, i32 12, !"clang version 3.6.0 ", i1 false, !"", i32 0, !2, !2, !2, !2, !2, !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] +!1 = !{!"empty.c", !"/a"} +!2 = !{} +!3 = !{i32 2, !"Dwarf Version", i32 4} +!4 = !{i32 2, !"Debug Info Version", i32 1} +!5 = !{!"clang version 3.6.0 "} diff --git a/test/DebugInfo/AArch64/processes-relocations.ll b/test/DebugInfo/AArch64/processes-relocations.ll index 5ce9262..1a9dfd7 100644 --- a/test/DebugInfo/AArch64/processes-relocations.ll +++ b/test/DebugInfo/AArch64/processes-relocations.ll @@ -7,9 +7,9 @@ !llvm.module.flags = !{!3, !4} !llvm.ident = !{!5} -!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] -!1 = metadata !{metadata !"empty.c", metadata !"/a"} -!2 = metadata !{} -!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} -!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1} -!5 = metadata !{metadata !"clang version 3.6.0 "} +!0 = !{i32 786449, !1, i32 12, !"clang version 3.6.0 ", i1 false, !"", i32 0, !2, !2, !2, !2, !2, !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99] +!1 = !{!"empty.c", !"/a"} +!2 = !{} +!3 = !{i32 2, !"Dwarf Version", i32 4} +!4 = !{i32 2, !"Debug Info Version", i32 1} +!5 = !{!"clang version 3.6.0 "} diff --git a/test/DebugInfo/AArch64/struct_by_value.ll b/test/DebugInfo/AArch64/struct_by_value.ll index b9adb45..9996d27 100644 --- a/test/DebugInfo/AArch64/struct_by_value.ll +++ b/test/DebugInfo/AArch64/struct_by_value.ll @@ -32,7 +32,7 @@ target triple = "arm64-apple-ios3.0.0" ; Function Attrs: nounwind ssp define i32 @return_five_int(%struct.five* %f) #0 { entry: - call void @llvm.dbg.declare(metadata !{%struct.five* %f}, metadata !17, metadata !{metadata !"0x102"}), !dbg !18 + call void @llvm.dbg.declare(metadata %struct.five* %f, metadata !17, metadata !{!"0x102\006"}), !dbg !18 %a = getelementptr inbounds %struct.five* %f, i32 0, i32 0, !dbg !19 %0 = load i32* %a, align 4, !dbg !19 ret i32 %0, !dbg !19 @@ -47,24 +47,24 @@ attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!16, !20} -!0 = metadata !{metadata !"0x11\0012\00LLVM version 3.4 \000\00\000\00\000", metadata !1, metadata !2, metadata !2, metadata !3, metadata !2, metadata !2} ; [ DW_TAG_compile_unit ] [struct_by_value.c] [DW_LANG_C99] -!1 = metadata !{metadata !"struct_by_value.c", metadata !""} -!2 = metadata !{} -!3 = metadata !{metadata !4} -!4 = metadata !{metadata !"0x2e\00return_five_int\00return_five_int\00\0013\000\001\000\006\00256\000\0014", metadata !1, metadata !5, metadata !6, null, i32 (%struct.five*)* @return_five_int, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 13] [def] [scope 14] [return_five_int] -!5 = metadata !{metadata !"0x29", metadata !1} ; [ DW_TAG_file_type ] [struct_by_value.c] -!6 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !7, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] -!7 = metadata !{metadata !8, metadata !9} -!8 = metadata !{metadata !"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] -!9 = metadata !{metadata !"0x13\00five\001\00160\0032\000\000\000", metadata !1, null, null, metadata !10, null, null, null} ; [ DW_TAG_structure_type ] [five] [line 1, size 160, align 32, offset 0] [def] [from ] -!10 = metadata !{metadata !11, metadata !12, metadata !13, metadata !14, metadata !15} -!11 = metadata !{metadata !"0xd\00a\003\0032\0032\000\000", metadata !1, metadata !9, metadata !8} ; [ DW_TAG_member ] [a] [line 3, size 32, align 32, offset 0] [from int] -!12 = metadata !{metadata !"0xd\00b\004\0032\0032\0032\000", metadata !1, metadata !9, metadata !8} ; [ DW_TAG_member ] [b] [line 4, size 32, align 32, offset 32] [from int] -!13 = metadata !{metadata !"0xd\00c\005\0032\0032\0064\000", metadata !1, metadata !9, metadata !8} ; [ DW_TAG_member ] [c] [line 5, size 32, align 32, offset 64] [from int] -!14 = metadata !{metadata !"0xd\00d\006\0032\0032\0096\000", metadata !1, metadata !9, metadata !8} ; [ DW_TAG_member ] [d] [line 6, size 32, align 32, offset 96] [from int] -!15 = metadata !{metadata !"0xd\00e\007\0032\0032\00128\000", metadata !1, metadata !9, metadata !8} ; [ DW_TAG_member ] [e] [line 7, size 32, align 32, offset 128] [from int] -!16 = metadata !{i32 2, metadata !"Dwarf Version", i32 2} -!17 = metadata !{metadata !"0x101\00f\0016777229\008192", metadata !4, metadata !5, metadata !9} ; [ DW_TAG_arg_variable ] [f] [line 13] -!18 = metadata !{i32 13, i32 0, metadata !4, null} -!19 = metadata !{i32 16, i32 0, metadata !4, null} -!20 = metadata !{i32 1, metadata !"Debug Info Version", i32 2} +!0 = !{!"0x11\0012\00LLVM version 3.4 \000\00\000\00\000", !1, !2, !2, !3, !2, !2} ; [ DW_TAG_compile_unit ] [struct_by_value.c] [DW_LANG_C99] +!1 = !{!"struct_by_value.c", !""} +!2 = !{} +!3 = !{!4} +!4 = !{!"0x2e\00return_five_int\00return_five_int\00\0013\000\001\000\006\00256\000\0014", !1, !5, !6, null, i32 (%struct.five*)* @return_five_int, null, null, !2} ; [ DW_TAG_subprogram ] [line 13] [def] [scope 14] [return_five_int] +!5 = !{!"0x29", !1} ; [ DW_TAG_file_type ] [struct_by_value.c] +!6 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !7, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!7 = !{!8, !9} +!8 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] +!9 = !{!"0x13\00five\001\00160\0032\000\000\000", !1, null, null, !10, null, null, null} ; [ DW_TAG_structure_type ] [five] [line 1, size 160, align 32, offset 0] [def] [from ] +!10 = !{!11, !12, !13, !14, !15} +!11 = !{!"0xd\00a\003\0032\0032\000\000", !1, !9, !8} ; [ DW_TAG_member ] [a] [line 3, size 32, align 32, offset 0] [from int] +!12 = !{!"0xd\00b\004\0032\0032\0032\000", !1, !9, !8} ; [ DW_TAG_member ] [b] [line 4, size 32, align 32, offset 32] [from int] +!13 = !{!"0xd\00c\005\0032\0032\0064\000", !1, !9, !8} ; [ DW_TAG_member ] [c] [line 5, size 32, align 32, offset 64] [from int] +!14 = !{!"0xd\00d\006\0032\0032\0096\000", !1, !9, !8} ; [ DW_TAG_member ] [d] [line 6, size 32, align 32, offset 96] [from int] +!15 = !{!"0xd\00e\007\0032\0032\00128\000", !1, !9, !8} ; [ DW_TAG_member ] [e] [line 7, size 32, align 32, offset 128] [from int] +!16 = !{i32 2, !"Dwarf Version", i32 2} +!17 = !{!"0x101\00f\0016777229\000", !4, !5, !9} ; [ DW_TAG_arg_variable ] [f] [line 13] +!18 = !MDLocation(line: 13, scope: !4) +!19 = !MDLocation(line: 16, scope: !4) +!20 = !{i32 1, !"Debug Info Version", i32 2} |