blob: 812f28a80b87c6e4ee0b07421efd4e43206c5a33 [file] [log] [blame]
John Criswell69d903d2003-09-12 15:46:24 +00001<html>
2<title>
Chris Lattneree43b692003-09-25 19:50:05 +00003LLVM: llc tool
John Criswell69d903d2003-09-12 15:46:24 +00004</title>
5
6<body>
7
8<center>
Chris Lattneree43b692003-09-25 19:50:05 +00009<h1>LLVM: llc tool</h1>
John Criswell69d903d2003-09-12 15:46:24 +000010</center>
11<HR>
12
13<h3>
14NAME
15</h3>
16
17llc
18
19<h3>
20SYNOPSIS
21</h3>
22
23llc [options] &lt; filename&gt;
24<h3>
25DESCRIPTION
26</h3>
27
28The llc command compiles LLVM bytecode into assembly language for a specified
29architecture. The assembly language output can then be passed through a native
30assembler and linker to generate native code.
31
32<h3>
33OPTIONS
34</h3>
35
36<ul>
37 <li>-disable-fp-elim
38 <br>
39 Disable frame pointer elimination optimization
40 <p>
41
42 <li>-disable-local-ra
43 <br>
44 Use Simple RA instead of Local RegAlloc
45 <p>
46
47 <li>-disable-pattern-isel
48 <br>
49 Use the 'simple' X86 instruction selector
50 <p>
51
52 <li>-disable-peephole
53 <br>
54 Disable peephole optimization pass
55 <p>
56
57 <li>-disable-preopt
58 <br>
59 Disable optimizations prior to instruction selection
60 <p>
61
62 <li>-disable-sched
63 <br>
64 Disable local scheduling pass
65 <p>
66
67 <li>-disable-strip
68 <br>
69 Do not strip the LLVM bytecode included in executable
70 <p>
71
72 <li>-enable-maps
73 <br>
74 Emit LLVM-to-MachineCode mapping info to assembly
75 <p>
76
77 <li>-f
78 <br>
79 Overwrite output files
80 <p>
81
82 <li>-load=&lt;plugin.so&gt;
83 <br>
84 Load the specified plugin
85 <p>
86
87 <li>-m&lt;arch&gt;
88 <br>
89 Specify the architecture for which to generate assembly. Valid
90 <p>
91 architectures are:
92
93 <dl compact>
94 <di> x86
95 <dd>
96 IA-32 (Pentium and above)
97 <p>
98
99 <di> sparc
100 <dd>SPARC V9
101 </dl>
102 <p>
103
104 <li>-o &lt;filename&gt;
105 <br>
106 Output filename
107 <p>
108
109 <li>-print-machineinstrs
110 <br>
111 Print generated machine code
112 <p>
113
114 <li> -help
115 <br>
116 Print a summary of command line options.
117 <p>
118
119 <li> -stats
120 <br>
121 Print statistics.
122 <p>
123
124 <li> -time-passes
125 <br>
126 Record the amount of time needed for each pass and print it to standard
127 error.
128 <p>
129</ul>
130
131<h3>
132EXIT STATUS
133</h3>
134
135If llc succeeds, it will exit with 0. Otherwise, if an error occurs, it
136will exit with a non-zero value.
137
138<h3>
139SEE ALSO
140</h3>
141llvm-dis, lli
142
143<HR>
144<a href="http://llvm.cs.uiuc.edu">LLVM Team</a>
145</body>
146</html>
147