Home | History | Annotate | Download | only in Assembler
      1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
      2 ; RUN: verify-uselistorder %s
      3 
      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}
      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}
      6 
      7 ; CHECK:      !0 = !MDSubrange(count: 3)
      8 ; CHECK-NEXT: !1 = !MDSubrange(count: 3, lowerBound: 4)
      9 ; CHECK-NEXT: !2 = !MDSubrange(count: 3, lowerBound: -5)
     10 !0 = !MDSubrange(count: 3)
     11 !1 = !MDSubrange(count: 3, lowerBound: 0)
     12 
     13 !2 = !MDSubrange(count: 3, lowerBound: 4)
     14 !3 = !MDSubrange(count: 3, lowerBound: -5)
     15 
     16 ; CHECK-NEXT: !3 = !MDEnumerator(name: "seven", value: 7)
     17 ; CHECK-NEXT: !4 = !MDEnumerator(name: "negeight", value: -8)
     18 ; CHECK-NEXT: !5 = !MDEnumerator(name: "", value: 0)
     19 !4 = !MDEnumerator(name: "seven", value: 7)
     20 !5 = !MDEnumerator(name: "negeight", value: -8)
     21 !6 = !MDEnumerator(name: "", value: 0)
     22 
     23 ; CHECK-NEXT: !6 = !MDBasicType(name: "name", size: 1, align: 2, encoding: DW_ATE_unsigned_char)
     24 ; CHECK-NEXT: !7 = !MDBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)")
     25 ; CHECK-NEXT: !8 = !MDBasicType()
     26 !7 = !MDBasicType(tag: DW_TAG_base_type, name: "name", size: 1, align: 2, encoding: DW_ATE_unsigned_char)
     27 !8 = !MDBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)")
     28 !9 = !MDBasicType()
     29 !10 = !MDBasicType(tag: DW_TAG_base_type, name: "", size: 0, align: 0, encoding: 0)
     30 
     31 ; CHECK-NEXT: !9 = !MDTemplateTypeParameter(type: !6)
     32 ; CHECK-NEXT: !10 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
     33 ; CHECK-NEXT: !11 = distinct !{}
     34 ; CHECK-NEXT: !12 = !MDFile(filename: "", directory: "")
     35 !11 = !MDTemplateTypeParameter(type: !7)
     36 !12 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
     37 !13 = distinct !{}
     38 !14 = !MDFile(filename: "", directory: "")
     39 
     40 ; CHECK-NEXT: !13 = !MDDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 32, align: 32)
     41 !15 = !MDDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 32, align: 32)
     42 
     43 ; CHECK-NEXT: !14 = !MDCompositeType(tag: DW_TAG_structure_type, name: "MyType", file: !10, line: 2, size: 32, align: 32, identifier: "MangledMyType")
     44 ; CHECK-NEXT: !15 = distinct !MDCompositeType(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")
     45 ; CHECK-NEXT: !16 = !{!17}
     46 ; CHECK-NEXT: !17 = !MDDerivedType(tag: DW_TAG_member, name: "field", scope: !15, file: !10, line: 4, baseType: !6, size: 32, align: 32, offset: 32, flags: DIFlagPublic)
     47 ; CHECK-NEXT: !18 = !{!9}
     48 ; CHECK-NEXT: !19 = !MDCompositeType(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")
     49 ; CHECK-NEXT: !20 = !{!21}
     50 ; CHECK-NEXT: !21 = !MDDerivedType(tag: DW_TAG_inheritance, scope: !19, baseType: !15)
     51 ; CHECK-NEXT: !22 = !MDDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !6, size: 32, align: 32, extraData: !15)
     52 ; CHECK-NEXT: !23 = !MDCompositeType(tag: DW_TAG_structure_type)
     53 ; CHECK-NEXT: !24 = !MDCompositeType(tag: DW_TAG_structure_type, runtimeLang: DW_LANG_Cobol85)
     54 !16 = !MDCompositeType(tag: DW_TAG_structure_type, name: "MyType", file: !12, line: 2, size: 32, align: 32, identifier: "MangledMyType")
     55 !17 = !MDCompositeType(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")
     56 !18 = !{!19}
     57 !19 = !MDDerivedType(tag: DW_TAG_member, name: "field", scope: !17, file: !12, line: 4, baseType: !7, size: 32, align: 32, offset: 32, flags: DIFlagPublic)
     58 !20 = !{!11}
     59 !21 = !MDCompositeType(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")
     60 !22 = !{!23}
     61 !23 = !MDDerivedType(tag: DW_TAG_inheritance, scope: !21, baseType: !17)
     62 !24 = !MDDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !7, size: 32, align: 32, extraData: !17)
     63 !25 = !MDCompositeType(tag: DW_TAG_structure_type)
     64 !26 = !MDCompositeType(tag: DW_TAG_structure_type, runtimeLang: 6)
     65 
     66 ; !25 = !{!7, !7}
     67 ; !26 = !MDSubroutineType(flags: DIFlagPublic | DIFlagStaticMember, types: !25)
     68 ; !27 = !MDSubroutineType(types: !25)
     69 !27 = !{!7, !7}
     70 !28 = !MDSubroutineType(flags: DIFlagPublic | DIFlagStaticMember, types: !27)
     71 !29 = !MDSubroutineType(flags: 0, types: !27)
     72 !30 = !MDSubroutineType(types: !27)
     73