[llvm-commits] [llvm] r60046 - in /llvm/trunk/tools/llvmc2/doc: LLVMC-Reference.rst LLVMC-Tutorial.rst

Mikhail Glushenkov foldr at codedgers.com
Tue Nov 25 13:34:54 PST 2008


Author: foldr
Date: Tue Nov 25 15:34:53 2008
New Revision: 60046

URL: http://llvm.org/viewvc/llvm-project?rev=60046&view=rev
Log:
docs: Add author info + fix incorrect code example.

Modified:
    llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst
    llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst

Modified: llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst?rev=60046&r1=60045&r2=60046&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst (original)
+++ llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst Tue Nov 25 15:34:53 2008
@@ -1,6 +1,7 @@
 ===================================
 Customizing LLVMC: Reference Manual
 ===================================
+:Author: Mikhail Glushenkov <foldr at 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 @@
         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 @@
 
 * 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 @@
 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"]>,

Modified: llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst?rev=60046&r1=60045&r2=60046&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst (original)
+++ llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst Tue Nov 25 15:34:53 2008
@@ -1,6 +1,7 @@
 ======================
 Tutorial - Using LLVMC
 ======================
+:Author: Mikhail Glushenkov <foldr at 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





More information about the llvm-commits mailing list