[LLVMbugs] [Bug 3873] New: The check/view/write-graph commands need some Bug repair / Documentation
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Mar 24 10:21:22 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3873
Summary: The check/view/write-graph commands need some Bug repair
/ Documentation
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: llvmc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rob1weld at aol.com
CC: llvmbugs at cs.uiuc.edu
# uname -a
Linux debian 2.6.29-rc8-686 #1 SMP Sat Mar 21 06:26:18 UTC 2009 i686 GNU/Linux
# llvmc --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.6svn
DEBUG build with assertions.
Built Mar 22 2009(22:49:16).
The Documentation on pages: file:/// */llvm-2.5/docs/CompilerDriver.html or
file:///mnt/drive2/llvm-gcc/install/docs/llvm/html/CompilerDriver.html is
a little short on info about the '-*-graph' commands such as these:
# llvmc --help-hidden | grep graph
-check-graph - Check the compilation graph for errors
-view-graph - Show compilation graph in GhostView
-write-graph - Write compilation-graph.dot file
If I use '-check-graph' it prints nothing (I guess that is supposed
to be good). Since '-check-graph' does not compile and only checks
it might be better to print that everything is OK than to be silent.
If I use '-view-graph' the result is impressive, but the top is a
little squished and the left edge is cutoff a little. The end result
is a little less than a "Quality graphic" suitable for presentation.
If I use '-write-graph' then 'llvmc' writes a '.dot' file that is
zero bytes long, the correct file is stuck in the /tmp directory.
# llvmc -v --write-graph -o test_delete test_delete.c
Writing '/tmp/llvm_fBIm3t/compilation-graph.dot'... done.
debian:/mnt/drive2/llvm-gcc# ls -l compilation-graph.dot
-rw-r--r-- 1 root root 0 2009-03-24 09:57 compilation-graph.dot
# ls -l /tmp/llvm_fBIm3t/compilation-graph.dot
-rw-r--r-- 1 root root 2648 2009-03-24 09:57
/tmp/llvm_fBIm3t/compilation-graph.dot
The 'llvmc' program need to properly copy the temporary files into
the current directory. It names the Graph "unnamed" so you would
need to edit the file manually to combine multiple Graphs.
It would be useful if '-write-graph' command accepted a parameter
for a filename so you could have more than one Graph per directory.
The name used could also apply to the "digraph unnamed {" command
used on the first line of the output.
Thanks,
Rob
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list