Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(546)

Issue 4865045: Generic topological sorting for graphs in llvm/ADT

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by delesley
Modified:
12 years, 9 months ago
Visibility:
Public.

Patch Set 1 #

Total comments: 41

Patch Set 2 : Generic topological sort, with style changes #

Total comments: 34

Patch Set 3 : Final changes to topological sort #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -1 line) Patch
M include/llvm/ADT/GraphTraits.h View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A include/llvm/ADT/TopologicalSort.h View 1 2 1 chunk +207 lines, -0 lines 0 comments Download
A unittests/ADT/TopologicalTest.cpp View 1 2 1 chunk +421 lines, -0 lines 0 comments Download
M unittests/CMakeLists.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
chandlerc
Mostly style comments. This needs a pretty rigorous run through the LLVM coding standards. Also, ...
12 years, 9 months ago (2011-08-15 22:12:15 UTC) #1
delesley
http://codereview.appspot.com/4865045/diff/1/include/llvm/ADT/TopologicalSort.h File include/llvm/ADT/TopologicalSort.h (right): http://codereview.appspot.com/4865045/diff/1/include/llvm/ADT/TopologicalSort.h#newcode26 include/llvm/ADT/TopologicalSort.h:26: template<class GraphType, class IGT = IndexedGraphTraits<GraphType> > On 2011/08/15 ...
12 years, 9 months ago (2011-08-16 18:15:21 UTC) #2
Jeffrey Yasskin (google)
http://codereview.appspot.com/4865045/diff/1/include/llvm/ADT/TopologicalSort.h File include/llvm/ADT/TopologicalSort.h (right): http://codereview.appspot.com/4865045/diff/1/include/llvm/ADT/TopologicalSort.h#newcode132 include/llvm/ADT/TopologicalSort.h:132: std::vector<StackFrame> Stack; On 2011/08/16 18:15:22, delesley wrote: > On ...
12 years, 9 months ago (2011-08-16 21:23:11 UTC) #3
chandlerc
Ping? Can we at least send this out to llvm-commits so that we can finish ...
12 years, 9 months ago (2011-08-17 21:32:43 UTC) #4
delesley
http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/TopologicalSort.h File include/llvm/ADT/TopologicalSort.h (right): http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/TopologicalSort.h#newcode11 include/llvm/ADT/TopologicalSort.h:11: // topological order, and provides an iterator for traversing ...
12 years, 9 months ago (2011-08-17 21:33:23 UTC) #5
delesley
12 years, 9 months ago (2011-08-17 21:36:34 UTC) #6
http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/GraphTraits.h
File include/llvm/ADT/GraphTraits.h (right):

http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/GraphTraits....
include/llvm/ADT/GraphTraits.h:107: // typedef NodeType                        
- Type of Node in the graph
On 2011/08/16 21:23:11, Jeffrey Yasskin (google) wrote:
> Don't put so many spaces between the typedef and its meaning.

Done.

http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/GraphTraits....
include/llvm/ADT/GraphTraits.h:108: // static unsigned int getIndex(NodeType*)
On 2011/08/16 21:23:11, Jeffrey Yasskin (google) wrote:
> LLVM tends to use just "unsigned" instead of "unsigned int".

Done.

http://codereview.appspot.com/4865045/diff/4001/include/llvm/ADT/GraphTraits....
include/llvm/ADT/GraphTraits.h:109: //   Return the integer index of a node
On 2011/08/16 21:23:11, Jeffrey Yasskin (google) wrote:
> Maybe describe the invariant that the result is <getMaxIndex?

Done.

http://codereview.appspot.com/4865045/diff/4001/unittests/CMakeLists.txt
File unittests/CMakeLists.txt (right):

http://codereview.appspot.com/4865045/diff/4001/unittests/CMakeLists.txt#newc...
unittests/CMakeLists.txt:76: ADT/TopologicalTest.cpp
On 2011/08/16 21:23:11, Jeffrey Yasskin (google) wrote:
> Alphabetize.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b