2 source_filename = "hi.c"
3 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
4 target triple = "wasm32-unknown-unknown"
7 ; extern void foo(int);
18 ; Function Attrs: nounwind readnone
19 define hidden i32 @test(i32 %t) local_unnamed_addr #0 !dbg !7 {
21 call void @llvm.dbg.value(metadata i32 %t, metadata !12, metadata !DIExpression()), !dbg !13
22 %mul = mul nsw i32 %t, %t, !dbg !14
23 ret i32 %mul, !dbg !15
26 ; Function Attrs: nounwind
27 define hidden i32 @_start() local_unnamed_addr #1 !dbg !16 {
29 tail call void @foo(i32 100) #4, !dbg !19
33 declare void @foo(i32) local_unnamed_addr #2
35 ; Function Attrs: nounwind readnone speculatable
36 declare void @llvm.dbg.value(metadata, metadata, metadata) #3
38 attributes #0 = { nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
39 attributes #1 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
40 attributes #2 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
41 attributes #3 = { nounwind readnone speculatable }
42 attributes #4 = { nounwind }
45 !llvm.module.flags = !{!3, !4, !5}
48 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 7.0.0 (trunk 331321)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
49 !1 = !DIFile(filename: "hi.c", directory: "/Users/yury/llvmwasm")
51 !3 = !{i32 2, !"Dwarf Version", i32 4}
52 !4 = !{i32 2, !"Debug Info Version", i32 3}
53 !5 = !{i32 1, !"wchar_size", i32 4}
54 !6 = !{!"clang version 7.0.0 (trunk 331321)"}
55 !7 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !11)
56 !8 = !DISubroutineType(types: !9)
58 !10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
60 !12 = !DILocalVariable(name: "t", arg: 1, scope: !7, file: !1, line: 3, type: !10)
61 !13 = !DILocation(line: 3, column: 14, scope: !7)
62 !14 = !DILocation(line: 4, column: 12, scope: !7)
63 !15 = !DILocation(line: 4, column: 3, scope: !7)
64 !16 = distinct !DISubprogram(name: "_start", scope: !1, file: !1, line: 7, type: !17, isLocal: false, isDefinition: true, scopeLine: 7, isOptimized: true, unit: !0, retainedNodes: !2)
65 !17 = !DISubroutineType(types: !18)
67 !19 = !DILocation(line: 8, column: 3, scope: !16)
68 !20 = !DILocation(line: 9, column: 3, scope: !16)