9 <h1>LLVM: llc tool</h1>
23 llc [options] [filename]
28 The llc command compiles LLVM bytecode into assembly language for a specified
29 architecture. The assembly language output can then be passed through a native
30 assembler and linker to generate native code.
32 The choice of architecture for the output assembly code is determined as
37 If the user has specified an architecture with the -m option, use that
42 Examine the input LLVM bytecode file:
45 If it specifies little endian and a pointer size of 32 bits, select the
50 If it specifies big endian and a pointer size of 64 bit pointers,
51 select the SparcV9 architecture.
56 If llc was compiled on an architecture for which it can generate code,
57 select the architecture upon which llc was compiled.
61 Print a message to the user asking him or her to specify the output
62 architecture explicitly.
67 If filename is not specified, or if filename is -, llc reads its input from
68 standard input. Otherwise, it will read its input from filename.
71 If the -o option is left unspecified, then llc will send its output to standard
72 output if the input is from standard input. If the -o option specifies -, then
73 the output will also be sent to standard output.
76 If no -o option is specified and an input file other than - is specified, then
77 llc creates the output filename as follows:
81 If the file ends in .bc, then the .bc suffix is removed, and the .s suffix
85 Otherwise, the .s suffix is appended to the input filename.
94 Overwrite output files
99 Specify the architecture for which to generate assembly. Valid
104 <dd>IA-32 (Pentium and above)</dd>
111 <li>-o <filename>
113 Specify the output filename.
118 Print a summary of command line options.
128 Record the amount of time needed for each pass and print it to standard
133 <h4>X86 Specific Options</h4>
137 Disable frame pointer elimination optimization.
140 <li>-disable-pattern-isel
142 Use the 'simple' X86 instruction selector (the default).
145 <li>-print-machineinstrs
147 Print generated machine code.
150 <li>-regalloc=<ra>
152 Specify the register allocator to use. The default is <i>simple</i>.
153 Valid register allocators are:
156 <dd>Very simple register allocator</dd>
159 <dd>Local register allocator</dd>
165 <h4>Sparc Specific Options</h4>
167 <li>-disable-peephole
169 Disable peephole optimization pass.
174 Disable optimizations prior to instruction selection.
179 Disable local scheduling pass.
184 Do not strip the LLVM bytecode included in executable.
189 Emit LLVM-to-MachineCode mapping info to assembly.
198 If llc succeeds, it will exit with 0. Otherwise, if an error occurs, it
199 will exit with a non-zero value.
207 <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>