diff --git a/docs/CommandGuide/llc.html b/docs/CommandGuide/llc.html
index 812f28a80b8..26e680342cd 100644
--- a/docs/CommandGuide/llc.html
+++ b/docs/CommandGuide/llc.html
@@ -20,7 +20,7 @@ llc
SYNOPSIS
-llc [options] < filename>
+llc [options] [filename]
DESCRIPTION
@@ -28,6 +28,62 @@ DESCRIPTION
The llc command compiles LLVM bytecode into assembly language for a specified
architecture. The assembly language output can then be passed through a native
assembler and linker to generate native code.
+
+The choice of architecture for the output assembly code is determined as
+follows:
+
+
+ -
+ If the user has specified an architecture with the -m option, use that
+ architecture.
+
+
+
-
+ Examine the input LLVM bytecode file:
+
+ -
+ If it specifies little endian and a pointer size of 32 bits, select the
+ x86 architecture.
+
+
+
-
+ If it specifies big endian and a pointer size of 64 bit pointers,
+ select the SparcV9 architecture.
+
+
+
+
-
+ If llc was compiled on an architecture for which it can generate code,
+ select the architecture upon which llc was compiled.
+
+
+
-
+ Print a message to the user asking him or her to specify the output
+ architecture explicitly.
+
+
+
+
+If filename is not specified, or if filename is -, llc reads its input from
+standard input. Otherwise, it will read its input from filename.
+
+
+If the -o option is left unspecified, then llc will send its output to standard
+output if the input is from standard input. If the -o option specifies -, then
+the output will also be sent to standard output.
+
+
+If no -o option is specified and an input file other than - is specified, then
+llc creates the output filename as follows:
+
+
+ -
+ If the file ends in .bc, then the .bc suffix is removed, and the .s suffix
+ is appended.
+
+
-
+ Otherwise, the .s suffix is appended to the input filename.
+
OPTIONS
@@ -36,42 +92,42 @@ OPTIONS
- -disable-fp-elim
- Disable frame pointer elimination optimization
+ Disable frame pointer elimination optimization.
- -disable-local-ra
- Use Simple RA instead of Local RegAlloc
+ Use Simple RA instead of Local RegAlloc.
- -disable-pattern-isel
- Use the 'simple' X86 instruction selector
+ Use the 'simple' X86 instruction selector.
- -disable-peephole
- Disable peephole optimization pass
+ Disable peephole optimization pass.
- -disable-preopt
- Disable optimizations prior to instruction selection
+ Disable optimizations prior to instruction selection.
- -disable-sched
- Disable local scheduling pass
+ Disable local scheduling pass.
- -disable-strip
- Do not strip the LLVM bytecode included in executable
+ Do not strip the LLVM bytecode included in executable.
- -enable-maps
- Emit LLVM-to-MachineCode mapping info to assembly
+ Emit LLVM-to-MachineCode mapping info to assembly.
- -f
@@ -81,13 +137,12 @@ OPTIONS
- -load=<plugin.so>
- Load the specified plugin
+ Load the specified plugin.
- -m<arch>
Specify the architecture for which to generate assembly. Valid
-
architectures are:
@@ -103,12 +158,12 @@ OPTIONS
- -o <filename>
- Output filename
+ Specify the output filename.
- -print-machineinstrs
- Print generated machine code
+ Print generated machine code.
- -help
diff --git a/docs/CommandGuide/lli.html b/docs/CommandGuide/lli.html
index 8fb4370a96c..2b504472be6 100644
--- a/docs/CommandGuide/lli.html
+++ b/docs/CommandGuide/lli.html
@@ -20,14 +20,43 @@ lli
SYNOPSIS
-lli [options] < filename>
+lli [options] [filename] [args ...]
DESCRIPTION
The lli command is the LLVM interpreter. It takes a program in LLVM bytecode
-format and executes it, either using an interpreter or a Just In Time (JIT)
-compiler.
+format and executes it using an interpreter or a Just In Time (JIT) compiler.
+
+
+If filename is not specified, then lli reads its input from standard input.
+
+The optional arguments specified on the command line are passed to the executed
+program as arguments.
+
+
+
+MAIN FUNCTION
+
+
+The main() function of the bytecode program is where execution starts. It
+is passed three arguments:
+
+
+ -
+ int argc - The number of command line arguments.
+
+
+
-
+ char ** argv - The arguments to the program.
+
+
+
-
+ char ** envp - An array of environment variables used by the program.
+
+
+The first argument to the program is the name of the executed bytecode file
+(with the .bc suffix removed).
OPTIONS