Implement the dump function for LatencyPriorityQueue.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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)?
Comment Actions
@echristo
Hi Eric,
What is your opinion on this? Should I be adding the #if .. and #endif? Does it matter?