xref: /llvm-project/llvm/test/Bitcode/DIModule-fortran-module.ll (revision e59744fd9b4298c0527163748510a482a942eb54)
1*e59744fdSSourabh Singh Tomar; RUN: llvm-dis -o - %s.bc | FileCheck %s
2*e59744fdSSourabh Singh Tomar
3*e59744fdSSourabh Singh Tomar; CHECK: DIModule(scope: !4, name: "dummy", file: !3, line: 2)
4*e59744fdSSourabh Singh Tomar
5*e59744fdSSourabh Singh Tomar; ModuleID = 'DIModule-fortran-module.bc'
6*e59744fdSSourabh Singh Tomarsource_filename = "/tmp/module-b198fa.ll"
7*e59744fdSSourabh Singh Tomartarget datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8*e59744fdSSourabh Singh Tomartarget triple = "x86_64-unknown-linux-gnu"
9*e59744fdSSourabh Singh Tomar
10*e59744fdSSourabh Singh Tomar%struct_dummy_0_ = type <{ [4 x i8] }>
11*e59744fdSSourabh Singh Tomar
12*e59744fdSSourabh Singh Tomar@_dummy_0_ = common global %struct_dummy_0_ zeroinitializer, align 64, !dbg !0
13*e59744fdSSourabh Singh Tomar
14*e59744fdSSourabh Singh Tomar; Function Attrs: noinline
15*e59744fdSSourabh Singh Tomardefine float @dummy_() #0 {
16*e59744fdSSourabh Singh Tomar.L.entry:
17*e59744fdSSourabh Singh Tomar  ret float undef
18*e59744fdSSourabh Singh Tomar}
19*e59744fdSSourabh Singh Tomar
20*e59744fdSSourabh Singh Tomarattributes #0 = { noinline "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" }
21*e59744fdSSourabh Singh Tomar
22*e59744fdSSourabh Singh Tomar!llvm.module.flags = !{!8, !9}
23*e59744fdSSourabh Singh Tomar!llvm.dbg.cu = !{!4}
24*e59744fdSSourabh Singh Tomar
25*e59744fdSSourabh Singh Tomar!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
26*e59744fdSSourabh Singh Tomar!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, type: !7, isLocal: false, isDefinition: true)
27*e59744fdSSourabh Singh Tomar!2 = !DIModule(scope: !4, name: "dummy", file: !3, line: 2)
28*e59744fdSSourabh Singh Tomar!3 = !DIFile(filename: "module.f90", directory: "/fortran")
29*e59744fdSSourabh Singh Tomar!4 = distinct !DICompileUnit(language: DW_LANG_Fortran90, file: !3, producer: " F90 Flang - 1.5 2017-05-01", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6, imports: !5)
30*e59744fdSSourabh Singh Tomar!5 = !{}
31*e59744fdSSourabh Singh Tomar!6 = !{!0}
32*e59744fdSSourabh Singh Tomar!7 = !DIBasicType(name: "integer", size: 32, align: 32, encoding: DW_ATE_signed)
33*e59744fdSSourabh Singh Tomar!8 = !{i32 2, !"Dwarf Version", i32 4}
34*e59744fdSSourabh Singh Tomar!9 = !{i32 2, !"Debug Info Version", i32 3}
35