1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.src.tar.xz">
|
---|
8 | <!ENTITY llvm-download-ftp " ">
|
---|
9 | <!ENTITY llvm-md5sum "07a7a74f3c6bd65de4702bf941b511a0">
|
---|
10 | <!ENTITY llvm-size "16 MB">
|
---|
11 | <!ENTITY llvm-buildsize "1.1 GB (with Clang. add 5.7GB for tests)">
|
---|
12 | <!ENTITY llvm-time "50 SBU (with Clang, add 15 SBU for tests)">
|
---|
13 |
|
---|
14 | <!ENTITY clang-download-http "http://llvm.org/releases/&llvm-version;/cfe-&llvm-version;.src.tar.xz">
|
---|
15 | <!ENTITY clang-md5sum "cc9e7019bb74e6459e80863606250c5">
|
---|
16 | <!ENTITY clang-size " 9.2 MB">
|
---|
17 |
|
---|
18 | <!ENTITY rt-version "&llvm-version;">
|
---|
19 | <!ENTITY compiler-rt-download-http "http://llvm.org/releases/&rt-version;/compiler-rt-&rt-version;.src.tar.xz">
|
---|
20 | <!ENTITY compiler-rt-md5sum "d6fcbe14352ffb708e4d1ac2e48bb025">
|
---|
21 | <!ENTITY compiler-rt-size "1.2 MB">
|
---|
22 | ]>
|
---|
23 |
|
---|
24 | <sect1 id="llvm" xreflabel="LLVM-&llvm-version;">
|
---|
25 | <?dbhtml filename="llvm.html" ?>
|
---|
26 |
|
---|
27 | <sect1info>
|
---|
28 | <othername>$LastChangedBy$</othername>
|
---|
29 | <date>$Date$</date>
|
---|
30 | </sect1info>
|
---|
31 |
|
---|
32 | <title>LLVM-&llvm-version;</title>
|
---|
33 |
|
---|
34 | <indexterm zone="llvm">
|
---|
35 | <primary sortas="a-LLVM">LLVM</primary>
|
---|
36 | </indexterm>
|
---|
37 |
|
---|
38 | <sect2 role="package">
|
---|
39 | <title>Introduction to LLVM</title>
|
---|
40 |
|
---|
41 | <para>
|
---|
42 | The <application>LLVM</application> package contains a collection of
|
---|
43 | modular and reusable compiler and toolchain technologies. The Low Level
|
---|
44 | Virtual Machine (LLVM) Core libraries provide a modern source and
|
---|
45 | target-independent optimizer, along with code generation support for many
|
---|
46 | popular CPUs (as well as some less common ones!). These libraries are
|
---|
47 | built around a well specified code representation known as the LLVM
|
---|
48 | intermediate representation ("LLVM IR").
|
---|
49 | </para>
|
---|
50 |
|
---|
51 | <para>
|
---|
52 | The optional <application>Clang</application> and <application>Compiler
|
---|
53 | RT</application> packages provide new C, C++, Objective C and Objective
|
---|
54 | C++ front-ends and runtime libraries for the
|
---|
55 | <application>LLVM</application>.
|
---|
56 | </para>
|
---|
57 |
|
---|
58 | <!--
|
---|
59 | <note>
|
---|
60 | <para>
|
---|
61 | This package hits a bug in GCC-4.9.0 or an unpatched GCC-4.9.1.
|
---|
62 | To build this package, GCC needs to be updated if you have one of
|
---|
63 | these versions. See <xref linkend="gcc"/>
|
---|
64 | for <application>gcc</application> installation instructions.
|
---|
65 | </para>
|
---|
66 | </note>
|
---|
67 | -->
|
---|
68 |
|
---|
69 | &lfs79_checked;&gcc6_checked;
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
72 | <itemizedlist spacing="compact">
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Download (HTTP): <ulink url="&llvm-download-http;"/>
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | Download (FTP): <ulink url="&llvm-download-ftp;"/>
|
---|
81 | </para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para>
|
---|
85 | Download MD5 sum: &llvm-md5sum;
|
---|
86 | </para>
|
---|
87 | </listitem>
|
---|
88 | <listitem>
|
---|
89 | <para>
|
---|
90 | Download size: &llvm-size;
|
---|
91 | </para>
|
---|
92 | </listitem>
|
---|
93 | <listitem>
|
---|
94 | <para>
|
---|
95 | Estimated disk space required: &llvm-buildsize;
|
---|
96 | </para>
|
---|
97 | </listitem>
|
---|
98 | <listitem>
|
---|
99 | <para>
|
---|
100 | Estimated build time: &llvm-time;
|
---|
101 | </para>
|
---|
102 | </listitem>
|
---|
103 | </itemizedlist>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect3">Optional Downloads</bridgehead>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Clang</bridgehead>
|
---|
108 | <itemizedlist spacing="compact">
|
---|
109 | <listitem>
|
---|
110 | <para>
|
---|
111 | Download: <ulink url="&clang-download-http;"/>
|
---|
112 | </para>
|
---|
113 | </listitem>
|
---|
114 | <listitem>
|
---|
115 | <para>
|
---|
116 | Download MD5 sum: &clang-md5sum;
|
---|
117 | </para>
|
---|
118 | </listitem>
|
---|
119 | <listitem>
|
---|
120 | <para>
|
---|
121 | Download size: &clang-size;
|
---|
122 | </para>
|
---|
123 | </listitem>
|
---|
124 | </itemizedlist>
|
---|
125 |
|
---|
126 | <bridgehead renderas="sect4">Compiler RT</bridgehead>
|
---|
127 | <itemizedlist spacing="compact">
|
---|
128 | <listitem>
|
---|
129 | <para>
|
---|
130 | Download: <ulink url="&compiler-rt-download-http;"/>
|
---|
131 | </para>
|
---|
132 | </listitem>
|
---|
133 | <listitem>
|
---|
134 | <para>
|
---|
135 | Download MD5 sum: &compiler-rt-md5sum;
|
---|
136 | </para>
|
---|
137 | </listitem>
|
---|
138 | <listitem>
|
---|
139 | <para>
|
---|
140 | Download size: &compiler-rt-size;
|
---|
141 | </para>
|
---|
142 | </listitem>
|
---|
143 | </itemizedlist>
|
---|
144 |
|
---|
145 | <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
|
---|
146 |
|
---|
147 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
148 | <para role="recommended">
|
---|
149 | <!-- autotools are obsolete and should not be used anymore. Cmake will be
|
---|
150 | required for 3.9 -->
|
---|
151 | <xref linkend="cmake"/>,
|
---|
152 | <xref linkend="libffi"/>, and
|
---|
153 | <xref linkend="python2"/>
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
157 | <para role="optional">
|
---|
158 | <xref linkend="doxygen"/>,
|
---|
159 | <xref linkend="graphviz"/>,
|
---|
160 | <xref linkend="libxml2"/>,
|
---|
161 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
|
---|
162 | <xref linkend="valgrind"/>,
|
---|
163 | <xref linkend="zip"/>,
|
---|
164 | <ulink url="http://www.ocaml.org/">OCaml</ulink>, and
|
---|
165 | <ulink url="http://pypi.python.org/pypi/Sphinx">Sphinx</ulink>
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <para condition="html" role="usernotes">User Notes:
|
---|
169 | <ulink url="&blfs-wiki;/llvm"/>
|
---|
170 | </para>
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="installation">
|
---|
174 | <title>Installation of LLVM</title>
|
---|
175 |
|
---|
176 | <para>
|
---|
177 | If you have downloaded the optional packages, install them into
|
---|
178 | the source tree by running the following commands:
|
---|
179 | </para>
|
---|
180 |
|
---|
181 | <screen><userinput>tar -xf ../cfe-&llvm-version;.src.tar.xz -C tools &&
|
---|
182 | tar -xf ../compiler-rt-&rt-version;.src.tar.xz -C projects &&
|
---|
183 |
|
---|
184 | mv tools/cfe-&llvm-version;.src tools/clang &&
|
---|
185 | mv projects/compiler-rt-&rt-version;.src projects/compiler-rt</userinput></screen>
|
---|
186 |
|
---|
187 | <!-- For 3.7.0: Fixed at version 3.8.0.
|
---|
188 | <para>
|
---|
189 | The run-time library needs to be fixed for 32 bit installations:
|
---|
190 | </para>
|
---|
191 |
|
---|
192 | <screen><userinput>sed -r "/ifeq.*CompilerTargetArch/s#i386#i686#g" \
|
---|
193 | -i projects/compiler-rt/make/platform/clang_linux.mk</userinput></screen>
|
---|
194 | -->
|
---|
195 |
|
---|
196 | <para>
|
---|
197 | Install <application>LLVM</application> by running the following
|
---|
198 | commands:
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <!-- Not used in the build system.
|
---|
202 | <screen><userinput>sed -e "s:/docs/llvm:/share/doc/llvm-&llvm-version;:" \
|
---|
203 | -i Makefile.config.in &&
|
---|
204 |
|
---|
205 | -->
|
---|
206 | <screen><userinput>mkdir -v build &&
|
---|
207 | cd build &&
|
---|
208 |
|
---|
209 | CC=gcc CXX=g++ \
|
---|
210 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
211 | -DLLVM_ENABLE_FFI=ON \
|
---|
212 | -DCMAKE_BUILD_TYPE=Release \
|
---|
213 | -DBUILD_SHARED_LIBS=ON \
|
---|
214 | -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
|
---|
215 | -Wno-dev .. &&
|
---|
216 | make</userinput></screen>
|
---|
217 |
|
---|
218 | <para>
|
---|
219 | If you have installed <application>Sphinx</application> and wish
|
---|
220 | to generate the HTML documentation and manual pages, issue the
|
---|
221 | following commands:
|
---|
222 | </para>
|
---|
223 | <!-- The following command still works, but let's try the next one
|
---|
224 | <screen><userinput>make -C ../docs -f Makefile.sphinx man</userinput></screen>
|
---|
225 | -->
|
---|
226 |
|
---|
227 | <screen><userinput>cmake -DLLVM_ENABLE_SPHINX=ON \
|
---|
228 | -DSPHINX_WARNINGS_AS_ERRORS=OFF \
|
---|
229 | -Wno-dev .. &&
|
---|
230 | make docs-llvm-html docs-llvm-man</userinput></screen>
|
---|
231 | <para>
|
---|
232 | If you have downloaded the optional packages, the clang documentation
|
---|
233 | can be built too:
|
---|
234 | </para>
|
---|
235 | <screen><userinput>make docs-clang-html docs-clang-man</userinput></screen>
|
---|
236 | <para>
|
---|
237 | <!-- all tests pass for version 3.8.0 -->
|
---|
238 | To test the results, issue <command>make check-all</command>.
|
---|
239 | <!-- Some tests may fail for unknown reasons. -->
|
---|
240 | </para>
|
---|
241 |
|
---|
242 | <para>
|
---|
243 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
244 | </para>
|
---|
245 |
|
---|
246 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
247 |
|
---|
248 | <!-- version 3.8.0: Clang-analyzer is built and installed by default.
|
---|
249 |
|
---|
250 | <para>
|
---|
251 | If you had <xref linkend="python2"/> installed and you have
|
---|
252 | built <application>Clang</application>, install the
|
---|
253 | <application>Clang Analyzer</application> by running the
|
---|
254 | following command as the
|
---|
255 | <systemitem class="username">root</systemitem> user:
|
---|
256 | </para>
|
---|
257 |
|
---|
258 | <screen role="root"><userinput>install -v -dm755 /usr/lib/clang-analyzer &&
|
---|
259 |
|
---|
260 | for prog in scan-build scan-view
|
---|
261 | do
|
---|
262 | cp -rfv ../tools/clang/tools/$prog /usr/lib/clang-analyzer/ &&
|
---|
263 | ln -sfv ../lib/clang-analyzer/$prog/$prog /usr/bin/
|
---|
264 | done
|
---|
265 | unset prog &&
|
---|
266 |
|
---|
267 | ln -sfv /usr/bin/clang \
|
---|
268 | /usr/lib/clang-analyzer/scan-build/ &&
|
---|
269 | mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 \
|
---|
270 | /usr/share/man/man1/</userinput></screen>
|
---|
271 |
|
---|
272 | <para>
|
---|
273 | If you have built manual pages, install them by running the
|
---|
274 | following command as the
|
---|
275 | <systemitem class="username">root</systemitem> user:
|
---|
276 | </para>
|
---|
277 |
|
---|
278 | <screen role="root"><userinput>install -v -m644 ../docs/_build/man/* /usr/share/man/man1/</userinput></screen> -->
|
---|
279 | <para>
|
---|
280 | If you have built the documentation, install it by running the
|
---|
281 | following command as the <systemitem class="username">root</systemitem>
|
---|
282 | user:
|
---|
283 | </para>
|
---|
284 |
|
---|
285 | <screen role="root"><userinput>install -v -m644 tools/clang/docs/man/* /usr/share/man/man1 &&
|
---|
286 | install -v -d -m755 /usr/share/doc/llvm-&llvm-version;/clang-html &&
|
---|
287 | cp -Rv tools/clang/docs/html/* /usr/share/doc/llvm-&llvm-version;/clang-html</userinput></screen>
|
---|
288 |
|
---|
289 | </sect2>
|
---|
290 |
|
---|
291 | <sect2 role="commands">
|
---|
292 | <title>Command Explanations</title>
|
---|
293 |
|
---|
294 | <!--
|
---|
295 | <para>
|
---|
296 | <command>sed -e ... Makefile.config.in</command>: This sed fixes
|
---|
297 | location of the installed documentation.
|
---|
298 | </para>
|
---|
299 |
|
---|
300 | <para>
|
---|
301 | <parameter>- -enable-libffi</parameter>: This switch enables
|
---|
302 | -->
|
---|
303 | <para>
|
---|
304 | <parameter>-DLLVM_ENABLE_FFI=ON</parameter>: This switch enables
|
---|
305 | <application>LLVM</application> to use
|
---|
306 | <application>libffi</application>. Remove if you did not
|
---|
307 | install <application>libffi</application>.
|
---|
308 | </para>
|
---|
309 |
|
---|
310 | <para>
|
---|
311 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch enables
|
---|
312 | compiler optimizations in order to speed up the code and reduce its size.
|
---|
313 | It also disables some compile checks, which are are not necessary on a
|
---|
314 | production system.
|
---|
315 | </para>
|
---|
316 |
|
---|
317 | <para>
|
---|
318 | <parameter>-DBUILD_SHARED_LIBS=ON</parameter>: This switch enables
|
---|
319 | building all the <application>LLVM</application> libraries as shared
|
---|
320 | libraries instead of static libraries.
|
---|
321 | </para>
|
---|
322 |
|
---|
323 | <para>
|
---|
324 | <parameter>-DLLVM_TARGETS_TO_BUILD="host;AMDGPU"</parameter>. This
|
---|
325 | switch enables building for the same target as the host, and also for
|
---|
326 | the r600 AMD GPU used by the Mesa r600 and radeonsi drivers. Default is
|
---|
327 | all of them. You can use a semicolon separated list. Valid targets are:
|
---|
328 | host, X86, Sparc, PowerPC, ARM, AArch64, Mips, Hexagon, Xcore, MSP430,
|
---|
329 | NVPTX, SystemZ, AMDGPU, BPF, CppBackend, or all.
|
---|
330 | </para>
|
---|
331 |
|
---|
332 | <para>
|
---|
333 | <option>-DLLVM_BUILD_LLVM_DYLIB=ON</option>: if used instead of
|
---|
334 | <parameter>-DBUILD_SHARED_LIBS=ON</parameter>, this builds libraries as
|
---|
335 | static and links all of them into a unique shared one.
|
---|
336 | </para>
|
---|
337 |
|
---|
338 | <para>
|
---|
339 | <option>-DLLVM_ENABLE_DOXYGEN</option>: Enables the generation of
|
---|
340 | browsable HTML documentation if you have installed <xref
|
---|
341 | linkend="doxygen"/>. YOu should run <command>make doxygen-html</command>
|
---|
342 | afterwards, and install the generated documentation manually.
|
---|
343 | </para>
|
---|
344 |
|
---|
345 | </sect2>
|
---|
346 |
|
---|
347 | <sect2 role="content">
|
---|
348 | <title>Contents</title>
|
---|
349 |
|
---|
350 | <segmentedlist>
|
---|
351 | <segtitle>Installed Programs</segtitle>
|
---|
352 | <segtitle>Installed Libraries</segtitle>
|
---|
353 | <segtitle>Installed Directories</segtitle>
|
---|
354 |
|
---|
355 | <seglistitem>
|
---|
356 | <seg>
|
---|
357 | bugpoint, c-index-test, clang, clang++ (symlinks to
|
---|
358 | clang-<version>), clang-<version>, clang-check,
|
---|
359 | clang-format, git-clang-format,
|
---|
360 | llc, lli, llvm-ar, llvm-as, llvm-bcanalyzer, llvm-config, llvm-cov,
|
---|
361 | llvm-c-test, llvm-cxxdump, llvm-diff, llvm-dis, llvm-dsymutil,
|
---|
362 | llvm-dwarfdump, llvm-dwp, llvm-extract, llvm-lib (symlink to
|
---|
363 | llvm-ar), llvm-link, llvm-lto, llvm-mc, llvm-mcmarkup, llvm-nm,
|
---|
364 | llvm-objdump, llvm-pdbdump, llvm-profdata, llvm-ranlib (symlink to
|
---|
365 | llvm-ar), llvm-readobj, llvm-rtdyld, llvm-size, llvm-split,
|
---|
366 | llvm-stress, llvm-symbolizer, llvm-tblgen, obj2yaml, opt, san-cov,
|
---|
367 | scan-build, scan-view, verify-uselistorder, and yaml2obj
|
---|
368 | </seg>
|
---|
369 | <seg>
|
---|
370 | BugpointPasses.so, libclang*.so (21 libraries), libLLVM*.so (53
|
---|
371 | libraries), libLTO.so, and LLVMHello.so
|
---|
372 | </seg>
|
---|
373 | <seg>
|
---|
374 | /usr/include/{clang,clang-c,llvm,llvm-c},
|
---|
375 | /usr/lib/clang, and
|
---|
376 | /usr/share/{clang,llvm,scan-build,scan-view,doc/llvm-&llvm-version;)
|
---|
377 | </seg>
|
---|
378 | </seglistitem>
|
---|
379 | </segmentedlist>
|
---|
380 |
|
---|
381 | <variablelist>
|
---|
382 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
383 | <?dbfo list-presentation="list"?>
|
---|
384 | <?dbhtml list-presentation="table"?>
|
---|
385 |
|
---|
386 | <varlistentry id="bugpoint">
|
---|
387 | <term><command>bugpoint</command></term>
|
---|
388 | <listitem>
|
---|
389 | <para>
|
---|
390 | is the automatic test case reduction tool.
|
---|
391 | </para>
|
---|
392 | <indexterm zone="llvm bugpoint">
|
---|
393 | <primary sortas="b-bugpoint">bugpoint</primary>
|
---|
394 | </indexterm>
|
---|
395 | </listitem>
|
---|
396 | </varlistentry>
|
---|
397 |
|
---|
398 | <varlistentry id="clang">
|
---|
399 | <term><command>clang</command></term>
|
---|
400 | <listitem>
|
---|
401 | <para>
|
---|
402 | is the <application>Clang</application> C, C++,
|
---|
403 | and Objective-C compiler.
|
---|
404 | </para>
|
---|
405 | <indexterm zone="llvm clang">
|
---|
406 | <primary sortas="b-clang">clang</primary>
|
---|
407 | </indexterm>
|
---|
408 | </listitem>
|
---|
409 | </varlistentry>
|
---|
410 |
|
---|
411 | <varlistentry id="clang-format">
|
---|
412 | <term><command>clang-format</command></term>
|
---|
413 | <listitem>
|
---|
414 | <para>
|
---|
415 | is a tool to format C/C++/Java/JavaScript/Objective-C/Protobuf
|
---|
416 | code.
|
---|
417 | </para>
|
---|
418 | <indexterm zone="llvm clang-format">
|
---|
419 | <primary sortas="b-clang-format">clang-format</primary>
|
---|
420 | </indexterm>
|
---|
421 | </listitem>
|
---|
422 | </varlistentry>
|
---|
423 |
|
---|
424 | <varlistentry id="llc">
|
---|
425 | <term><command>llc</command></term>
|
---|
426 | <listitem>
|
---|
427 | <para>
|
---|
428 | is the <application>LLVM</application> static compiler.
|
---|
429 | </para>
|
---|
430 | <indexterm zone="llvm llc">
|
---|
431 | <primary sortas="b-llc">llc</primary>
|
---|
432 | </indexterm>
|
---|
433 | </listitem>
|
---|
434 | </varlistentry>
|
---|
435 |
|
---|
436 | <varlistentry id="lli">
|
---|
437 | <term><command>lli</command></term>
|
---|
438 | <listitem>
|
---|
439 | <para>
|
---|
440 | is used to directly execute programs from
|
---|
441 | <application>LLVM</application> bitcode.
|
---|
442 | </para>
|
---|
443 | <indexterm zone="llvm lli">
|
---|
444 | <primary sortas="b-lli">lli</primary>
|
---|
445 | </indexterm>
|
---|
446 | </listitem>
|
---|
447 | </varlistentry>
|
---|
448 |
|
---|
449 | <varlistentry id="llvm-ar">
|
---|
450 | <term><command>llvm-ar</command></term>
|
---|
451 | <listitem>
|
---|
452 | <para>
|
---|
453 | is the <application>LLVM</application> archiver.
|
---|
454 | </para>
|
---|
455 | <indexterm zone="llvm llvm-ar">
|
---|
456 | <primary sortas="b-llvm-ar">llvm-ar</primary>
|
---|
457 | </indexterm>
|
---|
458 | </listitem>
|
---|
459 | </varlistentry>
|
---|
460 |
|
---|
461 | <varlistentry id="llvm-as">
|
---|
462 | <term><command>llvm-as</command></term>
|
---|
463 | <listitem>
|
---|
464 | <para>
|
---|
465 | is the <application>LLVM</application> assembler.
|
---|
466 | </para>
|
---|
467 | <indexterm zone="llvm llvm-as">
|
---|
468 | <primary sortas="b-llvm-as">llvm-as</primary>
|
---|
469 | </indexterm>
|
---|
470 | </listitem>
|
---|
471 | </varlistentry>
|
---|
472 |
|
---|
473 | <varlistentry id="llvm-bcanalyzer">
|
---|
474 | <term><command>llvm-bcanalyzer</command></term>
|
---|
475 | <listitem>
|
---|
476 | <para>
|
---|
477 | is the <application>LLVM</application> bitcode analyzer.
|
---|
478 | </para>
|
---|
479 | <indexterm zone="llvm llvm-bcanalyzer">
|
---|
480 | <primary sortas="b-llvm-bcanalyzer">llvm-bcanalyzer</primary>
|
---|
481 | </indexterm>
|
---|
482 | </listitem>
|
---|
483 | </varlistentry>
|
---|
484 |
|
---|
485 | <varlistentry id="llvm-config">
|
---|
486 | <term><command>llvm-config</command></term>
|
---|
487 | <listitem>
|
---|
488 | <para>
|
---|
489 | Prints <application>LLVM</application> compilation options.
|
---|
490 | </para>
|
---|
491 | <indexterm zone="llvm llvm-config">
|
---|
492 | <primary sortas="b-llvm-config">llvm-config</primary>
|
---|
493 | </indexterm>
|
---|
494 | </listitem>
|
---|
495 | </varlistentry>
|
---|
496 |
|
---|
497 | <varlistentry id="llvm-cov">
|
---|
498 | <term><command>llvm-cov</command></term>
|
---|
499 | <listitem>
|
---|
500 | <para>
|
---|
501 | is used to emit coverage information.
|
---|
502 | </para>
|
---|
503 | <indexterm zone="llvm llvm-cov">
|
---|
504 | <primary sortas="b-llvm-cov">llvm-cov</primary>
|
---|
505 | </indexterm>
|
---|
506 | </listitem>
|
---|
507 | </varlistentry>
|
---|
508 |
|
---|
509 | <varlistentry id="llvm-c-test">
|
---|
510 | <term><command>llvm-c-test</command></term>
|
---|
511 | <listitem>
|
---|
512 | <para>
|
---|
513 | is a bytecode disassembler.
|
---|
514 | </para>
|
---|
515 | <indexterm zone="llvm llvm-c-test">
|
---|
516 | <primary sortas="b-llvm-c-test">llvm-c-test</primary>
|
---|
517 | </indexterm>
|
---|
518 | </listitem>
|
---|
519 | </varlistentry>
|
---|
520 |
|
---|
521 | <varlistentry id="llvm-cxxdump">
|
---|
522 | <term><command>llvm-cxxdump</command></term>
|
---|
523 | <listitem>
|
---|
524 | <para>
|
---|
525 | is used as a C++ ABI Data Dumper.
|
---|
526 | </para>
|
---|
527 | <indexterm zone="llvm llvm-cxxdump">
|
---|
528 | <primary sortas="b-llvm-cxxdump">llvm-cxxdump</primary>
|
---|
529 | </indexterm>
|
---|
530 | </listitem>
|
---|
531 | </varlistentry>
|
---|
532 |
|
---|
533 | <varlistentry id="llvm-diff">
|
---|
534 | <term><command>llvm-diff</command></term>
|
---|
535 | <listitem>
|
---|
536 | <para>
|
---|
537 | is the <application>LLVM</application> structural
|
---|
538 | '<command>diff</command>'.
|
---|
539 | </para>
|
---|
540 | <indexterm zone="llvm llvm-diff">
|
---|
541 | <primary sortas="b-llvm-diff">llvm-diff</primary>
|
---|
542 | </indexterm>
|
---|
543 | </listitem>
|
---|
544 | </varlistentry>
|
---|
545 |
|
---|
546 | <varlistentry id="llvm-dis">
|
---|
547 | <term><command>llvm-dis</command></term>
|
---|
548 | <listitem>
|
---|
549 | <para>
|
---|
550 | is the <application>LLVM</application> disassembler.
|
---|
551 | </para>
|
---|
552 | <indexterm zone="llvm llvm-dis">
|
---|
553 | <primary sortas="b-llvm-dis">llvm-dis</primary>
|
---|
554 | </indexterm>
|
---|
555 | </listitem>
|
---|
556 | </varlistentry>
|
---|
557 |
|
---|
558 | <varlistentry id="llvm-dsymutil">
|
---|
559 | <term><command>llvm-dsymutil</command></term>
|
---|
560 | <listitem>
|
---|
561 | <para>
|
---|
562 | is a tool used to manipulate archived DWARF debug symbol files,
|
---|
563 | compatible with the Darwin command <command>dsymutil</command>.
|
---|
564 | </para>
|
---|
565 | <indexterm zone="llvm llvm-dsymutil">
|
---|
566 | <primary sortas="b-llvm-dsymutil">llvm-dsymutil</primary>
|
---|
567 | </indexterm>
|
---|
568 | </listitem>
|
---|
569 | </varlistentry>
|
---|
570 |
|
---|
571 | <varlistentry id="llvm-dwarfdump">
|
---|
572 | <term><command>llvm-dwarfdump</command></term>
|
---|
573 | <listitem>
|
---|
574 | <para>
|
---|
575 | prints the content of DWARF sections in object files.
|
---|
576 | </para>
|
---|
577 | <indexterm zone="llvm llvm-dwarfdump">
|
---|
578 | <primary sortas="b-llvm-dwarfdump">llvm-dwarfdump</primary>
|
---|
579 | </indexterm>
|
---|
580 | </listitem>
|
---|
581 | </varlistentry>
|
---|
582 |
|
---|
583 | <varlistentry id="llvm-dwp">
|
---|
584 | <term><command>llvm-dwp</command></term>
|
---|
585 | <listitem>
|
---|
586 | <para>
|
---|
587 | merge split DWARF files.
|
---|
588 | </para>
|
---|
589 | <indexterm zone="llvm llvm-dwp">
|
---|
590 | <primary sortas="b-llvm-dwp">llvm-dwp</primary>
|
---|
591 | </indexterm>
|
---|
592 | </listitem>
|
---|
593 | </varlistentry>
|
---|
594 |
|
---|
595 | <varlistentry id="llvm-extract">
|
---|
596 | <term><command>llvm-extract</command></term>
|
---|
597 | <listitem>
|
---|
598 | <para>
|
---|
599 | is used to extract a function from an
|
---|
600 | <application>LLVM</application> module.
|
---|
601 | </para>
|
---|
602 | <indexterm zone="llvm llvm-extract">
|
---|
603 | <primary sortas="b-llvm-extract">llvm-extract</primary>
|
---|
604 | </indexterm>
|
---|
605 | </listitem>
|
---|
606 | </varlistentry>
|
---|
607 |
|
---|
608 | <varlistentry id="llvm-link">
|
---|
609 | <term><command>llvm-link</command></term>
|
---|
610 | <listitem>
|
---|
611 | <para>
|
---|
612 | is the <application>LLVM</application> linker.
|
---|
613 | </para>
|
---|
614 | <indexterm zone="llvm llvm-link">
|
---|
615 | <primary sortas="b-llvm-link">llvm-link</primary>
|
---|
616 | </indexterm>
|
---|
617 | </listitem>
|
---|
618 | </varlistentry>
|
---|
619 |
|
---|
620 | <varlistentry id="llvm-lto">
|
---|
621 | <term><command>llvm-lto</command></term>
|
---|
622 | <listitem>
|
---|
623 | <para>
|
---|
624 | is the <application>LLVM</application> LTO (link time optimization)
|
---|
625 | linker.
|
---|
626 | </para>
|
---|
627 | <indexterm zone="llvm llvm-lto">
|
---|
628 | <primary sortas="b-llvm-lto">llvm-lto</primary>
|
---|
629 | </indexterm>
|
---|
630 | </listitem>
|
---|
631 | </varlistentry>
|
---|
632 |
|
---|
633 | <varlistentry id="llvm-mc">
|
---|
634 | <term><command>llvm-mc</command></term>
|
---|
635 | <listitem>
|
---|
636 | <para>
|
---|
637 | is a standalone machine code assembler/disassembler.
|
---|
638 | </para>
|
---|
639 | <indexterm zone="llvm llvm-mc">
|
---|
640 | <primary sortas="b-llvm-mc">llvm-mc</primary>
|
---|
641 | </indexterm>
|
---|
642 | </listitem>
|
---|
643 | </varlistentry>
|
---|
644 |
|
---|
645 | <varlistentry id="llvm-nm">
|
---|
646 | <term><command>llvm-nm</command></term>
|
---|
647 | <listitem>
|
---|
648 | <para>
|
---|
649 | is used to list <application>LLVM</application> bitcode
|
---|
650 | and an object file's symbol table.
|
---|
651 | </para>
|
---|
652 | <indexterm zone="llvm llvm-nm">
|
---|
653 | <primary sortas="b-llvm-nm">llvm-nm</primary>
|
---|
654 | </indexterm>
|
---|
655 | </listitem>
|
---|
656 | </varlistentry>
|
---|
657 |
|
---|
658 | <varlistentry id="llvm-objdump">
|
---|
659 | <term><command>llvm-objdump</command></term>
|
---|
660 | <listitem>
|
---|
661 | <para>
|
---|
662 | is an <application>LLVM</application> object file dumper.
|
---|
663 | </para>
|
---|
664 | <indexterm zone="llvm llvm-objdump">
|
---|
665 | <primary sortas="b-llvm-objdump">llvm-objdump</primary>
|
---|
666 | </indexterm>
|
---|
667 | </listitem>
|
---|
668 | </varlistentry>
|
---|
669 |
|
---|
670 | <varlistentry id="llvm-pdbdump">
|
---|
671 | <term><command>llvm-pdbdump</command></term>
|
---|
672 | <listitem>
|
---|
673 | <para>
|
---|
674 | is used as a PDB Dumper.
|
---|
675 | </para>
|
---|
676 | <indexterm zone="llvm llvm-pdbdump">
|
---|
677 | <primary sortas="b-llvm-pdbdump">llvm-pdbdump</primary>
|
---|
678 | </indexterm>
|
---|
679 | </listitem>
|
---|
680 | </varlistentry>
|
---|
681 |
|
---|
682 | <varlistentry id="llvm-profdata">
|
---|
683 | <term><command>llvm-profdata</command></term>
|
---|
684 | <listitem>
|
---|
685 | <para>
|
---|
686 | is a small tool to manipulate and print profile data files.
|
---|
687 | </para>
|
---|
688 | <indexterm zone="llvm llvm-profdata">
|
---|
689 | <primary sortas="b-llvm-profdata">llvm-profdata</primary>
|
---|
690 | </indexterm>
|
---|
691 | </listitem>
|
---|
692 | </varlistentry>
|
---|
693 |
|
---|
694 | <varlistentry id="llvm-ranlib">
|
---|
695 | <term><command>llvm-ranlib</command></term>
|
---|
696 | <listitem>
|
---|
697 | <para>
|
---|
698 | is used to generate an index for a <application>LLVM</application>
|
---|
699 | archive.
|
---|
700 | </para>
|
---|
701 | <indexterm zone="llvm llvm-ranlib">
|
---|
702 | <primary sortas="b-llvm-ranlib">llvm-ranlib</primary>
|
---|
703 | </indexterm>
|
---|
704 | </listitem>
|
---|
705 | </varlistentry>
|
---|
706 |
|
---|
707 | <varlistentry id="llvm-readobj">
|
---|
708 | <term><command>llvm-readobj</command></term>
|
---|
709 | <listitem>
|
---|
710 | <para>
|
---|
711 | displays low-level format-specific information about object files.
|
---|
712 | </para>
|
---|
713 | <indexterm zone="llvm llvm-readobj">
|
---|
714 | <primary sortas="b-llvm-readobj">llvm-readobj</primary>
|
---|
715 | </indexterm>
|
---|
716 | </listitem>
|
---|
717 | </varlistentry>
|
---|
718 |
|
---|
719 | <varlistentry id="llvm-rtdyld">
|
---|
720 | <term><command>llvm-rtdyld</command></term>
|
---|
721 | <listitem>
|
---|
722 | <para>
|
---|
723 | <application>LLVM</application> MC-JIT tool.
|
---|
724 | </para>
|
---|
725 | <indexterm zone="llvm llvm-rtdyld">
|
---|
726 | <primary sortas="b-llvm-rtdyld">llvm-rtdyld</primary>
|
---|
727 | </indexterm>
|
---|
728 | </listitem>
|
---|
729 | </varlistentry>
|
---|
730 |
|
---|
731 | <varlistentry id="llvm-size">
|
---|
732 | <term><command>llvm-size</command></term>
|
---|
733 | <listitem>
|
---|
734 | <para>
|
---|
735 | <application>LLVM</application> object size dumper.
|
---|
736 | </para>
|
---|
737 | <indexterm zone="llvm llvm-size">
|
---|
738 | <primary sortas="b-llvm-size">llvm-size</primary>
|
---|
739 | </indexterm>
|
---|
740 | </listitem>
|
---|
741 | </varlistentry>
|
---|
742 |
|
---|
743 | <varlistentry id="llvm-split">
|
---|
744 | <term><command>llvm-split</command></term>
|
---|
745 | <listitem>
|
---|
746 | <para>
|
---|
747 | <application>LLVM</application> module splitter.
|
---|
748 | </para>
|
---|
749 | <indexterm zone="llvm llvm-split">
|
---|
750 | <primary sortas="b-llvm-split">llvm-split</primary>
|
---|
751 | </indexterm>
|
---|
752 | </listitem>
|
---|
753 | </varlistentry>
|
---|
754 |
|
---|
755 | <varlistentry id="llvm-stress">
|
---|
756 | <term><command>llvm-stress</command></term>
|
---|
757 | <listitem>
|
---|
758 | <para>
|
---|
759 | is used to generate random
|
---|
760 | <filename class="extension">.ll</filename> files.
|
---|
761 | </para>
|
---|
762 | <indexterm zone="llvm llvm-stress">
|
---|
763 | <primary sortas="b-llvm-stress">llvm-stress</primary>
|
---|
764 | </indexterm>
|
---|
765 | </listitem>
|
---|
766 | </varlistentry>
|
---|
767 |
|
---|
768 | <varlistentry id="llvm-symbolizer">
|
---|
769 | <term><command>llvm-symbolizer</command></term>
|
---|
770 | <listitem>
|
---|
771 | <para>
|
---|
772 | converts addresses into source code locations.
|
---|
773 | </para>
|
---|
774 | <indexterm zone="llvm llvm-symbolizer">
|
---|
775 | <primary sortas="b-llvm-symbolizer">llvm-symbolizer</primary>
|
---|
776 | </indexterm>
|
---|
777 | </listitem>
|
---|
778 | </varlistentry>
|
---|
779 |
|
---|
780 | <varlistentry id="llvm-tblgen">
|
---|
781 | <term><command>llvm-tblgen</command></term>
|
---|
782 | <listitem>
|
---|
783 | <para>
|
---|
784 | is the <application>LLVM</application> Target Description
|
---|
785 | To C++ Code Generator.
|
---|
786 | </para>
|
---|
787 | <indexterm zone="llvm llvm-tblgen">
|
---|
788 | <primary sortas="b-llvm-tblgen">llvm-tblgen</primary>
|
---|
789 | </indexterm>
|
---|
790 | </listitem>
|
---|
791 | </varlistentry>
|
---|
792 |
|
---|
793 | <varlistentry id="obj2yaml">
|
---|
794 | <term><command>obj2yaml</command></term>
|
---|
795 | <listitem>
|
---|
796 | <para>
|
---|
797 | takes an object file,and produces a YAML representation of the
|
---|
798 | file.
|
---|
799 | </para>
|
---|
800 | <indexterm zone="llvm obj2yaml">
|
---|
801 | <primary sortas="b-obj2yaml">obj2yaml</primary>
|
---|
802 | </indexterm>
|
---|
803 | </listitem>
|
---|
804 | </varlistentry>
|
---|
805 |
|
---|
806 | <varlistentry id="opt">
|
---|
807 | <term><command>opt</command></term>
|
---|
808 | <listitem>
|
---|
809 | <para>
|
---|
810 | is the <application>LLVM</application> optimizer.
|
---|
811 | </para>
|
---|
812 | <indexterm zone="llvm opt">
|
---|
813 | <primary sortas="b-opt">opt</primary>
|
---|
814 | </indexterm>
|
---|
815 | </listitem>
|
---|
816 | </varlistentry>
|
---|
817 |
|
---|
818 | <varlistentry id="sancov">
|
---|
819 | <term><command>sancov</command></term>
|
---|
820 | <listitem>
|
---|
821 | <para>
|
---|
822 | sanitizer coverage processing tool.
|
---|
823 | </para>
|
---|
824 | <indexterm zone="llvm sancov">
|
---|
825 | <primary sortas="b-sancov">sancov</primary>
|
---|
826 | </indexterm>
|
---|
827 | </listitem>
|
---|
828 | </varlistentry>
|
---|
829 |
|
---|
830 | <varlistentry id="scan-build">
|
---|
831 | <term><command>scan-build</command></term>
|
---|
832 | <listitem>
|
---|
833 | <para>
|
---|
834 | is a <application>Perl</application> script that invokes the
|
---|
835 | <application>Clang</application> static analyzer.
|
---|
836 | </para>
|
---|
837 | <indexterm zone="llvm scan-build">
|
---|
838 | <primary sortas="b-scan-build">scan-build</primary>
|
---|
839 | </indexterm>
|
---|
840 | </listitem>
|
---|
841 | </varlistentry>
|
---|
842 |
|
---|
843 | <varlistentry id="scan-view">
|
---|
844 | <term><command>scan-view</command></term>
|
---|
845 | <listitem>
|
---|
846 | <para>
|
---|
847 | is a viewer for <application>Clang</application> static analyzer
|
---|
848 | results.
|
---|
849 | </para>
|
---|
850 | <indexterm zone="llvm scan-view">
|
---|
851 | <primary sortas="b-scan-view">scan-view</primary>
|
---|
852 | </indexterm>
|
---|
853 | </listitem>
|
---|
854 | </varlistentry>
|
---|
855 |
|
---|
856 | <varlistentry id="verify-uselistorder">
|
---|
857 | <term><command>verify-uselistorder</command></term>
|
---|
858 | <listitem>
|
---|
859 | <para>
|
---|
860 | is the <application>LLVM</application> tool to verify use-list
|
---|
861 | order.
|
---|
862 | </para>
|
---|
863 | <indexterm zone="llvm verify-uselistorder">
|
---|
864 | <primary sortas="b-verify-uselistorder">verify-uselistorder</primary>
|
---|
865 | </indexterm>
|
---|
866 | </listitem>
|
---|
867 | </varlistentry>
|
---|
868 |
|
---|
869 | <varlistentry id="yaml2obj">
|
---|
870 | <term><command>yaml2obj</command></term>
|
---|
871 | <listitem>
|
---|
872 | <para>
|
---|
873 | takes a YAML representation of an object file and converts it
|
---|
874 | to an binary file.
|
---|
875 | </para>
|
---|
876 | <indexterm zone="llvm yaml2obj">
|
---|
877 | <primary sortas="b-yaml2obj">yaml2obj</primary>
|
---|
878 | </indexterm>
|
---|
879 | </listitem>
|
---|
880 | </varlistentry>
|
---|
881 |
|
---|
882 | <!--
|
---|
883 | <varlistentry id="libllvm">
|
---|
884 | <term><filename class="libraryfile">libLLVM-&llvm-version;.so</filename></term>
|
---|
885 | <listitem>
|
---|
886 | <para>
|
---|
887 | contains the <application>LLVM</application> API functions.
|
---|
888 | </para>
|
---|
889 | <indexterm zone="llvm libllvm">
|
---|
890 | <primary sortas="c-libllvm">libLLVM-&llvm-version;.so</primary>
|
---|
891 | </indexterm>
|
---|
892 | </listitem>
|
---|
893 | </varlistentry>
|
---|
894 |
|
---|
895 | <varlistentry id="libprofile_rt">
|
---|
896 | <term><filename class="libraryfile">libprofile_rt.so</filename></term>
|
---|
897 | <listitem>
|
---|
898 | <para>
|
---|
899 | is the C, C++ and Objective-C runtime library for
|
---|
900 | <application>Clang</application>.
|
---|
901 | </para>
|
---|
902 | <indexterm zone="llvm libprofile_rt">
|
---|
903 | <primary sortas="c-libprofile_rt">libprofile_rt.so</primary>
|
---|
904 | </indexterm>
|
---|
905 | </listitem>
|
---|
906 | </varlistentry> -->
|
---|
907 |
|
---|
908 | </variablelist>
|
---|
909 |
|
---|
910 | </sect2>
|
---|
911 |
|
---|
912 | </sect1>
|
---|