This is an archive of the discontinued LLVM Phabricator instance.

[LatencyPriorityQueue] The LatencyPriorityQueue class is missing the implementation for the dump function
ClosedPublic

Authored by stefanp on Mar 26 2018, 11:29 AM.

Details

Summary

Implement the dump function for LatencyPriorityQueue.

Diff Detail

Event Timeline

stefanp created this revision.Mar 26 2018, 11:29 AM
echristo accepted this revision.Mar 26 2018, 11:41 AM

Sure. Feel free to just commit this sort of thing.

-eric

This revision is now accepted and ready to land.Mar 26 2018, 11:41 AM

Just out of curiosity, do we want to separate out the declaration and definition so that no definition is available in NDEBUG builds? Namely, should the def be something along the lines of:

#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void LatencyPriorityQueue::dump(ScheduleDAG *DAG) const {
  // ...
}
#endif

I know there has been some discussion recently about how we want to handle this debugging stuff, but I didn't really keep up with the discussion. So I asked Stefan to post this on Phabricator.
P.S. Is there any general guidance about providing dump() functions that take no parameters (for example if this one has a default nullptr argument)?

@echristo
Hi Eric,
What is your opinion on this? Should I be adding the #if .. and #endif? Does it matter?

stefanp closed this revision.Apr 16 2018, 4:01 AM

Committed in rL330117.
Closing this item.