This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Add getNode debug messages
ClosedPublic

Authored by SjoerdMeijer on Aug 21 2017, 3:31 PM.

Details

Summary

This adds debug messages to various functions that create new SDValue nodes. This is e.g. useful to have during type legalization, as otherwise it can prints legalization info of nodes that did not appear in the dumps before.

This is related to D36964.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Aug 21 2017, 3:31 PM

Just added a few more debug messages.

samparker edited edge metadata.Aug 22 2017, 1:37 AM

Hi Sjoerd,

Thanks for doing this, I think it will be really useful. Just a couple of small inline comments from me.

cheers,
sam

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
90 ↗(On Diff #112119)

nit, debug names are usually lower case.

4734 ↗(On Diff #112119)

This isn't actually creating a new node though, right?

Hi Sam, thanks for reviewing. I have addressed your comments. Cheers.

samparker accepted this revision.Aug 22 2017, 2:48 AM

Great, LGTM, thanks!

This revision is now accepted and ready to land.Aug 22 2017, 2:48 AM
This revision was automatically updated to reflect the committed changes.