Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

debug-infoProject
ActivePublic

Recent Activity

Fri, Sep 22

Orlando added a comment to D153990: [DebugInfo][RemoveDIs] Add prototype storage classes for non-instruction variable debug-info.

Code changes LGTM pending inline comments. I haven't looked at the tests yet.

Fri, Sep 22, 9:43 AM · debug-info, Restricted Project, Restricted Project
jmorse added a comment to D153777: [ADT][DebugInfo][RemoveDIs] Permit extra flags in ilist_iterator's for communicating debug-info facts.

(NB: I'm also going to try and get one of our buildbots building with the cmake flag set so that this doesn't immediately commit uncovered code.)

Fri, Sep 22, 8:40 AM · debug-info, Restricted Project, Restricted Project
Orlando accepted D153777: [ADT][DebugInfo][RemoveDIs] Permit extra flags in ilist_iterator's for communicating debug-info facts.

LGTM (pending clang-formatting if not already, plus a few nits).

Fri, Sep 22, 8:30 AM · debug-info, Restricted Project, Restricted Project

Wed, Sep 20

fdeazeve added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

Are you able to post the test source or an unoptimized reproducer?

Wed, Sep 20, 5:39 AM · Restricted Project, Restricted Project, debug-info
StephenTozer added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

I've just noticed that, for reasons I am still investigating, the optimizer produced this expression in some test:

Wed, Sep 20, 5:31 AM · Restricted Project, Restricted Project, debug-info
fdeazeve added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

Actually, I think that expression might be invalid? That argument 1 is supposed to mimic the DWARF specification, i.e., it attempts to specify the length of the operations that are evaluated upon function entry. We require it to be 1 because we always want to be just a "register" operation. It's not clear what the meaning would be for a variadic expression

Wed, Sep 20, 5:25 AM · Restricted Project, Restricted Project, debug-info
fdeazeve added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

I've just noticed that, for reason I am still investigating, the optimizer produced this expression in some test:

Wed, Sep 20, 5:09 AM · Restricted Project, Restricted Project, debug-info

Mon, Sep 18

dblaikie accepted D158730: [DebugMetadata][DwarfDebug] Don't retain local types with -fno-eliminate-unused-debug-types.

Nice and easy

Mon, Sep 18, 11:47 AM · debug-info, Restricted Project, Restricted Project, Restricted Project
dblaikie added inline comments to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.
Mon, Sep 18, 11:47 AM · debug-info, Restricted Project, Restricted Project
dblaikie added a comment to D157615: [ExtendLifetimes][1/4] Add "disable-post-ra" function attribute to disable the post-regalloc scheduler.

Might be worth rewording the commit, or splitting it - I'd say the introduction of optdebug should be the noteworthier part of this patch (or whichever patch introduces it) - so either "this patch adds optdebug, and a first/exemplar use of it in postra scheduler" or split it into a patch that just adds the attribute and no uses, and one that adds the use.

SGTM, the scope of this patch has increased as-of the latest update. That being said AFAIK Github PRs don't currently have support for stacked PRs, so I imagine I'll need to have one review up at a time.

Mon, Sep 18, 10:49 AM · Restricted Project, Restricted Project, Restricted Project, debug-info
fdeazeve added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

Probably worth a FIXME and a bug filed about supporting different location kinds? (like, really - we can't describe a variable as being partly in memory, and partly in a register? That doesn't sound right to me... I'd have thought we would've had support for that a while ago, but I don't follow the variable location parts of DWARF in as much detail, so maybe it is)

Mon, Sep 18, 3:57 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added inline comments to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.
Mon, Sep 18, 3:55 AM · debug-info, Restricted Project, Restricted Project
StephenTozer added a comment to D157615: [ExtendLifetimes][1/4] Add "disable-post-ra" function attribute to disable the post-regalloc scheduler.

Might be worth rewording the commit, or splitting it - I'd say the introduction of optdebug should be the noteworthier part of this patch (or whichever patch introduces it) - so either "this patch adds optdebug, and a first/exemplar use of it in postra scheduler" or split it into a patch that just adds the attribute and no uses, and one that adds the use.

Mon, Sep 18, 1:36 AM · Restricted Project, Restricted Project, Restricted Project, debug-info

Fri, Sep 15

dblaikie added a comment to D157616: [ExtendLifetimes][2/4] Implement fake.use intrinsic in LLVM to extend the lifetime of operands.

LGTM, with the rider that I'm not sure what the policy is on putting the python test in there. It's fundamentally a debug-info quality test, which is slightly different to the functional tests that we have elsewhere.

Fri, Sep 15, 10:48 PM · Restricted Project, debug-info, Restricted Project
dblaikie added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

Probably worth a FIXME and a bug filed about supporting different location kinds? (like, really - we can't describe a variable as being partly in memory, and partly in a register? That doesn't sound right to me... I'd have thought we would've had support for that a while ago, but I don't follow the variable location parts of DWARF in as much detail, so maybe it is)

Fri, Sep 15, 10:45 PM · debug-info, Restricted Project, Restricted Project
dblaikie added a comment to D157615: [ExtendLifetimes][1/4] Add "disable-post-ra" function attribute to disable the post-regalloc scheduler.

Might be worth rewording the commit, or splitting it - I'd say the introduction of optdebug should be the noteworthier part of this patch (or whichever patch introduces it) - so either "this patch adds optdebug, and a first/exemplar use of it in postra scheduler" or split it into a patch that just adds the attribute and no uses, and one that adds the use. (I'd lean towards splitting it up, personally & I guess maybe moving to github pull requests in the process, perhaps)

Fri, Sep 15, 10:40 PM · Restricted Project, Restricted Project, Restricted Project, debug-info
dblaikie added inline comments to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.
Fri, Sep 15, 10:38 PM · debug-info, Restricted Project, Restricted Project
StephenTozer closed D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.
Fri, Sep 15, 11:12 AM · Restricted Project, Restricted Project, debug-info

Thu, Sep 14

fdeazeve accepted D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

Thanks for the explanation, it makes sense!

Thu, Sep 14, 10:21 AM · Restricted Project, Restricted Project, debug-info
StephenTozer updated the diff for D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

Check for isSingleLocationExpression in more places and make other checks (isEntryValue() and similar) contingent on that check.

Thu, Sep 14, 6:28 AM · Restricted Project, Restricted Project, debug-info
StephenTozer added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

Hi @StephenTozer, could you elaborate on what these failures are? I am concerned because, ever since D133926 was merged, there are some methods that were left with an incorrect implementation, like startsWithDeref or isEntryValue. It would be nice if we could address those.
Is the proposed fix here revealing a larger problem that may cause D133926 to be rethought?

Thu, Sep 14, 2:29 AM · Restricted Project, Restricted Project, debug-info

Wed, Sep 13

fdeazeve added a comment to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.

However, I've found the patch triggers some errors when running on the llvm test suite, and the variadic check really isn't that expensive I think, so I'm going to rewrite the patch to do a bit more.

Wed, Sep 13, 11:30 AM · Restricted Project, Restricted Project, debug-info

Tue, Sep 12

fdeazeve closed D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.
Tue, Sep 12, 8:09 AM · debug-info, Restricted Project, Restricted Project
fdeazeve updated the diff for D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

Rebased

Tue, Sep 12, 8:08 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

@scott.linder This is a patch I'd like to submit in the same area where your other patches are (https://reviews.llvm.org/D158675)
I don't mind rebasing if you think they will be merged soon!

I'm just running some final tests on our CI, and hopefully all goes well and they land today. Otherwise, I am also happy to rebase after you!

Awesome! I don't mind waiting an extra day or so! :)

Thank you for waiting, and sorry it took through the weekend; I was out unexpectedly on Friday.

I just landed the series, ending with 43331461954939032a03621998c30ac90299ad40

Hopefully there are no regressions and it sticks, in which case you should be good to rebase now!

Tue, Sep 12, 6:42 AM · debug-info, Restricted Project, Restricted Project
jmorse accepted D157616: [ExtendLifetimes][2/4] Implement fake.use intrinsic in LLVM to extend the lifetime of operands.

LGTM, with the rider that I'm not sure what the policy is on putting the python test in there. It's fundamentally a debug-info quality test, which is slightly different to the functional tests that we have elsewhere. The failure mode would be where some optimisation decision changes, we get a non-perfect but acceptable debug-info output, and an optimisation writer is inconvenienced by a test that "can't be correctly updated", as it were.

Tue, Sep 12, 4:25 AM · Restricted Project, debug-info, Restricted Project

Mon, Sep 11

scott.linder added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

@scott.linder This is a patch I'd like to submit in the same area where your other patches are (https://reviews.llvm.org/D158675)
I don't mind rebasing if you think they will be merged soon!

I'm just running some final tests on our CI, and hopefully all goes well and they land today. Otherwise, I am also happy to rebase after you!

Awesome! I don't mind waiting an extra day or so! :)

Mon, Sep 11, 10:33 AM · debug-info, Restricted Project, Restricted Project
fdeazeve closed D159484: [DebugInfo] Parse StrOffsets section if needed.
Mon, Sep 11, 6:59 AM · debug-info, Restricted Project, Restricted Project
StephenTozer added a comment to D151465: [Dexter] Remove builder from Dexter.

@StephenTozer Yes, there are green dragon errors. It looks like -lstdc++ is hardcoded. On Darwin we usually only have libc++. Could you make that configurable?

https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/59897/consoleFull#12109776838254eaf0-7326-4999-85b0-388101f2d404

Mon, Sep 11, 3:11 AM · Restricted Project, Restricted Project, debug-info

Fri, Sep 8

rastogishubham added a comment to D151465: [Dexter] Remove builder from Dexter.

@StephenTozer Broken greendragon tests temporarily XFAILed with 37a20cc68f545647e614c5ba4ae311dc3fd277e9

Fri, Sep 8, 3:52 PM · Restricted Project, Restricted Project, debug-info
aprantl added a comment to D151465: [Dexter] Remove builder from Dexter.

@StephenTozer Yes, there are green dragon errors. It looks like -lstdc++ is hardcoded. On Darwin we usually only have libc++. Could you make that configurable?

Fri, Sep 8, 2:48 PM · Restricted Project, Restricted Project, debug-info
fdeazeve added a comment to D159484: [DebugInfo] Parse StrOffsets section if needed.

Please use GitHub for new patches.

Fri, Sep 8, 8:44 AM · debug-info, Restricted Project, Restricted Project
aprantl accepted D159484: [DebugInfo] Parse StrOffsets section if needed.
Fri, Sep 8, 8:38 AM · debug-info, Restricted Project, Restricted Project
probinson added a comment to D159484: [DebugInfo] Parse StrOffsets section if needed.

Please use GitHub for new patches.

Fri, Sep 8, 8:16 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

@scott.linder This is a patch I'd like to submit in the same area where your other patches are (https://reviews.llvm.org/D158675)
I don't mind rebasing if you think they will be merged soon!

I'm just running some final tests on our CI, and hopefully all goes well and they land today. Otherwise, I am also happy to rebase after you!

Fri, Sep 8, 8:05 AM · debug-info, Restricted Project, Restricted Project
fdeazeve updated the diff for D159484: [DebugInfo] Parse StrOffsets section if needed.

Fix incorrect comment in commit message.

Fri, Sep 8, 7:56 AM · debug-info, Restricted Project, Restricted Project
fdeazeve updated the summary of D159484: [DebugInfo] Parse StrOffsets section if needed.
Fri, Sep 8, 7:56 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a reviewer for D159484: [DebugInfo] Parse StrOffsets section if needed: debug-info.
Fri, Sep 8, 7:55 AM · debug-info, Restricted Project, Restricted Project
StephenTozer added inline comments to D158185: [DebugInfo] Process single-location debug values in variadic form when producing DWARF.
Fri, Sep 8, 4:57 AM · Restricted Project, Restricted Project, debug-info

Thu, Sep 7

scott.linder added a comment to D159468: [AsmPrinter][DwarfDebug] Skip vars with fragments in different location kinds.

@scott.linder This is a patch I'd like to submit in the same area where your other patches are (https://reviews.llvm.org/D158675)
I don't mind rebasing if you think they will be merged soon!

Thu, Sep 7, 1:10 PM · debug-info, Restricted Project, Restricted Project
fdeazeve closed D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.
Thu, Sep 7, 11:27 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a comment to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.

Since this is DWARF5/ObjectiveC only, and since it resolves more failures than it creates, I'll go ahead and merge it.

Thu, Sep 7, 11:26 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a comment to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.

This is exposing an issue with lldb/test/API/lang/objc/modules-objc-property/TestModulesObjCProperty.py.
This test compiles an ObjectiveC program and runs dsymutil on the binary.
By default, dsymutil verifies the output only if the input is valid.
With this patch, the input is now considered valid. So dsymutil verifies the output, which turns out to be invalid (for other reasons?)
If I don't apply this patch and force dsymutil to verify the output of that test, it also says the output is invalid.

Thu, Sep 7, 9:26 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added a comment to D159471: [DWARFVerifier] Allow ObjectiveC names in dwarf_debug tables.

Just to register in case there are any concerns with performance here, I built Clang in Debug, generated a dsym with dsymutil build_Debug/bin/clang --accelerator Dwarf and measured the time it takes to verify it: build_Release/bin/llvm-dwarfdump --verify build_Debug/bin/clang.dSYM

Thu, Sep 7, 8:31 AM · debug-info, Restricted Project, Restricted Project
StephenTozer updated the diff for D157616: [ExtendLifetimes][2/4] Implement fake.use intrinsic in LLVM to extend the lifetime of operands.

Made some general fixes to tests that were broken in some capacity and addressed review comments.

Thu, Sep 7, 7:19 AM · Restricted Project, debug-info, Restricted Project
StephenTozer added inline comments to D157616: [ExtendLifetimes][2/4] Implement fake.use intrinsic in LLVM to extend the lifetime of operands.
Thu, Sep 7, 7:14 AM · Restricted Project, debug-info, Restricted Project
fdeazeve closed D158980: [DebugInfo][NFC] Move ObjC Selector name handling to lib DebugInfo.
Thu, Sep 7, 7:13 AM · debug-info, Restricted Project, Restricted Project
fdeazeve added inline comments to D158980: [DebugInfo][NFC] Move ObjC Selector name handling to lib DebugInfo.
Thu, Sep 7, 7:11 AM · debug-info, Restricted Project, Restricted Project
fdeazeve updated the diff for D158980: [DebugInfo][NFC] Move ObjC Selector name handling to lib DebugInfo.

Address review comments

Thu, Sep 7, 7:08 AM · debug-info, Restricted Project, Restricted Project

Wed, Sep 6

rnk added a comment to D93441: [DebugInfo] Fix crash with -fdebug-info-for-profiling and split dwarf.

The reproducer in the commit message no longer asserts for me, maybe we can close this.

Wed, Sep 6, 3:39 PM · Restricted Project, debug-info, Restricted Project