From c0363fcba6dc43360e7c6272abca3a9492cf5136 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Sat, 13 Dec 2008 02:28:58 +0000 Subject: More cosmetic tweaks for llvmc docs. llvm-svn: 60969 --- llvm/tools/llvmc/doc/LLVMC-Tutorial.rst | 39 +++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 11 deletions(-) (limited to 'llvm/tools/llvmc/doc/LLVMC-Tutorial.rst') diff --git a/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst b/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst index 40292ee6271..a27bb209290 100644 --- a/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst +++ b/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst @@ -1,7 +1,17 @@ ====================== Tutorial - Using LLVMC ====================== -:Author: Mikhail Glushenkov + +.. contents:: + +.. raw:: html + +
+

Written by Mikhail Glushenkov

+
+ +Introduction +============ LLVMC is a generic compiler driver, which plays the same role for LLVM as the ``gcc`` program does for GCC - the difference being that LLVMC @@ -11,9 +21,6 @@ dynamically or compiled in. This tutorial describes the basic usage and configuration of LLVMC. -.. contents:: - - Compiling with LLVMC ==================== @@ -32,9 +39,11 @@ command-line LLVMC usage, refer to the ``llvmc --help`` output. Using LLVMC to generate toolchain drivers ========================================= -LLVMC plugins are written mostly using TableGen [1]_, so you need to +LLVMC plugins are written mostly using TableGen_, so you need to be familiar with it to get anything done. +.. _TableGen: http://llvm.cs.uiuc.edu/docs/TableGenFundamentals.html + Start by compiling ``plugins/Simple/Simple.td``, which is a primitive wrapper for ``gcc``:: @@ -93,11 +102,19 @@ file. To learn more about LLVMC customization, refer to the reference manual and plugin source code in the ``plugins`` directory. -References -========== +.. raw:: html -.. [1] TableGen Fundamentals - http://llvm.cs.uiuc.edu/docs/TableGenFundamentals.html +
+
+ + Valid CSS + + Valid XHTML 1.0 Transitional -.. raw:: html - :file: footer.html + Mikhail Glushenkov
+ LLVM Compiler Infrastructure
+ + Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $ +
-- cgit v1.2.3