dbg.ll 934 B

123456789101112131415161718192021222324252627
  1. ; RUN: opt < %s -argpromotion -S | FileCheck %s
  2. ; CHECK: call void @test(i32 %
  3. ; CHECK: !DISubprogram(name: "test",{{.*}} function: void (i32)* @test
  4. declare void @sink(i32)
  5. define internal void @test(i32** %X) {
  6. %1 = load i32*, i32** %X, align 8
  7. %2 = load i32, i32* %1, align 8
  8. call void @sink(i32 %2)
  9. ret void
  10. }
  11. define void @caller(i32** %Y) {
  12. call void @test(i32** %Y)
  13. ret void
  14. }
  15. !llvm.module.flags = !{!0}
  16. !llvm.dbg.cu = !{!3}
  17. !0 = !{i32 2, !"Debug Info Version", i32 3}
  18. !1 = !DILocation(line: 8, scope: !2)
  19. !2 = !DISubprogram(name: "test", line: 3, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, scope: null, function: void (i32**)* @test)
  20. !3 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: 2, file: !5, subprograms: !4)
  21. !4 = !{!2}
  22. !5 = !DIFile(filename: "test.c", directory: "")