<div dir="ltr">Yeah +1 for not making a new CU if we can help it.<br><br>Also wondering about the name of this function - giving it the same name as the original seems like it'd create issues for debuggers?<br><br>What exactly is outlining - it's taking a chunk of a function and pulling it out into another function? I guess we already pick an interesting mangled name for it to be unique and should probably use that? (maybe only put the linkage name and not give it a non-linkage name? Since it doesn't have a name in the source... but not sure if LLVM really supports a nameless function (or if DWARF/debuggers are cool with that either?))<br><br><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 17, 2018 at 6:06 PM Robinson, Paul <<a href="mailto:paul.robinson@sony.com">paul.robinson@sony.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jessica,<br>
Creating a whole new compilation unit for the outlined functions seems<br>
pretty extreme.  For non-LTO compilations there should be only one; is<br>
there something keeping you from adding the functions to that CU?  Or<br>
is that undesirable for some reason?<br>
Thanks,<br>
--paulr<br>
<br>
> -----Original Message-----<br>
> From: llvm-commits [mailto:<a href="mailto:llvm-commits-bounces@lists.llvm.org" target="_blank">llvm-commits-bounces@lists.llvm.org</a>] On Behalf<br>
> Of Jessica Paquette via llvm-commits<br>
> Sent: Wednesday, January 17, 2018 4:01 PM<br>
> To: <a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
> Subject: [llvm] r322789 - [MachineOutliner] Add DISubprograms to outlined<br>
> functions.<br>
><br>
> Author: paquette<br>
> Date: Wed Jan 17 16:00:58 2018<br>
> New Revision: 322789<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=322789&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=322789&view=rev</a><br>
> Log:<br>
> [MachineOutliner] Add DISubprograms to outlined functions.<br>
><br>
> Before, it wasn't possible to get backtraces inside outlined functions.<br>
> This<br>
> commit adds DISubprograms to the IR functions created by the outliner<br>
> which<br>
> makes this possible. Also attached a test that ensures that the produced<br>
> debug information is correct. This is useful to users that want to debug<br>
> outlined code.<br>
><br>
><br>
> Added:<br>
>     llvm/trunk/test/CodeGen/X86/machine-outliner-disubprogram.ll<br>
> Modified:<br>
>     llvm/trunk/lib/CodeGen/MachineOutliner.cpp<br>
><br>
> Modified: llvm/trunk/lib/CodeGen/MachineOutliner.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-</a><br>
> project/llvm/trunk/lib/CodeGen/MachineOutliner.cpp?rev=322789&r1=322788&r2<br>
> =322789&view=diff<br>
> ==========================================================================<br>
> ====<br>
> --- llvm/trunk/lib/CodeGen/MachineOutliner.cpp (original)<br>
> +++ llvm/trunk/lib/CodeGen/MachineOutliner.cpp Wed Jan 17 16:00:58 2018<br>
> @@ -66,6 +66,7 @@<br>
>  #include "llvm/CodeGen/TargetInstrInfo.h"<br>
>  #include "llvm/CodeGen/TargetRegisterInfo.h"<br>
>  #include "llvm/CodeGen/TargetSubtargetInfo.h"<br>
> +#include "llvm/IR/DIBuilder.h"<br>
>  #include "llvm/IR/IRBuilder.h"<br>
>  #include "llvm/Support/Allocator.h"<br>
>  #include "llvm/Support/Debug.h"<br>
> @@ -776,6 +777,9 @@ struct MachineOutliner : public ModulePa<br>
>    /// linkonceodr linkage.<br>
>    bool OutlineFromLinkOnceODRs = false;<br>
><br>
> +  // Collection of IR functions created by the outliner.<br>
> +  std::vector<Function *> CreatedIRFunctions;<br>
> +<br>
>    StringRef getPassName() const override { return "Machine Outliner"; }<br>
><br>
>    void getAnalysisUsage(AnalysisUsage &AU) const override {<br>
> @@ -1210,6 +1214,9 @@ MachineOutliner::createOutlinedFunction(<br>
>    F->setLinkage(GlobalValue::PrivateLinkage);<br>
>    F->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);<br>
><br>
> +  // Save F so that we can add debug info later if we need to.<br>
> +  CreatedIRFunctions.push_back(F);<br>
> +<br>
>    BasicBlock *EntryBB = BasicBlock::Create(C, "entry", F);<br>
>    IRBuilder<> Builder(EntryBB);<br>
>    Builder.CreateRetVoid();<br>
> @@ -1233,12 +1240,12 @@ MachineOutliner::createOutlinedFunction(<br>
>      NewMI->dropMemRefs();<br>
><br>
>      // Don't keep debug information for outlined instructions.<br>
> -    // FIXME: This means outlined functions are currently undebuggable.<br>
>      NewMI->setDebugLoc(DebugLoc());<br>
>      MBB.insert(MBB.end(), NewMI);<br>
>    }<br>
><br>
>    TII.insertOutlinerEpilogue(MBB, MF, OF.MInfo);<br>
> +<br>
>    return &MF;<br>
>  }<br>
><br>
> @@ -1379,5 +1386,43 @@ bool MachineOutliner::runOnModule(Module<br>
>    pruneOverlaps(CandidateList, FunctionList, Mapper, MaxCandidateLen,<br>
> *TII);<br>
><br>
>    // Outline each of the candidates and return true if something was<br>
> outlined.<br>
> -  return outline(M, CandidateList, FunctionList, Mapper);<br>
> +  bool OutlinedSomething = outline(M, CandidateList, FunctionList,<br>
> Mapper);<br>
> +<br>
> +  // If we have a compile unit, and we've outlined something, then set<br>
> debug<br>
> +  // information on the outlined function.<br>
> +  if (M.debug_compile_units_begin() != M.debug_compile_units_end() &&<br>
> +      OutlinedSomething) {<br>
> +    std::unique_ptr<DIBuilder> DB = llvm::make_unique<DIBuilder>(M);<br>
> +<br>
> +    // Create a compile unit for the outlined function.<br>
> +    DICompileUnit *MCU = *M.debug_compile_units_begin();<br>
> +    DIFile *Unit = DB->createFile(M.getName(), "/");<br>
> +    DB->createCompileUnit(MCU->getSourceLanguage(), Unit, "machine-<br>
> outliner",<br>
> +                          true, "", MCU->getRuntimeVersion(),<br>
> StringRef(),<br>
> +                          DICompileUnit::DebugEmissionKind::NoDebug);<br>
> +<br>
> +    // Walk over each IR function we created in the outliner and create<br>
> +    // DISubprograms for each function.<br>
> +    for (Function *F : CreatedIRFunctions) {<br>
> +      DISubprogram *SP = DB->createFunction(<br>
> +          Unit /* Context */, F->getName(),<br>
> +          StringRef() /* Empty linkage name. */, Unit /* File */,<br>
> +          0 /* Line numbers don't matter*/,<br>
> +          DB->createSubroutineType(DB->getOrCreateTypeArray(None)), /*<br>
> void */<br>
> +          false, true, 0, /* Line in scope doesn't matter*/<br>
> +          DINode::DIFlags::FlagArtificial /* Compiler-generated code. */,<br>
> +          true /* Outlined code is optimized code by definition. */);<br>
> +<br>
> +      // Don't add any new variables to the subprogram.<br>
> +      DB->finalizeSubprogram(SP);<br>
> +<br>
> +      // Attach subprogram to the function.<br>
> +      F->setSubprogram(SP);<br>
> +    }<br>
> +<br>
> +    // We're done with the DIBuilder.<br>
> +    DB->finalize();<br>
> +  }<br>
> +<br>
> +  return OutlinedSomething;<br>
>  }<br>
><br>
> Added: llvm/trunk/test/CodeGen/X86/machine-outliner-disubprogram.ll<br>
> URL: <a href="http://llvm.org/viewvc/llvm-" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-</a><br>
> project/llvm/trunk/test/CodeGen/X86/machine-outliner-<br>
> disubprogram.ll?rev=322789&view=auto<br>
> ==========================================================================<br>
> ====<br>
> --- llvm/trunk/test/CodeGen/X86/machine-outliner-disubprogram.ll (added)<br>
> +++ llvm/trunk/test/CodeGen/X86/machine-outliner-disubprogram.ll Wed Jan<br>
> 17 16:00:58 2018<br>
> @@ -0,0 +1,219 @@<br>
> +; Ensure that we can correctly emit a compile unit for outlined functions<br>
> and<br>
> +; that we correctly emit DISubprograms for those functions.<br>
> +; Also make sure that the DISubprograms reference the generated unit.<br>
> +; make sure that if there are two outlined functions in the program,<br>
> +; RUN: llc %s -enable-machine-outliner -mtriple=x86_64-apple-darwin -o<br>
> d.out -print-after=machine-outliner<br>
> +define void @f6() #0 !dbg !8 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !11, metadata<br>
> !DIExpression()), !dbg !13<br>
> +  store i32 16, i32* %dog, align 4, !dbg !13<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !14, metadata<br>
> !DIExpression()), !dbg !15<br>
> +  store i32 32, i32* %cat, align 4, !dbg !15<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !16,<br>
> metadata !DIExpression()), !dbg !17<br>
> +  store i32 48, i32* %pangolin, align 4, !dbg !17<br>
> +  ret void, !dbg !18<br>
> +}<br>
> +<br>
> +declare void @llvm.dbg.declare(metadata, metadata, metadata) #1<br>
> +<br>
> +define void @f5() #0 !dbg !19 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !20, metadata<br>
> !DIExpression()), !dbg !21<br>
> +  store i32 16, i32* %dog, align 4, !dbg !21<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !22, metadata<br>
> !DIExpression()), !dbg !23<br>
> +  store i32 32, i32* %cat, align 4, !dbg !23<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !24,<br>
> metadata !DIExpression()), !dbg !25<br>
> +  store i32 48, i32* %pangolin, align 4, !dbg !25<br>
> +  ret void, !dbg !26<br>
> +}<br>
> +<br>
> +define void @f4() #0 !dbg !27 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !28, metadata<br>
> !DIExpression()), !dbg !29<br>
> +  store i32 16, i32* %dog, align 4, !dbg !29<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !30, metadata<br>
> !DIExpression()), !dbg !31<br>
> +  store i32 32, i32* %cat, align 4, !dbg !31<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !32,<br>
> metadata !DIExpression()), !dbg !33<br>
> +  store i32 48, i32* %pangolin, align 4, !dbg !33<br>
> +  ret void, !dbg !34<br>
> +}<br>
> +<br>
> +define i32 @f1() #0 !dbg !35 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !38, metadata<br>
> !DIExpression()), !dbg !39<br>
> +  store i32 1, i32* %dog, align 4, !dbg !39<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !40, metadata<br>
> !DIExpression()), !dbg !41<br>
> +  store i32 2, i32* %cat, align 4, !dbg !41<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !42,<br>
> metadata !DIExpression()), !dbg !43<br>
> +  store i32 3, i32* %pangolin, align 4, !dbg !43<br>
> +  store i32 16, i32* %dog, align 4, !dbg !44<br>
> +  %0 = load i32, i32* %dog, align 4, !dbg !45<br>
> +  ret i32 %0, !dbg !46<br>
> +}<br>
> +<br>
> +define i32 @f2() #0 !dbg !47 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !48, metadata<br>
> !DIExpression()), !dbg !49<br>
> +  store i32 1, i32* %dog, align 4, !dbg !49<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !50, metadata<br>
> !DIExpression()), !dbg !51<br>
> +  store i32 2, i32* %cat, align 4, !dbg !51<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !52,<br>
> metadata !DIExpression()), !dbg !53<br>
> +  store i32 3, i32* %pangolin, align 4, !dbg !53<br>
> +  store i32 16, i32* %dog, align 4, !dbg !54<br>
> +  %0 = load i32, i32* %dog, align 4, !dbg !55<br>
> +  ret i32 %0, !dbg !56<br>
> +}<br>
> +<br>
> +define i32 @f3() #0 !dbg !57 {<br>
> +entry:<br>
> +  %dog = alloca i32, align 4<br>
> +  %cat = alloca i32, align 4<br>
> +  %pangolin = alloca i32, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %dog, metadata !58, metadata<br>
> !DIExpression()), !dbg !59<br>
> +  store i32 1, i32* %dog, align 4, !dbg !59<br>
> +  call void @llvm.dbg.declare(metadata i32* %cat, metadata !60, metadata<br>
> !DIExpression()), !dbg !61<br>
> +  store i32 2, i32* %cat, align 4, !dbg !61<br>
> +  call void @llvm.dbg.declare(metadata i32* %pangolin, metadata !62,<br>
> metadata !DIExpression()), !dbg !63<br>
> +  store i32 3, i32* %pangolin, align 4, !dbg !63<br>
> +  store i32 16, i32* %dog, align 4, !dbg !64<br>
> +  %0 = load i32, i32* %dog, align 4, !dbg !65<br>
> +  ret i32 %0, !dbg !66<br>
> +}<br>
> +<br>
> +define i32 @main() #0 !dbg !67 {<br>
> +entry:<br>
> +  %retval = alloca i32, align 4<br>
> +  %a = alloca i32, align 4<br>
> +  store i32 0, i32* %retval, align 4<br>
> +  call void @llvm.dbg.declare(metadata i32* %a, metadata !68, metadata<br>
> !DIExpression()), !dbg !69<br>
> +  store i32 4, i32* %a, align 4, !dbg !69<br>
> +  %call = call i32 @f1() #2, !dbg !70<br>
> +  %call1 = call i32 @f2() #2, !dbg !71<br>
> +  %call2 = call i32 @f3() #2, !dbg !72<br>
> +  ret i32 0, !dbg !73<br>
> +}<br>
> +<br>
> +; CHECK [[UNIT:![0-9]+]] = distinct !DICompileUnit<br>
> +; CHECK-SAME: file: [[FILE:![0-9]+]],<br>
> +; CHECK-SAME: producer: "machine-outliner",<br>
> +; CHECK-SAME: isOptimized: true, runtimeVersion: 0, emissionKind: NoDebug<br>
> +<br>
> +; CHECK: distinct !DISubprogram(name: "OUTLINED_FUNCTION_1",<br>
> +; CHECK-SAME: scope: [[FILE]],<br>
> +; CHECK-SAME: file: [[FILE]],<br>
> +; CHECK-SAME: type: [[TYPE:![0-9]+]],<br>
> +; CHECK-SAME: isLocal: false,<br>
> +; CHECK-SAME: isDefinition: true,<br>
> +; CHECK-SAME: flags: DIFlagArtificial,<br>
> +; CHECK-SAME: isOptimized: true,<br>
> +; CHECK-SAME: unit: [[UNIT]],<br>
> +; CHECK-SAME: variables: [[VARS:![0-9]+]]<br>
> +<br>
> +; CHECK: distinct !DISubprogram(name: "OUTLINED_FUNCTION_1",<br>
> +; CHECK-SAME: scope: [[FILE]],<br>
> +; CHECK-SAME: file: [[FILE]],<br>
> +; CHECK-SAME: type: [[TYPE]],<br>
> +; CHECK-SAME: isLocal: false,<br>
> +; CHECK-SAME: isDefinition: true,<br>
> +; CHECK-SAME: flags: DIFlagArtificial,<br>
> +; CHECK-SAME: isOptimized: true,<br>
> +; CHECK-SAME: unit: [[UNIT]],<br>
> +; CHECK-SAME: variables: [[VARS]]<br>
> +<br>
> +attributes #0 = { noinline noredzone nounwind optnone ssp uwtable "no-<br>
> frame-pointer-elim"="true"  }<br>
> +attributes #1 = { nounwind readnone speculatable }<br>
> +attributes #2 = { noredzone }<br>
> +<br>
> +!<a href="http://llvm.dbg.cu" rel="noreferrer" target="_blank">llvm.dbg.cu</a> = !{!0}<br>
> +!llvm.module.flags = !{!3, !4, !5, !6}<br>
> +!llvm.ident = !{!7}<br>
> +<br>
> +!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer:<br>
> "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug,<br>
> enums: !2)<br>
> +!1 = !DIFile(filename: "test.c", directory: "/")<br>
> +!2 = !{}<br>
> +!3 = !{i32 2, !"Dwarf Version", i32 4}<br>
> +!4 = !{i32 2, !"Debug Info Version", i32 3}<br>
> +!5 = !{i32 1, !"wchar_size", i32 4}<br>
> +!6 = !{i32 7, !"PIC Level", i32 2}<br>
> +!7 = !{!"clang"}<br>
> +!8 = distinct !DISubprogram(name: "f6", scope: !1, file: !1, line: 3,<br>
> type: !9, isLocal: false, isDefinition: true, scopeLine: 3, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!9 = !DISubroutineType(types: !10)<br>
> +!10 = !{null}<br>
> +!11 = !DILocalVariable(name: "dog", scope: !8, file: !1, line: 4, type:<br>
> !12)<br>
> +!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)<br>
> +!13 = !DILocation(line: 4, column: 16, scope: !8)<br>
> +!14 = !DILocalVariable(name: "cat", scope: !8, file: !1, line: 5, type:<br>
> !12)<br>
> +!15 = !DILocation(line: 5, column: 16, scope: !8)<br>
> +!16 = !DILocalVariable(name: "pangolin", scope: !8, file: !1, line: 6,<br>
> type: !12)<br>
> +!17 = !DILocation(line: 6, column: 16, scope: !8)<br>
> +!18 = !DILocation(line: 7, column: 1, scope: !8)<br>
> +!19 = distinct !DISubprogram(name: "f5", scope: !1, file: !1, line: 9,<br>
> type: !9, isLocal: false, isDefinition: true, scopeLine: 9, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!20 = !DILocalVariable(name: "dog", scope: !19, file: !1, line: 10, type:<br>
> !12)<br>
> +!21 = !DILocation(line: 10, column: 16, scope: !19)<br>
> +!22 = !DILocalVariable(name: "cat", scope: !19, file: !1, line: 11, type:<br>
> !12)<br>
> +!23 = !DILocation(line: 11, column: 16, scope: !19)<br>
> +!24 = !DILocalVariable(name: "pangolin", scope: !19, file: !1, line: 12,<br>
> type: !12)<br>
> +!25 = !DILocation(line: 12, column: 16, scope: !19)<br>
> +!26 = !DILocation(line: 13, column: 1, scope: !19)<br>
> +!27 = distinct !DISubprogram(name: "f4", scope: !1, file: !1, line: 15,<br>
> type: !9, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!28 = !DILocalVariable(name: "dog", scope: !27, file: !1, line: 16, type:<br>
> !12)<br>
> +!29 = !DILocation(line: 16, column: 16, scope: !27)<br>
> +!30 = !DILocalVariable(name: "cat", scope: !27, file: !1, line: 17, type:<br>
> !12)<br>
> +!31 = !DILocation(line: 17, column: 16, scope: !27)<br>
> +!32 = !DILocalVariable(name: "pangolin", scope: !27, file: !1, line: 18,<br>
> type: !12)<br>
> +!33 = !DILocation(line: 18, column: 16, scope: !27)<br>
> +!34 = !DILocation(line: 19, column: 1, scope: !27)<br>
> +!35 = distinct !DISubprogram(name: "f1", scope: !1, file: !1, line: 21,<br>
> type: !36, isLocal: false, isDefinition: true, scopeLine: 21, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!36 = !DISubroutineType(types: !37)<br>
> +!37 = !{!12}<br>
> +!38 = !DILocalVariable(name: "dog", scope: !35, file: !1, line: 22, type:<br>
> !12)<br>
> +!39 = !DILocation(line: 22, column: 16, scope: !35)<br>
> +!40 = !DILocalVariable(name: "cat", scope: !35, file: !1, line: 23, type:<br>
> !12)<br>
> +!41 = !DILocation(line: 23, column: 16, scope: !35)<br>
> +!42 = !DILocalVariable(name: "pangolin", scope: !35, file: !1, line: 24,<br>
> type: !12)<br>
> +!43 = !DILocation(line: 24, column: 16, scope: !35)<br>
> +!44 = !DILocation(line: 25, column: 7, scope: !35)<br>
> +!45 = !DILocation(line: 26, column: 10, scope: !35)<br>
> +!46 = !DILocation(line: 26, column: 3, scope: !35)<br>
> +!47 = distinct !DISubprogram(name: "f2", scope: !1, file: !1, line: 29,<br>
> type: !36, isLocal: false, isDefinition: true, scopeLine: 29, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!48 = !DILocalVariable(name: "dog", scope: !47, file: !1, line: 30, type:<br>
> !12)<br>
> +!49 = !DILocation(line: 30, column: 16, scope: !47)<br>
> +!50 = !DILocalVariable(name: "cat", scope: !47, file: !1, line: 31, type:<br>
> !12)<br>
> +!51 = !DILocation(line: 31, column: 16, scope: !47)<br>
> +!52 = !DILocalVariable(name: "pangolin", scope: !47, file: !1, line: 32,<br>
> type: !12)<br>
> +!53 = !DILocation(line: 32, column: 16, scope: !47)<br>
> +!54 = !DILocation(line: 33, column: 7, scope: !47)<br>
> +!55 = !DILocation(line: 34, column: 10, scope: !47)<br>
> +!56 = !DILocation(line: 34, column: 3, scope: !47)<br>
> +!57 = distinct !DISubprogram(name: "f3", scope: !1, file: !1, line: 37,<br>
> type: !36, isLocal: false, isDefinition: true, scopeLine: 37, isOptimized:<br>
> false, unit: !0, variables: !2)<br>
> +!58 = !DILocalVariable(name: "dog", scope: !57, file: !1, line: 38, type:<br>
> !12)<br>
> +!59 = !DILocation(line: 38, column: 16, scope: !57)<br>
> +!60 = !DILocalVariable(name: "cat", scope: !57, file: !1, line: 39, type:<br>
> !12)<br>
> +!61 = !DILocation(line: 39, column: 16, scope: !57)<br>
> +!62 = !DILocalVariable(name: "pangolin", scope: !57, file: !1, line: 40,<br>
> type: !12)<br>
> +!63 = !DILocation(line: 40, column: 16, scope: !57)<br>
> +!64 = !DILocation(line: 41, column: 7, scope: !57)<br>
> +!65 = !DILocation(line: 42, column: 10, scope: !57)<br>
> +!66 = !DILocation(line: 42, column: 3, scope: !57)<br>
> +!67 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 45,<br>
> type: !36, isLocal: false, isDefinition: true, scopeLine: 45, flags:<br>
> DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)<br>
> +!68 = !DILocalVariable(name: "a", scope: !67, file: !1, line: 46, type:<br>
> !12)<br>
> +!69 = !DILocation(line: 46, column: 16, scope: !67)<br>
> +!70 = !DILocation(line: 47, column: 3, scope: !67)<br>
> +!71 = !DILocation(line: 48, column: 3, scope: !67)<br>
> +!72 = !DILocation(line: 49, column: 3, scope: !67)<br>
> +!73 = !DILocation(line: 51, column: 3, scope: !67)<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>