docs: Add author info + fix incorrect code example.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 25 Nov 2008 21:34:53 +0000 (21:34 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 25 Nov 2008 21:34:53 +0000 (21:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60046 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc2/doc/LLVMC-Reference.rst
tools/llvmc2/doc/LLVMC-Tutorial.rst

index 91f7dda6a883b3f7c1003a2693ef2ca70d3e463a..01a8be0d20eff3bbe64e7c68267dd229cd720ed9 100644 (file)
@@ -1,6 +1,7 @@
 ===================================
 Customizing LLVMC: Reference Manual
 ===================================
+:Author: Mikhail Glushenkov <foldr@codedegers.com>
 
 LLVMC is a generic compiler driver, designed to be customizable and
 extensible. It plays the same role for LLVM as the ``gcc`` program
@@ -193,8 +194,10 @@ The definition of the compilation graph (see file
         Edge<"llvm_gcc_cpp", "llc">,
         ...
 
-        OptionalEdge<"llvm_gcc_c", "opt", [(switch_on "opt")]>,
-        OptionalEdge<"llvm_gcc_cpp", "opt", [(switch_on "opt")]>,
+        OptionalEdge<"llvm_gcc_c", "opt", (case (switch_on "opt"),
+                                          (inc_weight))>,
+        OptionalEdge<"llvm_gcc_cpp", "opt", (case (switch_on "opt"),
+                                                  (inc_weight))>,
         ...
 
         OptionalEdge<"llvm_gcc_assembler", "llvm_gcc_cpp_linker",
@@ -437,7 +440,7 @@ use TableGen inheritance instead.
 
 * Possible tests are:
 
-  - ``switch_on`` - Returns true if a given command-line option is
+  - ``switch_on`` - Returns true if a given command-line switch is
     provided by the user. Example: ``(switch_on "opt")``. Note that
     you have to define all possible command-line options separately in
     the tool descriptions. See the next section for the discussion of
@@ -481,8 +484,8 @@ Language map
 One last thing that you will need to modify when adding support for a
 new language to LLVMC is the language map, which defines mappings from
 file extensions to language names. It is used to choose the proper
-toolchain(s) for a given input file set. Language map definition is
-located in the file ``Tools.td`` and looks like this::
+toolchain(s) for a given input file set. Language map definition looks
+like this::
 
     def LanguageMap : LanguageMap<
         [LangToSuffixes<"c++", ["cc", "cp", "cxx", "cpp", "CPP", "c++", "C"]>,
index 1b545319176350db8b3e17e9a5736cd2f38cb32b..724fd4dfacbd376f7d2ec538780d21f2988145ac 100644 (file)
@@ -1,6 +1,7 @@
 ======================
 Tutorial - Using LLVMC
 ======================
+:Author: Mikhail Glushenkov <foldr@codedegers.com>
 
 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