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