Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/MachineSink-DbgValue.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
1 ; RUN: llc < %s | FileCheck %s | 1 ; RUN: llc < %s | FileCheck %s |
2 ; Should sink matching DBG_VALUEs also. | 2 ; Should sink matching DBG_VALUEs also. |
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" | 3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" |
4 target triple = "x86_64-apple-macosx10.7.0" | 4 target triple = "x86_64-apple-macosx10.7.0" |
5 | 5 |
6 define i32 @foo(i32 %i, i32* nocapture %c) nounwind uwtable readonly ssp { | 6 define i32 @foo(i32 %i, i32* nocapture %c) nounwind uwtable readonly ssp !dbg !1 { |
7 tail call void @llvm.dbg.value(metadata i32 %i, i64 0, metadata !6, metadata !DIExpression()), !dbg !12 | 7 tail call void @llvm.dbg.value(metadata i32 %i, i64 0, metadata !6, metadata !DIExpression()), !dbg !12 |
8 %ab = load i32, i32* %c, align 1, !dbg !14 | 8 %ab = load i32, i32* %c, align 1, !dbg !14 |
9 tail call void @llvm.dbg.value(metadata i32* %c, i64 0, metadata !7, metadata !DIExpression()), !dbg !13 | 9 tail call void @llvm.dbg.value(metadata i32* %c, i64 0, metadata !7, metadata !DIExpression()), !dbg !13 |
10 tail call void @llvm.dbg.value(metadata i32 %ab, i64 0, metadata !10, metadata !DIExpression()), !dbg !14 | 10 tail call void @llvm.dbg.value(metadata i32 %ab, i64 0, metadata !10, metadata !DIExpression()), !dbg !14 |
11 %cd = icmp eq i32 %i, 42, !dbg !15 | 11 %cd = icmp eq i32 %i, 42, !dbg !15 |
27 | 27 |
28 !llvm.dbg.cu = !{!0} | 28 !llvm.dbg.cu = !{!0} |
29 !llvm.module.flags = !{!22} | 29 !llvm.module.flags = !{!22} |
30 | 30 |
31 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)", isOptimized: true, emissionKind: 1, file: !20, enums: !21, retainedTypes: !21, subprograms: !18, imports: null) | 31 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)", isOptimized: true, emissionKind: 1, file: !20, enums: !21, retainedTypes: !21, subprograms: !18, imports: null) |
32 !1 = distinct !DISubprogram(name: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, file: !20, scope: !2, type: !3, function: i32 (i32, i32*)* @foo, variables: !19) | 32 !1 = distinct !DISubprogram(name: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, file: !20, scope: !2, type: !3, variables: !19) |
33 !2 = !DIFile(filename: "a.c", directory: "/private/tmp") | 33 !2 = !DIFile(filename: "a.c", directory: "/private/tmp") |
34 !3 = !DISubroutineType(types: !4) | 34 !3 = !DISubroutineType(types: !4) |
35 !4 = !{!5} | 35 !4 = !{!5} |
36 !5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) | 36 !5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
37 !6 = !DILocalVariable(name: "i", line: 2, arg: 1, scope: !1, file: !2, type: !5) | 37 !6 = !DILocalVariable(name: "i", line: 2, arg: 1, scope: !1, file: !2, type: !5) |
38 !7 = !DILocalVariable(name: "c", line: 2, arg: 2, scope: !1, file: !2, type: !8) | 38 !7 = !DILocalVariable(name: "c", line: 2, arg: 2, scope: !1, file: !2, type: !8) |
39 !8 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, scope: !0, baseType: !9) | 39 !8 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, scope: !0, baseType: !5) |
40 !9 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) | 40 !9 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) |
41 !10 = !DILocalVariable(name: "a", line: 3, scope: !11, file: !2, type: !9) | 41 !10 = !DILocalVariable(name: "a", line: 3, scope: !11, file: !2, type: !5) |
42 !11 = distinct !DILexicalBlock(line: 2, column: 25, file: !20, scope: !1) | 42 !11 = distinct !DILexicalBlock(line: 2, column: 25, file: !20, scope: !1) |
43 !12 = !DILocation(line: 2, column: 13, scope: !1) | 43 !12 = !DILocation(line: 2, column: 13, scope: !1) |
44 !13 = !DILocation(line: 2, column: 22, scope: !1) | 44 !13 = !DILocation(line: 2, column: 22, scope: !1) |
45 !14 = !DILocation(line: 3, column: 14, scope: !11) | 45 !14 = !DILocation(line: 3, column: 14, scope: !11) |
46 !15 = !DILocation(line: 4, column: 3, scope: !11) | 46 !15 = !DILocation(line: 4, column: 3, scope: !11) |