Duncan P. N. Exon Smith | b984c49 | 2015-02-13 01:10:38 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s |
| 2 | ; RUN: verify-uselistorder %s |
| 3 | |
Adrian Prantl | c4d1909 | 2018-08-14 19:35:34 +0000 | [diff] [blame] | 4 | ; CHECK: !named = !{!0, !0, !1, !2, !3, !4, !5, !6, !7, !8, !8, !9, !10, !11, !12, !13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26, !27, !27, !28, !29, !30, !31, !32, !33, !34, !35, !36, !37, !38, !39} |
| 5 | !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10, !11, !12, !13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26, !27, !28, !29, !30, !31, !32, !33, !34, !35, !36, !37, !38, !39, !40, !41, !42} |
Duncan P. N. Exon Smith | b984c49 | 2015-02-13 01:10:38 +0000 | [diff] [blame] | 6 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 7 | ; CHECK: !0 = !DISubrange(count: 3) |
| 8 | ; CHECK-NEXT: !1 = !DISubrange(count: 3, lowerBound: 4) |
| 9 | ; CHECK-NEXT: !2 = !DISubrange(count: 3, lowerBound: -5) |
| 10 | !0 = !DISubrange(count: 3) |
| 11 | !1 = !DISubrange(count: 3, lowerBound: 0) |
Duncan P. N. Exon Smith | b984c49 | 2015-02-13 01:10:38 +0000 | [diff] [blame] | 12 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 13 | !2 = !DISubrange(count: 3, lowerBound: 4) |
| 14 | !3 = !DISubrange(count: 3, lowerBound: -5) |
Duncan P. N. Exon Smith | aa7c943 | 2015-02-13 01:14:11 +0000 | [diff] [blame] | 15 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 16 | ; CHECK-NEXT: !3 = !DIEnumerator(name: "seven", value: 7) |
| 17 | ; CHECK-NEXT: !4 = !DIEnumerator(name: "negeight", value: -8) |
| 18 | ; CHECK-NEXT: !5 = !DIEnumerator(name: "", value: 0) |
| 19 | !4 = !DIEnumerator(name: "seven", value: 7) |
| 20 | !5 = !DIEnumerator(name: "negeight", value: -8) |
| 21 | !6 = !DIEnumerator(name: "", value: 0) |
Duncan P. N. Exon Smith | 57b4c15 | 2015-02-13 01:14:58 +0000 | [diff] [blame] | 22 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 23 | ; CHECK-NEXT: !6 = !DIBasicType(name: "name", size: 1, align: 2, encoding: DW_ATE_unsigned_char) |
| 24 | ; CHECK-NEXT: !7 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)") |
| 25 | ; CHECK-NEXT: !8 = !DIBasicType() |
| 26 | !7 = !DIBasicType(tag: DW_TAG_base_type, name: "name", size: 1, align: 2, encoding: DW_ATE_unsigned_char) |
| 27 | !8 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)") |
| 28 | !9 = !DIBasicType() |
| 29 | !10 = !DIBasicType(tag: DW_TAG_base_type, name: "", size: 0, align: 0, encoding: 0) |
Duncan P. N. Exon Smith | 192d9c3 | 2015-02-13 01:19:14 +0000 | [diff] [blame] | 30 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 31 | ; CHECK-NEXT: !9 = !DITemplateTypeParameter(type: !6) |
| 32 | ; CHECK-NEXT: !10 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") |
Duncan P. N. Exon Smith | 99f1269 | 2015-02-20 20:35:17 +0000 | [diff] [blame] | 33 | ; CHECK-NEXT: !11 = distinct !{} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 34 | ; CHECK-NEXT: !12 = !DIFile(filename: "", directory: "") |
| 35 | !11 = !DITemplateTypeParameter(type: !7) |
| 36 | !12 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") |
Duncan P. N. Exon Smith | 99f1269 | 2015-02-20 20:35:17 +0000 | [diff] [blame] | 37 | !13 = distinct !{} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 38 | !14 = !DIFile(filename: "", directory: "") |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 39 | |
Konstantin Zhuravlyov | 2cee5cc | 2017-03-08 23:55:44 +0000 | [diff] [blame] | 40 | ; CHECK-NEXT: !13 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 32, align: 32, dwarfAddressSpace: 1) |
| 41 | !15 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 32, align: 32, dwarfAddressSpace: 1) |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 42 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 43 | ; CHECK-NEXT: !14 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", file: !10, line: 2, size: 32, align: 32, identifier: "MangledMyType") |
| 44 | ; CHECK-NEXT: !15 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Base", scope: !14, file: !10, line: 3, size: 128, align: 32, offset: 64, flags: DIFlagPublic, elements: !16, runtimeLang: DW_LANG_C_plus_plus_11, vtableHolder: !15, templateParams: !18, identifier: "MangledBase") |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 45 | ; CHECK-NEXT: !16 = !{!17} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 46 | ; CHECK-NEXT: !17 = !DIDerivedType(tag: DW_TAG_member, name: "field", scope: !15, file: !10, line: 4, baseType: !6, size: 32, align: 32, offset: 32, flags: DIFlagPublic) |
Duncan P. N. Exon Smith | fe42afc | 2015-04-06 17:04:58 +0000 | [diff] [blame] | 47 | ; CHECK-NEXT: !18 = !{!9} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 48 | ; CHECK-NEXT: !19 = !DICompositeType(tag: DW_TAG_structure_type, name: "Derived", scope: !14, file: !10, line: 3, baseType: !15, size: 128, align: 32, offset: 64, flags: DIFlagPublic, elements: !20, runtimeLang: DW_LANG_C_plus_plus_11, vtableHolder: !15, templateParams: !18, identifier: "MangledBase") |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 49 | ; CHECK-NEXT: !20 = !{!21} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 50 | ; CHECK-NEXT: !21 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !19, baseType: !15) |
| 51 | ; CHECK-NEXT: !22 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !6, size: 32, align: 32, extraData: !15) |
| 52 | ; CHECK-NEXT: !23 = !DICompositeType(tag: DW_TAG_structure_type) |
| 53 | ; CHECK-NEXT: !24 = !DICompositeType(tag: DW_TAG_structure_type, runtimeLang: DW_LANG_Cobol85) |
| 54 | !16 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", file: !12, line: 2, size: 32, align: 32, identifier: "MangledMyType") |
| 55 | !17 = !DICompositeType(tag: DW_TAG_structure_type, name: "Base", scope: !16, file: !12, line: 3, size: 128, align: 32, offset: 64, flags: DIFlagPublic, elements: !18, runtimeLang: DW_LANG_C_plus_plus_11, vtableHolder: !17, templateParams: !20, identifier: "MangledBase") |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 56 | !18 = !{!19} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 57 | !19 = !DIDerivedType(tag: DW_TAG_member, name: "field", scope: !17, file: !12, line: 4, baseType: !7, size: 32, align: 32, offset: 32, flags: DIFlagPublic) |
Duncan P. N. Exon Smith | fe42afc | 2015-04-06 17:04:58 +0000 | [diff] [blame] | 58 | !20 = !{!11} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 59 | !21 = !DICompositeType(tag: DW_TAG_structure_type, name: "Derived", scope: !16, file: !12, line: 3, baseType: !17, size: 128, align: 32, offset: 64, flags: DIFlagPublic, elements: !22, runtimeLang: DW_LANG_C_plus_plus_11, vtableHolder: !17, templateParams: !20, identifier: "MangledBase") |
Duncan P. N. Exon Smith | dacf000 | 2015-02-13 01:20:38 +0000 | [diff] [blame] | 60 | !22 = !{!23} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 61 | !23 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !21, baseType: !17) |
| 62 | !24 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !7, size: 32, align: 32, extraData: !17) |
| 63 | !25 = !DICompositeType(tag: DW_TAG_structure_type) |
| 64 | !26 = !DICompositeType(tag: DW_TAG_structure_type, runtimeLang: 6) |
Duncan P. N. Exon Smith | 1c092c0 | 2015-02-13 01:22:59 +0000 | [diff] [blame] | 65 | |
Amjad Aboud | 7db3980 | 2015-12-10 12:56:35 +0000 | [diff] [blame] | 66 | ; CHECK-NEXT: !25 = !{!6, !6} |
| 67 | ; CHECK-NEXT: !26 = !DISubroutineType(flags: DIFlagPublic | DIFlagStaticMember, types: !25) |
| 68 | ; CHECK-NEXT: !27 = !DISubroutineType(types: !25) |
Duncan P. N. Exon Smith | 1c092c0 | 2015-02-13 01:22:59 +0000 | [diff] [blame] | 69 | !27 = !{!7, !7} |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 70 | !28 = !DISubroutineType(flags: DIFlagPublic | DIFlagStaticMember, types: !27) |
| 71 | !29 = !DISubroutineType(flags: 0, types: !27) |
| 72 | !30 = !DISubroutineType(types: !27) |
Amjad Aboud | 7db3980 | 2015-12-10 12:56:35 +0000 | [diff] [blame] | 73 | |
| 74 | ; CHECK-NEXT: !28 = !DIMacro(type: DW_MACINFO_define, line: 9, name: "Name", value: "Value") |
| 75 | ; CHECK-NEXT: !29 = distinct !{!28} |
| 76 | ; CHECK-NEXT: !30 = !DIMacroFile(line: 9, file: !12, nodes: !29) |
| 77 | ; CHECK-NEXT: !31 = !DIMacroFile(line: 11, file: !12) |
| 78 | !31 = !DIMacro(type: DW_MACINFO_define, line: 9, name: "Name", value: "Value") |
| 79 | !32 = distinct !{!31} |
| 80 | !33 = !DIMacroFile(line: 9, file: !14, nodes: !32) |
| 81 | !34 = !DIMacroFile(type: DW_MACINFO_start_file, line: 11, file: !14) |
Amjad Aboud | 4e2e80b | 2016-12-25 10:12:09 +0000 | [diff] [blame] | 82 | |
| 83 | ; CHECK-NEXT: !32 = !DIFile(filename: "file", directory: "dir", checksumkind: CSK_MD5, checksum: "000102030405060708090a0b0c0d0e0f") |
Amjad Aboud | 4e2e80b | 2016-12-25 10:12:09 +0000 | [diff] [blame] | 84 | !35 = !DIFile(filename: "file", directory: "dir", checksumkind: CSK_MD5, checksum: "000102030405060708090a0b0c0d0e0f") |
Adrian Prantl | 04aa650 | 2018-02-06 23:45:59 +0000 | [diff] [blame] | 85 | |
Jonas Devlieghere | cc1f2a5 | 2018-09-21 12:28:44 +0000 | [diff] [blame] | 86 | ; CHECK-NEXT: !33 = !DICompositeType(tag: DW_TAG_variant_part, name: "A", scope: !14, size: 64, discriminator: !34) |
Scott Linder | 4863252 | 2018-02-12 19:45:54 +0000 | [diff] [blame] | 87 | ; CHECK-NEXT: !34 = !DIDerivedType(tag: DW_TAG_member, scope: !33, baseType: !35, size: 64, align: 64, flags: DIFlagArtificial) |
| 88 | ; CHECK-NEXT: !35 = !DIBasicType(name: "u64", size: 64, encoding: DW_ATE_unsigned) |
| 89 | !36 = !DICompositeType(tag: DW_TAG_variant_part, name: "A", scope: !16, size: 64, discriminator: !37) |
| 90 | !37 = !DIDerivedType(tag: DW_TAG_member, scope: !36, baseType: !38, size: 64, align: 64, flags: DIFlagArtificial) |
| 91 | !38 = !DIBasicType(name: "u64", size: 64, encoding: DW_ATE_unsigned) |
Scott Linder | 5e4b515 | 2018-02-23 23:01:06 +0000 | [diff] [blame] | 92 | |
| 93 | ; CHECK-NEXT: !36 = !DIFile(filename: "file", directory: "dir", source: "int source() { }\0A") |
| 94 | ; CHECK-NEXT: !37 = !DIFile(filename: "file", directory: "dir", checksumkind: CSK_MD5, checksum: "3a420e2646916a475e68de8d48f779f5", source: "int source() { }\0A") |
| 95 | !39 = !DIFile(filename: "file", directory: "dir", source: "int source() { }\0A") |
| 96 | !40 = !DIFile(filename: "file", directory: "dir", checksumkind: CSK_MD5, checksum: "3a420e2646916a475e68de8d48f779f5", source: "int source() { }\0A") |
Adrian Prantl | c4d1909 | 2018-08-14 19:35:34 +0000 | [diff] [blame] | 97 | |
| 98 | ; CHECK-NEXT: !38 = !DIBasicType(name: "u64.be", size: 64, align: 1, encoding: DW_ATE_unsigned, flags: DIFlagBigEndian) |
| 99 | ; CHECK-NEXT: !39 = !DIBasicType(name: "u64.le", size: 64, align: 1, encoding: DW_ATE_unsigned, flags: DIFlagLittleEndian) |
| 100 | !41 = !DIBasicType(name: "u64.be", size: 64, align: 1, encoding: DW_ATE_unsigned, flags: DIFlagBigEndian) |
| 101 | !42 = !DIBasicType(name: "u64.le", size: 64, align: 1, encoding: DW_ATE_unsigned, flags: DIFlagLittleEndian) |