|
| 1 | +; RUN: %apply-typeart --typeart-stack=true < %s -S | %filecheck %s |
| 2 | +; REQUIRES: llvm-14 |
| 3 | + |
| 4 | +; reduced from CAMPICC test/predefined/104_milc_ReproducerError.c |
| 5 | + |
| 6 | +; CHECK-NOT: call void @__typeart_alloc_stack(i8* {{.*}}, i32 1, |
| 7 | + |
| 8 | +define i32 @main() { |
| 9 | +entry: |
| 10 | + %c = alloca i64, i32 0, align 8 |
| 11 | + call void @llvm.dbg.value(metadata i64* %c, metadata !18, metadata !DIExpression()), !dbg !32 |
| 12 | + ret i32 0 |
| 13 | +} |
| 14 | + |
| 15 | +; Function Attrs: nofree nosync nounwind readnone speculatable willreturn |
| 16 | +declare void @llvm.dbg.value(metadata, metadata, metadata) #0 |
| 17 | + |
| 18 | +attributes #0 = { nofree nosync nounwind readnone speculatable willreturn } |
| 19 | +attributes #1 = { argmemonly nofree nosync nounwind willreturn } |
| 20 | + |
| 21 | +!llvm.dbg.cu = !{!0} |
| 22 | +!llvm.module.flags = !{!14, !15, !16, !17} |
| 23 | + |
| 24 | +!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 14.0.6", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, retainedTypes: !2, splitDebugInlining: false, nameTableKind: None) |
| 25 | +!1 = !DIFile(filename: "milc.c", directory: "tudasc-ta2/build", checksumkind: CSK_MD5, checksum: "fd0b55769b199b4db669ed1dc54da6c6") |
| 26 | +!2 = !{!3, !7, !8, !11} |
| 27 | +!3 = !DIDerivedType(tag: DW_TAG_typedef, name: "MPI_Datatype", file: !4, line: 424, baseType: !5) |
| 28 | +!4 = !DIFile(filename: "/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h", directory: "", checksumkind: CSK_MD5, checksum: "58b77b3315301c271bf9a6de605bbb3a") |
| 29 | +!5 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64) |
| 30 | +!6 = !DICompositeType(tag: DW_TAG_structure_type, name: "ompi_datatype_t", file: !4, line: 424, flags: DIFlagFwdDecl) |
| 31 | +!7 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64) |
| 32 | +!8 = !DIDerivedType(tag: DW_TAG_typedef, name: "MPI_Op", file: !4, line: 429, baseType: !9) |
| 33 | +!9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64) |
| 34 | +!10 = !DICompositeType(tag: DW_TAG_structure_type, name: "ompi_op_t", file: !4, line: 429, flags: DIFlagFwdDecl) |
| 35 | +!11 = !DIDerivedType(tag: DW_TAG_typedef, name: "MPI_Comm", file: !4, line: 423, baseType: !12) |
| 36 | +!12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64) |
| 37 | +!13 = !DICompositeType(tag: DW_TAG_structure_type, name: "ompi_communicator_t", file: !4, line: 423, flags: DIFlagFwdDecl) |
| 38 | +!14 = !{i32 7, !"Dwarf Version", i32 5} |
| 39 | +!15 = !{i32 2, !"Debug Info Version", i32 3} |
| 40 | +!16 = !{i32 1, !"wchar_size", i32 4} |
| 41 | +!17 = !{i32 7, !"uwtable", i32 1} |
| 42 | +!18 = !DILocalVariable(name: "cpt", arg: 1, scope: !19, file: !20, line: 11, type: !23) |
| 43 | +!19 = distinct !DISubprogram(name: "g_complexsum", scope: !20, file: !20, line: 11, type: !21, scopeLine: 11, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !30) |
| 44 | +!20 = !DIFile(filename: "test/staging/milc.c", directory: "tudasc-ta2", checksumkind: CSK_MD5, checksum: "fd0b55769b199b4db669ed1dc54da6c6") |
| 45 | +!21 = !DISubroutineType(types: !22) |
| 46 | +!22 = !{null, !23} |
| 47 | +!23 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !24, size: 64) |
| 48 | +!24 = !DIDerivedType(tag: DW_TAG_typedef, name: "complex", file: !20, line: 9, baseType: !25) |
| 49 | +!25 = distinct !DICompositeType(tag: DW_TAG_structure_type, file: !20, line: 6, size: 64, elements: !26) |
| 50 | +!26 = !{!27, !29} |
| 51 | +!27 = !DIDerivedType(tag: DW_TAG_member, name: "imag", scope: !25, file: !20, line: 7, baseType: !28, size: 32) |
| 52 | +!28 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float) |
| 53 | +!29 = !DIDerivedType(tag: DW_TAG_member, name: "real", scope: !25, file: !20, line: 8, baseType: !28, size: 32, offset: 32) |
| 54 | +!30 = !{!18, !31} |
| 55 | +!31 = !DILocalVariable(name: "work", scope: !19, file: !20, line: 12, type: !24) |
| 56 | +!32 = !DILocation(line: 0, scope: !19, inlinedAt: !33) |
| 57 | +!33 = distinct !DILocation(line: 24, column: 3, scope: !34) |
| 58 | +!34 = distinct !DISubprogram(name: "main", scope: !20, file: !20, line: 17, type: !35, scopeLine: 17, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !41) |
| 59 | +!35 = !DISubroutineType(types: !36) |
| 60 | +!36 = !{!37, !37, !38} |
| 61 | +!37 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) |
| 62 | +!38 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !39, size: 64) |
| 63 | +!39 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !40, size: 64) |
| 64 | +!40 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) |
| 65 | +!41 = !{!42, !43, !44, !45} |
| 66 | +!42 = !DILocalVariable(name: "argc", arg: 1, scope: !34, file: !20, line: 17, type: !37) |
| 67 | +!43 = !DILocalVariable(name: "argv", arg: 2, scope: !34, file: !20, line: 17, type: !38) |
| 68 | +!44 = !DILocalVariable(name: "rank", scope: !34, file: !20, line: 19, type: !37) |
| 69 | +!45 = !DILocalVariable(name: "c", scope: !34, file: !20, line: 23, type: !24) |
0 commit comments