This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][OpenCL] Generate correct block literal debug info for OpenCL
ClosedPublic

Authored by scott.linder on Jul 27 2018, 12:21 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

scott.linder created this revision.Jul 27 2018, 12:21 PM

LGTM. Thanks.

Thank you for taking a look @yaxunl. Should I wait for another reviewer or can I commit this?

yaxunl accepted this revision.Jul 30 2018, 12:39 PM

Thank you for taking a look @yaxunl. Should I wait for another reviewer or can I commit this?

I think it is OK to land. We could have post-commit reviews if there are any issues.

This revision is now accepted and ready to land.Jul 30 2018, 12:39 PM

The patch is fine, in general, couple of comments:

a) Can you refactor this so the if conditionals are just two functions? Those functions are big enough already.
b) I'm not quite sure why you're picking limited here, do you have an explanation?
c) Can you split that part out into a separate test? Additional run lines in the existing blocks.cl test would be fine.

Thanks!

This revision was automatically updated to reflect the committed changes.

Sorry, I didn't see the additional comments until after I committed. I will make those changes; is it OK to update this review, or should I create a new one?

As for choosing limited it was just what the function adding the debug info checked for as a minimum; what would you generally choose instead?

Sorry, I didn't see the additional comments until after I committed. I will make those changes; is it OK to update this review, or should I create a new one?

A new one is great. Just treat this as post commit :)

As for choosing limited it was just what the function adding the debug info checked for as a minimum; what would you generally choose instead?

I'd have just suggested plain -g for it?