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.
95 Disable frame pointer elimination optimization.
100 Use Simple RA instead of Local RegAlloc.
103 <li>-disable-pattern-isel
105 Use the 'simple' X86 instruction selector.
108 <li>-disable-peephole
110 Disable peephole optimization pass.
115 Disable optimizations prior to instruction selection.
120 Disable local scheduling pass.
125 Do not strip the LLVM bytecode included in executable.
130 Emit LLVM-to-MachineCode mapping info to assembly.
135 Overwrite output files
138 <li>-load=<plugin.so>
140 Load the specified plugin.
145 Specify the architecture for which to generate assembly. Valid
151 IA-32 (Pentium and above)
159 <li>-o <filename>
161 Specify the output filename.
164 <li>-print-machineinstrs
166 Print generated machine code.
171 Print a summary of command line options.
181 Record the amount of time needed for each pass and print it to standard
190 If llc succeeds, it will exit with 0. Otherwise, if an error occurs, it
191 will exit with a non-zero value.
199 <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>