diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-29 16:38:44 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-29 16:38:44 +0000 |
| commit | a9308c49ef421d5fa6c990bc8cbdf500acbffd33 (patch) | |
| tree | 47dd65fa788567095dea285879afda802522a48d /llvm/test/Transforms/SampleProfile | |
| parent | 753954873832863c045afe09953c67bf21ed7fc5 (diff) | |
| download | bcm5719-llvm-a9308c49ef421d5fa6c990bc8cbdf500acbffd33.tar.gz bcm5719-llvm-a9308c49ef421d5fa6c990bc8cbdf500acbffd33.zip | |
IR: Give 'DI' prefix to debug info metadata
Finish off PR23080 by renaming the debug info IR constructs from `MD*`
to `DI*`. The last of the `DIDescriptor` classes were deleted in
r235356, and the last of the related typedefs removed in r235413, so
this has all baked for about a week.
Note: If you have out-of-tree code (like a frontend), I recommend that
you get everything compiling and tests passing with the *previous*
commit before updating to this one. It'll be easier to keep track of
what code is using the `DIDescriptor` hierarchy and what you've already
updated, and I think you're extremely unlikely to insert bugs. YMMV of
course.
Back to *this* commit: I did this using the rename-md-di-nodes.sh
upgrade script I've attached to PR23080 (both code and testcases) and
filtered through clang-format-diff.py. I edited the tests for
test/Assembler/invalid-generic-debug-node-*.ll by hand since the columns
were off-by-three. It should work on your out-of-tree testcases (and
code, if you've followed the advice in the previous paragraph).
Some of the tests are in badly named files now (e.g.,
test/Assembler/invalid-mdcompositetype-missing-tag.ll should be
'dicompositetype'); I'll come back and move the files in a follow-up
commit.
llvm-svn: 236120
Diffstat (limited to 'llvm/test/Transforms/SampleProfile')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/branch.ll | 76 | ||||
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/calls.ll | 42 | ||||
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/discriminator.ll | 34 | ||||
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/fnptr.ll | 40 | ||||
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/propagate.ll | 76 |
5 files changed, 134 insertions, 134 deletions
diff --git a/llvm/test/Transforms/SampleProfile/branch.ll b/llvm/test/Transforms/SampleProfile/branch.ll index ea41ee161f0..aeb367132aa 100644 --- a/llvm/test/Transforms/SampleProfile/branch.ll +++ b/llvm/test/Transforms/SampleProfile/branch.ll @@ -32,8 +32,8 @@ define i32 @main(i32 %argc, i8** nocapture readonly %argv) #0 { ; CHECK: Printing analysis 'Branch Probability Analysis' for function 'main': entry: - tail call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !13, metadata !MDExpression()), !dbg !27 - tail call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !14, metadata !MDExpression()), !dbg !27 + tail call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !13, metadata !DIExpression()), !dbg !27 + tail call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !14, metadata !DIExpression()), !dbg !27 %cmp = icmp slt i32 %argc, 2, !dbg !28 br i1 %cmp, label %return, label %if.end, !dbg !28 ; CHECK: edge entry -> return probability is 1 / 2 = 50% @@ -43,7 +43,7 @@ if.end: ; preds = %entry %arrayidx = getelementptr inbounds i8*, i8** %argv, i64 1, !dbg !30 %0 = load i8*, i8** %arrayidx, align 8, !dbg !30, !tbaa !31 %call = tail call i32 @atoi(i8* %0) #4, !dbg !30 - tail call void @llvm.dbg.value(metadata i32 %call, i64 0, metadata !17, metadata !MDExpression()), !dbg !30 + tail call void @llvm.dbg.value(metadata i32 %call, i64 0, metadata !17, metadata !DIExpression()), !dbg !30 %cmp1 = icmp sgt i32 %call, 100, !dbg !35 br i1 %cmp1, label %for.body, label %if.end6, !dbg !35 ; CHECK: edge if.end -> for.body probability is 1 / 2 = 50% @@ -55,14 +55,14 @@ for.body: ; preds = %if.end, %for.body %add = fadd double %s.015, 3.049000e+00, !dbg !36 %conv = sitofp i32 %u.016 to double, !dbg !36 %add4 = fadd double %add, %conv, !dbg !36 - tail call void @llvm.dbg.value(metadata double %add4, i64 0, metadata !18, metadata !MDExpression()), !dbg !36 + tail call void @llvm.dbg.value(metadata double %add4, i64 0, metadata !18, metadata !DIExpression()), !dbg !36 %div = fdiv double 3.940000e+00, %s.015, !dbg !37 %mul = fmul double %div, 3.200000e-01, !dbg !37 %add5 = fadd double %add4, %mul, !dbg !37 %sub = fsub double %add4, %add5, !dbg !37 - tail call void @llvm.dbg.value(metadata double %sub, i64 0, metadata !18, metadata !MDExpression()), !dbg !37 + tail call void @llvm.dbg.value(metadata double %sub, i64 0, metadata !18, metadata !DIExpression()), !dbg !37 %inc = add nsw i32 %u.016, 1, !dbg !38 - tail call void @llvm.dbg.value(metadata i32 %inc, i64 0, metadata !21, metadata !MDExpression()), !dbg !38 + tail call void @llvm.dbg.value(metadata i32 %inc, i64 0, metadata !21, metadata !DIExpression()), !dbg !38 %exitcond = icmp eq i32 %inc, %call, !dbg !38 br i1 %exitcond, label %if.end6, label %for.body, !dbg !38 ; CHECK: edge for.body -> if.end6 probability is 1 / 10227 = 0.00977804 @@ -98,46 +98,46 @@ attributes #4 = { nounwind readonly } !llvm.module.flags = !{!25, !42} !llvm.ident = !{!26} -!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.4 (trunk 192896) (llvm/trunk 192895)", isOptimized: true, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) -!1 = !MDFile(filename: "branch.cc", directory: ".") +!0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.4 (trunk 192896) (llvm/trunk 192895)", isOptimized: true, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) +!1 = !DIFile(filename: "branch.cc", directory: ".") !2 = !{} !3 = !{!4} -!4 = !MDSubprogram(name: "main", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 4, file: !1, scope: !5, type: !6, function: i32 (i32, i8**)* @main, variables: !12) -!5 = !MDFile(filename: "branch.cc", directory: ".") -!6 = !MDSubroutineType(types: !7) +!4 = !DISubprogram(name: "main", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 4, file: !1, scope: !5, type: !6, function: i32 (i32, i8**)* @main, variables: !12) +!5 = !DIFile(filename: "branch.cc", directory: ".") +!6 = !DISubroutineType(types: !7) !7 = !{!8, !8, !9} -!8 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) -!9 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !10) -!10 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !11) -!11 = !MDBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) +!8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!9 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !10) +!10 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !11) +!11 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) !12 = !{!13, !14, !15, !17, !18, !21, !23} -!13 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "argc", line: 4, arg: 1, scope: !4, file: !5, type: !8) -!14 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "argv", line: 4, arg: 2, scope: !4, file: !5, type: !9) -!15 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "result", line: 7, scope: !4, file: !5, type: !16) -!16 = !MDBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float) -!17 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "limit", line: 8, scope: !4, file: !5, type: !8) -!18 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "s", line: 10, scope: !19, file: !5, type: !16) -!19 = distinct !MDLexicalBlock(line: 9, column: 0, file: !1, scope: !20) -!20 = distinct !MDLexicalBlock(line: 9, column: 0, file: !1, scope: !4) -!21 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "u", line: 11, scope: !22, file: !5, type: !8) -!22 = distinct !MDLexicalBlock(line: 11, column: 0, file: !1, scope: !19) -!23 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "x", line: 12, scope: !24, file: !5, type: !16) -!24 = distinct !MDLexicalBlock(line: 11, column: 0, file: !1, scope: !22) +!13 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "argc", line: 4, arg: 1, scope: !4, file: !5, type: !8) +!14 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "argv", line: 4, arg: 2, scope: !4, file: !5, type: !9) +!15 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "result", line: 7, scope: !4, file: !5, type: !16) +!16 = !DIBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float) +!17 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "limit", line: 8, scope: !4, file: !5, type: !8) +!18 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "s", line: 10, scope: !19, file: !5, type: !16) +!19 = distinct !DILexicalBlock(line: 9, column: 0, file: !1, scope: !20) +!20 = distinct !DILexicalBlock(line: 9, column: 0, file: !1, scope: !4) +!21 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "u", line: 11, scope: !22, file: !5, type: !8) +!22 = distinct !DILexicalBlock(line: 11, column: 0, file: !1, scope: !19) +!23 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "x", line: 12, scope: !24, file: !5, type: !16) +!24 = distinct !DILexicalBlock(line: 11, column: 0, file: !1, scope: !22) !25 = !{i32 2, !"Dwarf Version", i32 4} !26 = !{!"clang version 3.4 (trunk 192896) (llvm/trunk 192895)"} -!27 = !MDLocation(line: 4, scope: !4) -!28 = !MDLocation(line: 5, scope: !29) -!29 = distinct !MDLexicalBlock(line: 5, column: 0, file: !1, scope: !4) -!30 = !MDLocation(line: 8, scope: !4) +!27 = !DILocation(line: 4, scope: !4) +!28 = !DILocation(line: 5, scope: !29) +!29 = distinct !DILexicalBlock(line: 5, column: 0, file: !1, scope: !4) +!30 = !DILocation(line: 8, scope: !4) !31 = !{!32, !32, i64 0} !32 = !{!"any pointer", !33, i64 0} !33 = !{!"omnipotent char", !34, i64 0} !34 = !{!"Simple C/C++ TBAA"} -!35 = !MDLocation(line: 9, scope: !20) -!36 = !MDLocation(line: 13, scope: !24) -!37 = !MDLocation(line: 14, scope: !24) -!38 = !MDLocation(line: 11, scope: !22) -!39 = !MDLocation(line: 20, scope: !4) -!40 = !MDLocation(line: 21, scope: !4) -!41 = !MDLocation(line: 22, scope: !4) +!35 = !DILocation(line: 9, scope: !20) +!36 = !DILocation(line: 13, scope: !24) +!37 = !DILocation(line: 14, scope: !24) +!38 = !DILocation(line: 11, scope: !22) +!39 = !DILocation(line: 20, scope: !4) +!40 = !DILocation(line: 21, scope: !4) +!41 = !DILocation(line: 22, scope: !4) !42 = !{i32 1, !"Debug Info Version", i32 3} diff --git a/llvm/test/Transforms/SampleProfile/calls.ll b/llvm/test/Transforms/SampleProfile/calls.ll index a484995e39c..a6ad3444d89 100644 --- a/llvm/test/Transforms/SampleProfile/calls.ll +++ b/llvm/test/Transforms/SampleProfile/calls.ll @@ -92,29 +92,29 @@ declare i32 @printf(i8*, ...) #2 !llvm.module.flags = !{!8, !9} !llvm.ident = !{!10} -!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) -!1 = !MDFile(filename: "calls.cc", directory: ".") +!0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) +!1 = !DIFile(filename: "calls.cc", directory: ".") !2 = !{} !3 = !{!4, !7} -!4 = !MDSubprogram(name: "sum", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, function: i32 (i32, i32)* @_Z3sumii, variables: !2) -!5 = !MDFile(filename: "calls.cc", directory: ".") -!6 = !MDSubroutineType(types: !2) -!7 = !MDSubprogram(name: "main", line: 7, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 7, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2) +!4 = !DISubprogram(name: "sum", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, function: i32 (i32, i32)* @_Z3sumii, variables: !2) +!5 = !DIFile(filename: "calls.cc", directory: ".") +!6 = !DISubroutineType(types: !2) +!7 = !DISubprogram(name: "main", line: 7, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 7, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2) !8 = !{i32 2, !"Dwarf Version", i32 4} !9 = !{i32 1, !"Debug Info Version", i32 3} !10 = !{!"clang version 3.5 "} -!11 = !MDLocation(line: 4, scope: !4) -!12 = !MDLocation(line: 8, scope: !7) -!13 = !MDLocation(line: 9, scope: !7) -!14 = !MDLocation(line: 9, scope: !15) -!15 = !MDLexicalBlockFile(discriminator: 1, file: !1, scope: !7) -!16 = !MDLocation(line: 10, scope: !17) -!17 = distinct !MDLexicalBlock(line: 10, column: 0, file: !1, scope: !7) -!18 = !MDLocation(line: 10, scope: !19) -!19 = !MDLexicalBlockFile(discriminator: 1, file: !1, scope: !17) -!20 = !MDLocation(line: 10, scope: !21) -!21 = !MDLexicalBlockFile(discriminator: 2, file: !1, scope: !17) -!22 = !MDLocation(line: 10, scope: !23) -!23 = !MDLexicalBlockFile(discriminator: 3, file: !1, scope: !17) -!24 = !MDLocation(line: 11, scope: !7) -!25 = !MDLocation(line: 12, scope: !7) +!11 = !DILocation(line: 4, scope: !4) +!12 = !DILocation(line: 8, scope: !7) +!13 = !DILocation(line: 9, scope: !7) +!14 = !DILocation(line: 9, scope: !15) +!15 = !DILexicalBlockFile(discriminator: 1, file: !1, scope: !7) +!16 = !DILocation(line: 10, scope: !17) +!17 = distinct !DILexicalBlock(line: 10, column: 0, file: !1, scope: !7) +!18 = !DILocation(line: 10, scope: !19) +!19 = !DILexicalBlockFile(discriminator: 1, file: !1, scope: !17) +!20 = !DILocation(line: 10, scope: !21) +!21 = !DILexicalBlockFile(discriminator: 2, file: !1, scope: !17) +!22 = !DILocation(line: 10, scope: !23) +!23 = !DILexicalBlockFile(discriminator: 3, file: !1, scope: !17) +!24 = !DILocation(line: 11, scope: !7) +!25 = !DILocation(line: 12, scope: !7) diff --git a/llvm/test/Transforms/SampleProfile/discriminator.ll b/llvm/test/Transforms/SampleProfile/discriminator.ll index 1f3a12fc2ba..2445c5c5d60 100644 --- a/llvm/test/Transforms/SampleProfile/discriminator.ll +++ b/llvm/test/Transforms/SampleProfile/discriminator.ll @@ -66,25 +66,25 @@ while.end: ; preds = %while.cond !llvm.module.flags = !{!7, !8} !llvm.ident = !{!9} -!0 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) -!1 = !MDFile(filename: "discriminator.c", directory: ".") +!0 = !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) +!1 = !DIFile(filename: "discriminator.c", directory: ".") !2 = !{} !3 = !{!4} -!4 = !MDSubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: i32 (i32)* @foo, variables: !2) -!5 = !MDFile(filename: "discriminator.c", directory: ".") -!6 = !MDSubroutineType(types: !2) +!4 = !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: i32 (i32)* @foo, variables: !2) +!5 = !DIFile(filename: "discriminator.c", directory: ".") +!6 = !DISubroutineType(types: !2) !7 = !{i32 2, !"Dwarf Version", i32 4} !8 = !{i32 1, !"Debug Info Version", i32 3} !9 = !{!"clang version 3.5 "} -!10 = !MDLocation(line: 2, scope: !4) -!11 = !MDLocation(line: 3, scope: !4) -!12 = !MDLocation(line: 3, scope: !13) -!13 = !MDLexicalBlockFile(discriminator: 1, file: !1, scope: !4) -!14 = !MDLocation(line: 4, scope: !15) -!15 = distinct !MDLexicalBlock(line: 4, column: 0, file: !1, scope: !16) -!16 = distinct !MDLexicalBlock(line: 3, column: 0, file: !1, scope: !4) -!17 = !MDLocation(line: 4, scope: !18) -!18 = !MDLexicalBlockFile(discriminator: 1, file: !1, scope: !15) -!19 = !MDLocation(line: 5, scope: !16) -!20 = !MDLocation(line: 6, scope: !16) -!21 = !MDLocation(line: 7, scope: !4) +!10 = !DILocation(line: 2, scope: !4) +!11 = !DILocation(line: 3, scope: !4) +!12 = !DILocation(line: 3, scope: !13) +!13 = !DILexicalBlockFile(discriminator: 1, file: !1, scope: !4) +!14 = !DILocation(line: 4, scope: !15) +!15 = distinct !DILexicalBlock(line: 4, column: 0, file: !1, scope: !16) +!16 = distinct !DILexicalBlock(line: 3, column: 0, file: !1, scope: !4) +!17 = !DILocation(line: 4, scope: !18) +!18 = !DILexicalBlockFile(discriminator: 1, file: !1, scope: !15) +!19 = !DILocation(line: 5, scope: !16) +!20 = !DILocation(line: 6, scope: !16) +!21 = !DILocation(line: 7, scope: !4) diff --git a/llvm/test/Transforms/SampleProfile/fnptr.ll b/llvm/test/Transforms/SampleProfile/fnptr.ll index 9b6653e60dd..368da42fc8a 100644 --- a/llvm/test/Transforms/SampleProfile/fnptr.ll +++ b/llvm/test/Transforms/SampleProfile/fnptr.ll @@ -129,27 +129,27 @@ declare i32 @printf(i8* nocapture readonly, ...) #1 !0 = !{i32 2, !"Debug Info Version", i32 3} !1 = !{!"clang version 3.6.0 "} -!2 = !MDLocation(line: 9, column: 3, scope: !3) -!3 = !MDSubprogram(name: "foo", line: 8, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 8, file: !4, scope: !5, type: !6, function: double (i32)* @_Z3fooi, variables: !7) -!4 = !MDFile(filename: "fnptr.cc", directory: ".") -!5 = !MDFile(filename: "fnptr.cc", directory: ".") -!6 = !MDSubroutineType(types: !7) +!2 = !DILocation(line: 9, column: 3, scope: !3) +!3 = !DISubprogram(name: "foo", line: 8, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 8, file: !4, scope: !5, type: !6, function: double (i32)* @_Z3fooi, variables: !7) +!4 = !DIFile(filename: "fnptr.cc", directory: ".") +!5 = !DIFile(filename: "fnptr.cc", directory: ".") +!6 = !DISubroutineType(types: !7) !7 = !{} -!8 = !MDLocation(line: 9, column: 14, scope: !3) -!9 = !MDLocation(line: 13, column: 3, scope: !10) -!10 = !MDSubprogram(name: "bar", line: 12, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 12, file: !4, scope: !5, type: !6, function: double (i32)* @_Z3bari, variables: !7) -!11 = !MDLocation(line: 13, column: 14, scope: !10) -!12 = !MDLocation(line: 19, column: 3, scope: !13) -!13 = !MDSubprogram(name: "main", line: 16, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 16, file: !4, scope: !5, type: !6, function: i32 ()* @main, variables: !7) -!14 = !MDLocation(line: 20, column: 5, scope: !13) -!15 = !MDLocation(line: 21, column: 15, scope: !13) -!16 = !MDLocation(line: 22, column: 11, scope: !13) +!8 = !DILocation(line: 9, column: 14, scope: !3) +!9 = !DILocation(line: 13, column: 3, scope: !10) +!10 = !DISubprogram(name: "bar", line: 12, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 12, file: !4, scope: !5, type: !6, function: double (i32)* @_Z3bari, variables: !7) +!11 = !DILocation(line: 13, column: 14, scope: !10) +!12 = !DILocation(line: 19, column: 3, scope: !13) +!13 = !DISubprogram(name: "main", line: 16, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 16, file: !4, scope: !5, type: !6, function: i32 ()* @main, variables: !7) +!14 = !DILocation(line: 20, column: 5, scope: !13) +!15 = !DILocation(line: 21, column: 15, scope: !13) +!16 = !DILocation(line: 22, column: 11, scope: !13) !17 = !{!"branch_weights", i32 534, i32 2064} -!18 = !MDLocation(line: 23, column: 14, scope: !13) -!19 = !MDLocation(line: 25, column: 14, scope: !13) -!20 = !MDLocation(line: 20, column: 28, scope: !13) +!18 = !DILocation(line: 23, column: 14, scope: !13) +!19 = !DILocation(line: 25, column: 14, scope: !13) +!20 = !DILocation(line: 20, column: 28, scope: !13) !21 = !{!"branch_weights", i32 0, i32 1075} -!22 = !MDLocation(line: 19, column: 26, scope: !13) +!22 = !DILocation(line: 19, column: 26, scope: !13) !23 = !{!"branch_weights", i32 0, i32 534} -!24 = !MDLocation(line: 27, column: 3, scope: !13) -!25 = !MDLocation(line: 28, column: 3, scope: !13) +!24 = !DILocation(line: 27, column: 3, scope: !13) +!25 = !DILocation(line: 28, column: 3, scope: !13) diff --git a/llvm/test/Transforms/SampleProfile/propagate.ll b/llvm/test/Transforms/SampleProfile/propagate.ll index 523122a11e5..8ee1e099906 100644 --- a/llvm/test/Transforms/SampleProfile/propagate.ll +++ b/llvm/test/Transforms/SampleProfile/propagate.ll @@ -198,46 +198,46 @@ attributes #2 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n !llvm.module.flags = !{!8, !9} !llvm.ident = !{!10} -!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) -!1 = !MDFile(filename: "propagate.cc", directory: ".") +!0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) +!1 = !DIFile(filename: "propagate.cc", directory: ".") !2 = !{} !3 = !{!4, !7} -!4 = !MDSubprogram(name: "foo", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, function: i64 (i32, i32, i64)* @_Z3fooiil, variables: !2) -!5 = !MDFile(filename: "propagate.cc", directory: ".") -!6 = !MDSubroutineType(types: !{null}) -!7 = !MDSubprogram(name: "main", line: 24, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 24, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2) +!4 = !DISubprogram(name: "foo", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, function: i64 (i32, i32, i64)* @_Z3fooiil, variables: !2) +!5 = !DIFile(filename: "propagate.cc", directory: ".") +!6 = !DISubroutineType(types: !{null}) +!7 = !DISubprogram(name: "main", line: 24, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 24, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2) !8 = !{i32 2, !"Dwarf Version", i32 4} !9 = !{i32 1, !"Debug Info Version", i32 3} !10 = !{!"clang version 3.5 "} -!11 = !MDLocation(line: 4, scope: !12) -!12 = distinct !MDLexicalBlock(line: 4, column: 0, file: !1, scope: !4) -!13 = !MDLocation(line: 5, scope: !14) -!14 = distinct !MDLexicalBlock(line: 4, column: 0, file: !1, scope: !12) -!15 = !MDLocation(line: 7, scope: !16) -!16 = distinct !MDLexicalBlock(line: 7, column: 0, file: !1, scope: !17) -!17 = distinct !MDLexicalBlock(line: 6, column: 0, file: !1, scope: !12) -!18 = !MDLocation(line: 8, scope: !19) -!19 = distinct !MDLexicalBlock(line: 8, column: 0, file: !1, scope: !20) -!20 = distinct !MDLexicalBlock(line: 7, column: 0, file: !1, scope: !16) -!21 = !MDLocation(line: 9, scope: !19) -!22 = !MDLocation(line: 10, scope: !23) -!23 = distinct !MDLexicalBlock(line: 10, column: 0, file: !1, scope: !20) -!24 = !MDLocation(line: 11, scope: !25) -!25 = distinct !MDLexicalBlock(line: 10, column: 0, file: !1, scope: !23) -!26 = !MDLocation(line: 12, scope: !25) -!27 = !MDLocation(line: 13, scope: !25) -!28 = !MDLocation(line: 14, scope: !29) -!29 = distinct !MDLexicalBlock(line: 14, column: 0, file: !1, scope: !30) -!30 = distinct !MDLexicalBlock(line: 13, column: 0, file: !1, scope: !23) -!31 = !MDLocation(line: 15, scope: !32) -!32 = distinct !MDLexicalBlock(line: 14, column: 0, file: !1, scope: !29) -!33 = !MDLocation(line: 16, scope: !32) -!34 = !MDLocation(line: 17, scope: !32) -!35 = !MDLocation(line: 19, scope: !20) -!36 = !MDLocation(line: 21, scope: !4) -!37 = !MDLocation(line: 22, scope: !4) -!38 = !MDLocation(line: 25, scope: !7) -!39 = !MDLocation(line: 26, scope: !7) -!40 = !MDLocation(line: 27, scope: !7) -!41 = !MDLocation(line: 28, scope: !7) -!42 = !MDLocation(line: 29, scope: !7) +!11 = !DILocation(line: 4, scope: !12) +!12 = distinct !DILexicalBlock(line: 4, column: 0, file: !1, scope: !4) +!13 = !DILocation(line: 5, scope: !14) +!14 = distinct !DILexicalBlock(line: 4, column: 0, file: !1, scope: !12) +!15 = !DILocation(line: 7, scope: !16) +!16 = distinct !DILexicalBlock(line: 7, column: 0, file: !1, scope: !17) +!17 = distinct !DILexicalBlock(line: 6, column: 0, file: !1, scope: !12) +!18 = !DILocation(line: 8, scope: !19) +!19 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !20) +!20 = distinct !DILexicalBlock(line: 7, column: 0, file: !1, scope: !16) +!21 = !DILocation(line: 9, scope: !19) +!22 = !DILocation(line: 10, scope: !23) +!23 = distinct !DILexicalBlock(line: 10, column: 0, file: !1, scope: !20) +!24 = !DILocation(line: 11, scope: !25) +!25 = distinct !DILexicalBlock(line: 10, column: 0, file: !1, scope: !23) +!26 = !DILocation(line: 12, scope: !25) +!27 = !DILocation(line: 13, scope: !25) +!28 = !DILocation(line: 14, scope: !29) +!29 = distinct !DILexicalBlock(line: 14, column: 0, file: !1, scope: !30) +!30 = distinct !DILexicalBlock(line: 13, column: 0, file: !1, scope: !23) +!31 = !DILocation(line: 15, scope: !32) +!32 = distinct !DILexicalBlock(line: 14, column: 0, file: !1, scope: !29) +!33 = !DILocation(line: 16, scope: !32) +!34 = !DILocation(line: 17, scope: !32) +!35 = !DILocation(line: 19, scope: !20) +!36 = !DILocation(line: 21, scope: !4) +!37 = !DILocation(line: 22, scope: !4) +!38 = !DILocation(line: 25, scope: !7) +!39 = !DILocation(line: 26, scope: !7) +!40 = !DILocation(line: 27, scope: !7) +!41 = !DILocation(line: 28, scope: !7) +!42 = !DILocation(line: 29, scope: !7) |

