This should finish the GraphTraits migration.
Details
Diff Detail
Event Timeline
Not all of these already had NodeRef implemented - that implies that some algorithms weren't using NodeRef before this change, or that these traits are unused? I thought the plan was to migrate each algorithm then just do a strict cleanup. Did that not pan out/some other aspects I'm forgetting?
llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h | ||
---|---|---|
684–688 | If you like you could probably (separate commit) drop the 'inline' from these functions, they're implicitly inline anyway | |
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h | ||
2060–2064 | and here | |
llvm/trunk/include/llvm/IR/CFG.h | ||
161–164 | And here.. and so on. |
I think those traits are unused. Notice that by merely removing "NodeType *" declarations, the build/tests doesn't break, so at least they are not covered by the tests.
llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h | ||
---|---|---|
684–688 | Sure, I can do that in a following patch. |
I'd sort of be inclined to remove them, then - but I leave that up to you.
Otherwise this review is already approved, so commit as you see fit.
It looks like people create some class, and add GraphTraits specialization for it, in the hope that others can use it, but didn't write a test. The right thing is to add the test, but I'm not going to be the one. :)
So I'll keep them.
If you like you could probably (separate commit) drop the 'inline' from these functions, they're implicitly inline anyway