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