summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-09-22 20:48:48 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-09-22 20:48:48 +0000
commit6f1db3df746f973c65cb090c64d8761bb1a41a35 (patch)
treeb905c776d06d594558398fc4e8c005cf409808be /llvm
parent4825a0bb2f5b0746df04eba00a41fbc51bc203ae (diff)
downloadbcm5719-llvm-6f1db3df746f973c65cb090c64d8761bb1a41a35.tar.gz
bcm5719-llvm-6f1db3df746f973c65cb090c64d8761bb1a41a35.zip
Add a 'Debugging' section to the documentation.
llvm-svn: 56464
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvmc2/doc/LLVMC-Reference.rst18
1 files changed, 17 insertions, 1 deletions
diff --git a/llvm/tools/llvmc2/doc/LLVMC-Reference.rst b/llvm/tools/llvmc2/doc/LLVMC-Reference.rst
index af0c8b7b2b7..9ec57dcfd39 100644
--- a/llvm/tools/llvmc2/doc/LLVMC-Reference.rst
+++ b/llvm/tools/llvmc2/doc/LLVMC-Reference.rst
@@ -69,7 +69,7 @@ configuration files:
* ``-v`` - Enable verbose mode, i.e. print out all executed commands.
* ``--view-graph`` - Show a graphical representation of the compilation
- graph. Requires that you have ``dot`` and ``gv`` commands
+ graph. Requires that you have ``dot`` and ``gv`` programs
installed. Hidden option, useful for debugging.
* ``--write-graph`` - Write a ``compilation-graph.dot`` file in the
@@ -414,9 +414,25 @@ located in the file ``Tools.td`` and looks like this::
...
]>;
+Debugging
+=========
+
+When writing LLVMC plugins, it can be useful to get a visual view of
+the resulting compilation graph. This can be achieved via the command
+line option ``--view-graph``. This command assumes that Graphviz [2]_ and
+Ghostview [3]_ are installed. There is also a ``--dump-graph`` option that
+creates a Graphviz source file(``compilation-graph.dot``) in the
+current directory.
+
References
==========
.. [1] TableGen Fundamentals
http://llvm.cs.uiuc.edu/docs/TableGenFundamentals.html
+
+.. [2] Graphviz
+ http://www.graphviz.org/
+
+.. [3] Ghostview
+ http://pages.cs.wisc.edu/~ghost/
OpenPOWER on IntegriCloud