aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/GraphWriter.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't use reinterpret_cast when it isn't needed.Dan Gohman2008-07-271-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54130 91177308-0d34-0410-b5e6-96231b3b80d8
* Enhance the GraphWriter support for edge destinations, and teach theDan Gohman2008-07-211-4/+18
| | | | | | | | | SelectionDAG graph writer to make use of them. Now, nodes with multiple values are displayed as such, with incoming edges pointing to the specific value they use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53875 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the GraphWriter be more consistent about the stringDan Gohman2008-07-211-19/+8
| | | | | | | | | used for the graph "title" and the graph "label", as there are differences in interpretation of these strings between viewers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53871 91177308-0d34-0410-b5e6-96231b3b80d8
* Escape the graph name. This unbreaks -view-cfg.Dan Gohman2008-07-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53417 91177308-0d34-0410-b5e6-96231b3b80d8
* The graph name really does matter for configurations that use gv.Dan Gohman2008-07-081-4/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53259 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove uses of "llvm/Support/Debug.h" from LLVM include files, whichDan Gohman2008-07-071-1/+1
| | | | | | | all happened be unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53182 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-051-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
* Added special escape sequences "\{", "\}", and "\|" when processingTed Kremenek2008-01-231-2/+7
| | | | | | | | | getNodeLabel(); these sequences allow the user to specify the characters '{', '}', and '|' in the label, which facilitate breaking the label into multiple record segments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46283 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | | | discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
* Previously GraphWriter assumed operator*() for node_iterator alwaysTed Kremenek2007-09-191-1/+5
| | | | | | | | | | | | | | returned a reference type. This patch allows operator*() to return a non-reference type while still maintaining the old behavior when it does return a reference type. This patch was motivated when I tried to use "df_iterator" (see llvm/ADT/DepthFirstIterator.h) as a "node_iterator", as df_iterator does not return a reference type and thus we would get a compilation error when trying to take the address of a temporary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42151 91177308-0d34-0410-b5e6-96231b3b80d8
* Added Graphviz escaping for the '|' character.Ted Kremenek2007-08-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41610 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-5/+5
| | | | | | | now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
* Used llvm_ostream instead of std::ostream objects. This will reduce useBill Wendling2006-11-171-7/+7
| | | | | | | of the icky <iostream> class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31818 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to annotate (color) nodes in a viewGraph.Jim Laskey2006-10-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30686 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-231-1/+5
| | | | | | | | Final removal of exceptions from lib/System and adjustment of users to accommodate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29846 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the sys::Path::GetTemporaryDirectory method not throw exceptions andReid Spencer2006-08-221-1/+6
| | | | | | | adjust users of it to compensate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29831 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR801:Reid Spencer2006-06-271-0/+58
| | | | | | | | | | Refactor the Graph writing code to use a common implementation which is now in lib/Support/GraphWriter.cpp. This completes the PR. Patch by Anton Korobeynikov. Thanks, Anton! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28925 91177308-0d34-0410-b5e6-96231b3b80d8
* Annotate nodes with their addresses if a graph requests it.Chris Lattner2005-10-011-2/+13
| | | | | | | | This is Jim's feature implemented so that graphs could 'opt-in' and get this behavior. This is currently used by selection dags. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23576 91177308-0d34-0410-b5e6-96231b3b80d8
* Reverting change moving to selection dag graph.Jim Laskey2005-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23568 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the node name (thus the address) to node label.Jim Laskey2005-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23565 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove trailing whitespaceMisha Brukman2005-04-211-12/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21411 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for bottom-up graphs.Chris Lattner2005-01-111-3/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19446 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a helper methodChris Lattner2005-01-101-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19439 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes For Bug 352Reid Spencer2004-09-011-5/+5
| | | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
* If a node has more than 64 outgoing edges, make the edges go from the ↵Chris Lattner2004-02-111-1/+3
| | | | | | | | | 'truncated' block, instead of dropping them entirely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11334 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes for PR114: Thanks to Reid Spencer!Chris Lattner2003-11-161-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Escape "'s, which are frequent visitors to C++ typesChris Lattner2003-10-311-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9642 91177308-0d34-0410-b5e6-96231b3b80d8
* Added LLVM notice.John Criswell2003-10-201-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9300 91177308-0d34-0410-b5e6-96231b3b80d8
* Standardize header file commentsChris Lattner2003-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8782 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow the addition of edge source labelsChris Lattner2003-02-051-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5493 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem where bad graphs could be generatedChris Lattner2002-11-101-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4671 91177308-0d34-0410-b5e6-96231b3b80d8
* Old GCC's don't have an <ostream>Chris Lattner2002-10-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4293 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't emit braces around something without outgoing edgesChris Lattner2002-10-181-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4225 91177308-0d34-0410-b5e6-96231b3b80d8
* Break up the GraphWriter into smaller chunks to be used in different waysChris Lattner2002-10-171-10/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4207 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow simple nodes to have outgoing edgesChris Lattner2002-10-161-5/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4202 91177308-0d34-0410-b5e6-96231b3b80d8
* * Factor printing code again, add emitSimpleNode methodChris Lattner2002-10-161-8/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4198 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add new DOTGraphTraits::addCustomGraphFeatures methodChris Lattner2002-10-161-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4197 91177308-0d34-0410-b5e6-96231b3b80d8
* * Significantly refactor GraphWriter into a class.Chris Lattner2002-10-161-41/+69
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4194 91177308-0d34-0410-b5e6-96231b3b80d8
* - Generic graph printing infrastructure changes:Chris Lattner2002-10-161-18/+19
| | | | | | | | | * Only print outgoing edges from a cell if the destination isn't null. This is important for DSGraphs, which have sources with no edges. * Allow Node attributes to override shape of the node git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4192 91177308-0d34-0410-b5e6-96231b3b80d8
* * Don't only print out reachable nodes in the graph.Chris Lattner2002-10-101-7/+7
| | | | | | | | * use new api to get all nodes in the graph * Allow custom graph traits git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4109 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't rotate paper.Chris Lattner2002-10-071-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4066 91177308-0d34-0410-b5e6-96231b3b80d8
* - Allow printing generic LLVM graphs to 'dot' files, so they can beChris Lattner2002-10-071-0/+123
visualized easily. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4061 91177308-0d34-0410-b5e6-96231b3b80d8