aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Improved graph generation using subgraph clusters for functionsDan Sheridan2007-05-221-20/+139
| | | | | | | | | | | | | Improve the dot files generated by graph.c to put the basic blocks for each function into their own labelled subgraph cluster and to distinguish between branches and function calls using different edge types. Requires a change to struct symbol to keep track of the entrypoint associated with a given function identifier. Currently, no attempt is made to handle indirect function calls -- they are just ignored. Signed-off-by: Dan Sheridan <djs@adelard.com>
* cleanup write to argument array hackChristopher Li2006-12-041-3/+8
| | | | | | | | | | | | The sparse interface is a kind of snaky that it change the input argument array. The function sparse() does the same hack just to skip the files. This patch add the ptr list for string. So sparse_initialize will return list of file to compile. The string pointer is not aligned at word boundary. This patch introduce non taged version of the ptr list iteration function. Signed-off-by: Christopher Li <sparse@chrisli.org>
* graph: Show position in basic block nodesJosh Triplett2006-09-141-1/+2
| | | | | | | Change the label for basic block nodes from the basic block address to the position (file, line, column) of the basic block. Signed-off-by: Josh Triplett <josh@freedesktop.org>
* [PATCH] Add backend to graph basic blocksJosh Triplett2006-08-291-0/+63
Add a new backend program which parses the input files, processes them through the linearization pass, and outputs a graphviz graph of the resulting basic blocks. Each entrypoint gets labelled by name, but for now the basic blocks just get labelled with the address of the basic_block structure. Signed-off-by: Josh Triplett <josh@freedesktop.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>