98 lines · plain
1; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ2 3; This LL file was generated by running 'clang -O1 -g -gcodeview' on the4; following code:5; int volatile x;6; static inline void f() {7; ++x;8; }9; static inline void g() {10; f();11; }12; static inline void h() {13; g();14; }15; int main() {16; h();17; }18 19; OBJ: Subsection [20; OBJ: SubSectionType: Symbols (0xF1)21; OBJ: {{.*}}Proc{{.*}}Sym {22; OBJ: InlineesSym {23; OBJ-NEXT: Kind: S_INLINEES (0x1168)24; OBJ-NEXT: Inlinees [25; OBJ-NEXT: FuncID: h (0x1002)26; OBJ-NEXT: ]27; OBJ-NEXT:}28; OBJ: InlineSiteSym {29; OBJ: Inlinee: h (0x1002)30; OBJ: }31; OBJ: InlineSiteSym {32; OBJ: Inlinee: g (0x1003)33; OBJ: }34; OBJ: InlineSiteSym {35; OBJ: Inlinee: f (0x1004)36; OBJ: }37; OBJ: InlineSiteEnd {38; OBJ: }39; OBJ: InlineSiteEnd {40; OBJ: }41; OBJ: InlineSiteEnd {42; OBJ: }43; OBJ: ProcEnd44; OBJ: ]45 46; ModuleID = 't.cpp'47source_filename = "test/DebugInfo/COFF/inlining-levels.ll"48target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"49target triple = "x86_64-pc-windows-msvc18.0.0"50 51@"\01?x@@3HC" = global i32 0, align 4, !dbg !052 53; Function Attrs: norecurse nounwind uwtable54define i32 @main() #0 !dbg !12 {55entry:56 %0 = load volatile i32, ptr @"\01?x@@3HC", align 4, !dbg !15, !tbaa !2457 %inc.i.i.i = add nsw i32 %0, 1, !dbg !1558 store volatile i32 %inc.i.i.i, ptr @"\01?x@@3HC", align 4, !dbg !15, !tbaa !2459 ret i32 0, !dbg !2860}61 62attributes #0 = { norecurse nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "use-soft-float"="false" }63 64!llvm.dbg.cu = !{!2}65!llvm.module.flags = !{!8, !9, !10}66!llvm.ident = !{!11}67 68!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())69!1 = !DIGlobalVariable(name: "x", linkageName: "\01?x@@3HC", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)70!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 3.9.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)71!3 = !DIFile(filename: "t.cpp", directory: "D:\5Csrc\5Cllvm\5Cbuild")72!4 = !{}73!5 = !{!0}74!6 = !DIDerivedType(tag: DW_TAG_volatile_type, baseType: !7)75!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)76!8 = !{i32 2, !"CodeView", i32 1}77!9 = !{i32 2, !"Debug Info Version", i32 3}78!10 = !{i32 1, !"PIC Level", i32 2}79!11 = !{!"clang version 3.9.0 "}80!12 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 12, type: !13, isLocal: false, isDefinition: true, scopeLine: 12, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !4)81!13 = !DISubroutineType(types: !14)82!14 = !{!7}83!15 = !DILocation(line: 4, column: 3, scope: !16, inlinedAt: !19)84!16 = distinct !DISubprogram(name: "f", linkageName: "\01?f@@YAXXZ", scope: !3, file: !3, line: 2, type: !17, isLocal: true, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !4)85!17 = !DISubroutineType(types: !18)86!18 = !{null}87!19 = distinct !DILocation(line: 7, column: 3, scope: !20, inlinedAt: !21)88!20 = distinct !DISubprogram(name: "g", linkageName: "\01?g@@YAXXZ", scope: !3, file: !3, line: 6, type: !17, isLocal: true, isDefinition: true, scopeLine: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !4)89!21 = distinct !DILocation(line: 10, column: 3, scope: !22, inlinedAt: !23)90!22 = distinct !DISubprogram(name: "h", linkageName: "\01?h@@YAXXZ", scope: !3, file: !3, line: 9, type: !17, isLocal: true, isDefinition: true, scopeLine: 9, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !4)91!23 = distinct !DILocation(line: 13, column: 3, scope: !12)92!24 = !{!25, !25, i64 0}93!25 = !{!"int", !26, i64 0}94!26 = !{!"omnipotent char", !27, i64 0}95!27 = !{!"Simple C/C++ TBAA"}96!28 = !DILocation(line: 14, column: 1, scope: !12)97 98