brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 39ada5e Raw
45 lines · plain
1; This test checks attributes of a Fortran module.2; RUN: llc %s -filetype=obj -o - | \3; RUN:   llvm-dwarfdump - | FileCheck %s4 5; CHECK: DW_TAG_module6; CHECK-NEXT: DW_AT_name      ("dummy")7; CHECK-NEXT: DW_AT_decl_file ("/fortran{{[/\\]}}module.f90")8; CHECK-NEXT: DW_AT_decl_line (2)9 10; Generated from flang compiler, Fortran source to regenerate:11; module dummy12;         integer :: foo13; end module dummy14 15; ModuleID = '/tmp/module-b198fa.ll'16source_filename = "/tmp/module-b198fa.ll"17target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"18target triple = "x86_64-unknown-linux-gnu"19 20%struct_dummy_0_ = type <{ [4 x i8] }>21 22@_dummy_0_ = common global %struct_dummy_0_ zeroinitializer, align 64, !dbg !023 24; Function Attrs: noinline25define float @dummy_() #0 {26.L.entry:27  ret float undef28}29 30attributes #0 = { noinline "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" }31 32!llvm.module.flags = !{!8, !9}33!llvm.dbg.cu = !{!3}34 35!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())36!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !4, type: !7, isLocal: false, isDefinition: true)37!2 = !DIModule(scope: !3, name: "dummy", file: !4, line: 2)38!3 = distinct !DICompileUnit(language: DW_LANG_Fortran90, file: !4, producer: " F90 Flang - 1.5 2017-05-01", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6, imports: !5)39!4 = !DIFile(filename: "module.f90", directory: "/fortran")40!5 = !{}41!6 = !{!0}42!7 = !DIBasicType(name: "integer", size: 32, align: 32, encoding: DW_ATE_signed)43!8 = !{i32 2, !"Dwarf Version", i32 4}44!9 = !{i32 2, !"Debug Info Version", i32 3}45