[7b74537e] | 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 |
|
---|
[a6221fd] | 7 | <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.src.tar.xz">
|
---|
[abdc2e6] | 8 | <!ENTITY llvm-download-ftp " ">
|
---|
[b3b7e36] | 9 | <!ENTITY llvm-md5sum "b98b9495e5655a672d6cb83e1a180f8e">
|
---|
| 10 | <!ENTITY llvm-size "14 MB">
|
---|
[a14f8e11] | 11 | <!ENTITY llvm-buildsize "1.2 GB (with Clang), and 300 MB for tests">
|
---|
| 12 | <!ENTITY llvm-time "47 SBU (with Clang)">
|
---|
[a6221fd] | 13 |
|
---|
| 14 | <!ENTITY clang-download-http "http://llvm.org/releases/&llvm-version;/cfe-&llvm-version;.src.tar.xz">
|
---|
[b3b7e36] | 15 | <!ENTITY clang-md5sum "8f9d27335e7331cf0a4711e952f21f01">
|
---|
[a14f8e11] | 16 | <!ENTITY clang-size " 8.7 MB">
|
---|
[a6221fd] | 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">
|
---|
[b3b7e36] | 20 | <!ENTITY compiler-rt-md5sum "383c10affd513026f08936b5525523f5">
|
---|
[a14f8e11] | 21 | <!ENTITY compiler-rt-size "1.1 MB">
|
---|
[7b74537e] | 22 | ]>
|
---|
| 23 |
|
---|
[abdc2e6] | 24 | <sect1 id="llvm" xreflabel="LLVM-&llvm-version;">
|
---|
[7b74537e] | 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 |
|
---|
[abdc2e6] | 41 | <para>
|
---|
[a6221fd] | 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").
|
---|
[abdc2e6] | 49 | </para>
|
---|
[f36bebcd] | 50 |
|
---|
[abdc2e6] | 51 | <para>
|
---|
[a6221fd] | 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>.
|
---|
[abdc2e6] | 56 | </para>
|
---|
[7b74537e] | 57 |
|
---|
[efe8031e] | 58 | <note>
|
---|
| 59 | <para>
|
---|
[b3b7e36] | 60 | This package hits a bug in GCC-4.9.0 or an unpatched GCC-4.9.1.
|
---|
[a85c6ce] | 61 | To build this package, GCC needs to be updated if you have one of
|
---|
[b3b7e36] | 62 | these versions. See <xref linkend="gcc"/>
|
---|
[efe8031e] | 63 | for <application>gcc</application> installation instructions.
|
---|
| 64 | </para>
|
---|
| 65 | </note>
|
---|
| 66 |
|
---|
[33c9d33] | 67 | &lfs78_checked;
|
---|
[7b74537e] | 68 |
|
---|
| 69 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 70 | <itemizedlist spacing="compact">
|
---|
| 71 | <listitem>
|
---|
[abdc2e6] | 72 | <para>
|
---|
| 73 | Download (HTTP): <ulink url="&llvm-download-http;"/>
|
---|
| 74 | </para>
|
---|
[7b74537e] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[abdc2e6] | 77 | <para>
|
---|
| 78 | Download (FTP): <ulink url="&llvm-download-ftp;"/>
|
---|
| 79 | </para>
|
---|
[7b74537e] | 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
[abdc2e6] | 82 | <para>
|
---|
| 83 | Download MD5 sum: &llvm-md5sum;
|
---|
| 84 | </para>
|
---|
[7b74537e] | 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
[abdc2e6] | 87 | <para>
|
---|
| 88 | Download size: &llvm-size;
|
---|
| 89 | </para>
|
---|
[7b74537e] | 90 | </listitem>
|
---|
| 91 | <listitem>
|
---|
[abdc2e6] | 92 | <para>
|
---|
| 93 | Estimated disk space required: &llvm-buildsize;
|
---|
| 94 | </para>
|
---|
[7b74537e] | 95 | </listitem>
|
---|
| 96 | <listitem>
|
---|
[abdc2e6] | 97 | <para>
|
---|
| 98 | Estimated build time: &llvm-time;
|
---|
| 99 | </para>
|
---|
[7b74537e] | 100 | </listitem>
|
---|
| 101 | </itemizedlist>
|
---|
| 102 |
|
---|
[abdc2e6] | 103 | <bridgehead renderas="sect3">Optional Downloads</bridgehead>
|
---|
[f36bebcd] | 104 |
|
---|
[70251fc] | 105 | <bridgehead renderas="sect4">Clang</bridgehead>
|
---|
| 106 | <itemizedlist spacing="compact">
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>
|
---|
| 109 | Download: <ulink url="&clang-download-http;"/>
|
---|
| 110 | </para>
|
---|
| 111 | </listitem>
|
---|
| 112 | <listitem>
|
---|
| 113 | <para>
|
---|
| 114 | Download MD5 sum: &clang-md5sum;
|
---|
| 115 | </para>
|
---|
| 116 | </listitem>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>
|
---|
| 119 | Download size: &clang-size;
|
---|
| 120 | </para>
|
---|
| 121 | </listitem>
|
---|
| 122 | </itemizedlist>
|
---|
| 123 |
|
---|
| 124 | <bridgehead renderas="sect4">Compiler RT</bridgehead>
|
---|
| 125 | <itemizedlist spacing="compact">
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>
|
---|
| 128 | Download: <ulink url="&compiler-rt-download-http;"/>
|
---|
| 129 | </para>
|
---|
| 130 | </listitem>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>
|
---|
| 133 | Download MD5 sum: &compiler-rt-md5sum;
|
---|
| 134 | </para>
|
---|
| 135 | </listitem>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>
|
---|
| 138 | Download size: &compiler-rt-size;
|
---|
| 139 | </para>
|
---|
| 140 | </listitem>
|
---|
| 141 | </itemizedlist>
|
---|
[1f44775e] | 142 |
|
---|
[7b74537e] | 143 | <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
|
---|
| 144 |
|
---|
[f36bebcd] | 145 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 146 | <para role="recommended">
|
---|
[70251fc] | 147 | <xref linkend="libffi"/> and
|
---|
| 148 | <xref linkend="python2"/>
|
---|
[f36bebcd] | 149 | </para>
|
---|
| 150 |
|
---|
[7b74537e] | 151 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 152 | <para role="optional">
|
---|
[a6221fd] | 153 | <xref linkend="cmake"/>,
|
---|
[abdc2e6] | 154 | <xref linkend="doxygen"/>,
|
---|
| 155 | <xref linkend="graphviz"/>,
|
---|
| 156 | <xref linkend="libxml2"/>,
|
---|
[2d98031c] | 157 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
|
---|
[a6221fd] | 158 | <xref linkend="valgrind"/>,
|
---|
[abdc2e6] | 159 | <xref linkend="zip"/>,
|
---|
[a6221fd] | 160 | <ulink url="http://www.ocaml.org/">OCaml</ulink>, and
|
---|
| 161 | <ulink url="http://pypi.python.org/pypi/Sphinx">Sphinx</ulink>
|
---|
[7b74537e] | 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <para condition="html" role="usernotes">User Notes:
|
---|
[abdc2e6] | 165 | <ulink url="&blfs-wiki;/llvm"/>
|
---|
| 166 | </para>
|
---|
[7b74537e] | 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="installation">
|
---|
| 170 | <title>Installation of LLVM</title>
|
---|
| 171 |
|
---|
[abdc2e6] | 172 | <para>
|
---|
| 173 | If you have downloaded the optional packages, install them into
|
---|
| 174 | the source tree by running the following commands:
|
---|
| 175 | </para>
|
---|
[f36bebcd] | 176 |
|
---|
[097fd436] | 177 | <screen><userinput>tar -xf ../cfe-&llvm-version;.src.tar.xz -C tools &&
|
---|
| 178 | tar -xf ../compiler-rt-&rt-version;.src.tar.xz -C projects &&
|
---|
[f36bebcd] | 179 |
|
---|
[7e16699b] | 180 | mv tools/cfe-&llvm-version;.src tools/clang &&
|
---|
[a6221fd] | 181 | mv projects/compiler-rt-&rt-version;.src projects/compiler-rt</userinput></screen>
|
---|
[5889b252] | 182 |
|
---|
[bd4f0143] | 183 | <!-- Only for 3.7.0: hopefully fixed on later versions -->
|
---|
| 184 | <para>
|
---|
[a14f8e11] | 185 | The run-time library needs to be fixed for 32 bit installations:
|
---|
[bd4f0143] | 186 | </para>
|
---|
| 187 |
|
---|
| 188 | <screen><userinput>sed -r "/ifeq.*CompilerTargetArch/s#i386#i686#g" \
|
---|
| 189 | -i projects/compiler-rt/make/platform/clang_linux.mk</userinput></screen>
|
---|
| 190 |
|
---|
[abdc2e6] | 191 | <para>
|
---|
| 192 | Install <application>LLVM</application> by running the following
|
---|
| 193 | commands:
|
---|
| 194 | </para>
|
---|
| 195 |
|
---|
[5d4a086a] | 196 | <screen><userinput>sed -e "s:/docs/llvm:/share/doc/llvm-&llvm-version;:" \
|
---|
[70251fc] | 197 | -i Makefile.config.in &&
|
---|
[7e16699b] | 198 |
|
---|
[b3b7e36] | 199 | mkdir -v build &&
|
---|
| 200 | cd build &&
|
---|
| 201 |
|
---|
[a14f8e11] | 202 | CC=gcc CXX=g++ \
|
---|
| 203 | ../configure --prefix=/usr \
|
---|
| 204 | --datarootdir=/usr/share \
|
---|
| 205 | --sysconfdir=/etc \
|
---|
| 206 | --enable-libffi \
|
---|
| 207 | --enable-optimized \
|
---|
| 208 | --enable-shared \
|
---|
| 209 | --enable-targets=host,r600 \
|
---|
| 210 | --disable-assertions \
|
---|
[b3b7e36] | 211 | --docdir=/usr/share/doc/llvm-&llvm-version; &&
|
---|
[7b74537e] | 212 | make</userinput></screen>
|
---|
| 213 |
|
---|
[abdc2e6] | 214 | <para>
|
---|
| 215 | If you have installed <application>Sphinx</application> and wish
|
---|
| 216 | to generate manual pages, issue the following command:
|
---|
| 217 | </para>
|
---|
[7b74537e] | 218 |
|
---|
[a14f8e11] | 219 | <screen><userinput>make -C ../docs -f Makefile.sphinx man</userinput></screen>
|
---|
[7b74537e] | 220 |
|
---|
[abdc2e6] | 221 | <para>
|
---|
[3a9d001] | 222 | To test the results, issue: <command>make -k check-all</command>.
|
---|
[a14f8e11] | 223 | Some tests may fail for unknown reasons.
|
---|
[abdc2e6] | 224 | </para>
|
---|
[7b74537e] | 225 |
|
---|
[abdc2e6] | 226 | <para>
|
---|
| 227 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 228 | </para>
|
---|
[7b74537e] | 229 |
|
---|
[abdc2e6] | 230 | <screen role="root"><userinput>make install &&
|
---|
[7e16699b] | 231 |
|
---|
[62c6b643] | 232 | for file in /usr/lib/lib{clang,LLVM,LTO}*.a
|
---|
[70251fc] | 233 | do
|
---|
| 234 | test -f $file && chmod -v 644 $file
|
---|
[a9ae025] | 235 | done
|
---|
[39dd48b] | 236 | unset file</userinput></screen>
|
---|
[70251fc] | 237 |
|
---|
| 238 | <para>
|
---|
| 239 | If you had <xref linkend="python2"/> installed and you have
|
---|
| 240 | built <application>Clang</application>, install the
|
---|
| 241 | <application>Clang Analyzer</application> by running the
|
---|
| 242 | following command as the
|
---|
| 243 | <systemitem class="username">root</systemitem> user:
|
---|
| 244 | </para>
|
---|
| 245 |
|
---|
| 246 | <screen role="root"><userinput>install -v -dm755 /usr/lib/clang-analyzer &&
|
---|
[863f350] | 247 |
|
---|
[70251fc] | 248 | for prog in scan-build scan-view
|
---|
| 249 | do
|
---|
[a9ae025] | 250 | cp -rfv ../tools/clang/tools/$prog /usr/lib/clang-analyzer/ &&
|
---|
[70251fc] | 251 | ln -sfv ../lib/clang-analyzer/$prog/$prog /usr/bin/
|
---|
[a9ae025] | 252 | done
|
---|
| 253 | unset prog &&
|
---|
[863f350] | 254 |
|
---|
[a9ae025] | 255 | ln -sfv /usr/bin/clang \
|
---|
| 256 | /usr/lib/clang-analyzer/scan-build/ &&
|
---|
| 257 | mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 \
|
---|
| 258 | /usr/share/man/man1/</userinput></screen>
|
---|
[7b74537e] | 259 |
|
---|
[abdc2e6] | 260 | <para>
|
---|
| 261 | If you have built manual pages, install them by running the
|
---|
| 262 | following command as the
|
---|
| 263 | <systemitem class="username">root</systemitem> user:
|
---|
| 264 | </para>
|
---|
| 265 |
|
---|
[a14f8e11] | 266 | <screen role="root"><userinput>install -v -m644 ../docs/_build/man/* /usr/share/man/man1/</userinput></screen>
|
---|
[7b74537e] | 267 |
|
---|
| 268 | </sect2>
|
---|
[abdc2e6] | 269 |
|
---|
[5889b252] | 270 | <sect2 role="commands">
|
---|
| 271 | <title>Command Explanations</title>
|
---|
| 272 |
|
---|
[70251fc] | 273 | <para>
|
---|
[a6221fd] | 274 | <command>sed -e ... Makefile.config.in</command>: This sed fixes
|
---|
| 275 | location of the installed documentation.
|
---|
| 276 | </para>
|
---|
| 277 |
|
---|
[5889b252] | 278 | <para>
|
---|
| 279 | <parameter>--enable-libffi</parameter>: This switch enables
|
---|
| 280 | <application>LLVM</application> to use
|
---|
| 281 | <application>libffi</application>. Remove if you did not
|
---|
| 282 | install <application>libffi</application>.
|
---|
| 283 | </para>
|
---|
| 284 |
|
---|
| 285 | <para>
|
---|
| 286 | <parameter>--enable-optimized</parameter>: This switch enables
|
---|
| 287 | compiler optimizations in order to speed up the code and reduce
|
---|
| 288 | its size.
|
---|
| 289 | </para>
|
---|
| 290 |
|
---|
| 291 | <para>
|
---|
| 292 | <parameter>--enable-shared</parameter>: This switch enables
|
---|
| 293 | building of the <application>LLVM</application> shared
|
---|
[1633e95] | 294 | library which contains all of the static libraries linked into
|
---|
| 295 | a single library.
|
---|
[5889b252] | 296 | </para>
|
---|
| 297 |
|
---|
[b3b7e36] | 298 | <para>
|
---|
[a14f8e11] | 299 | <parameter>--enable-targets=host,r600</parameter>: This switch enables
|
---|
| 300 | building for the same target as the host, and also for the r600 AMD GPU
|
---|
| 301 | used by the Mesa r600 and radeonsi drivers. Default is all. You can use
|
---|
| 302 | a comma separated list. Valid targets are: host, x86, x86_64, sparc,
|
---|
| 303 | powerpc, arm64, arm, aarch64, mips, hexagon, xcore, msp430, nvptx,
|
---|
| 304 | systemz, r600, amdgpu (equivalent to r600), bpf, wasm, and cpp.
|
---|
[b3b7e36] | 305 | </para>
|
---|
| 306 |
|
---|
[5889b252] | 307 | <para>
|
---|
[62c6b643] | 308 | <parameter>--disable-assertions</parameter>: Disable some compile checks,
|
---|
| 309 | not necessary on a production system.
|
---|
[5889b252] | 310 | </para>
|
---|
| 311 |
|
---|
| 312 | </sect2>
|
---|
| 313 |
|
---|
[7b74537e] | 314 | <sect2 role="content">
|
---|
| 315 | <title>Contents</title>
|
---|
| 316 |
|
---|
| 317 | <segmentedlist>
|
---|
| 318 | <segtitle>Installed Programs</segtitle>
|
---|
| 319 | <segtitle>Installed Libraries</segtitle>
|
---|
| 320 | <segtitle>Installed Directories</segtitle>
|
---|
| 321 |
|
---|
| 322 | <seglistitem>
|
---|
[abdc2e6] | 323 | <seg>
|
---|
[a6221fd] | 324 | bugpoint, c-index-test, clang, clang++ (symlink), count, FileCheck,
|
---|
| 325 | clang-check, clang-format, clang-tblgen, llc, lli, lli-child-target,
|
---|
[b3b7e36] | 326 | llvm-ar, llvm-as, llvm-bcanalyzer, llvm-config, llvm-cov,
|
---|
| 327 | llvm-cxxdump, llvm-diff, llvm-dis, llvm-dsymutil, llvm-dwarfdump,
|
---|
| 328 | llvm-extract, llvm-link, llvm-mc, llvm-mcmarkup, llvm-nm,
|
---|
| 329 | llvm-objdump, llvm-pdbdump, llvm-profdata, llvm-ranlib (symlink),
|
---|
| 330 | llvm-readobj, llvm-rtdyld, llvm-size, llvm-stress, llvm-symbolizer,
|
---|
| 331 | llvm-tblgen, macho-dump, not, obj2yaml, opt, scan-build (symlink),
|
---|
| 332 | scan-view (symlink), verify-uselistorder, and yaml2obj
|
---|
[abdc2e6] | 333 | </seg>
|
---|
| 334 | <seg>
|
---|
[b3b7e36] | 335 | BugpointPasses.so, libclang.so, libLLVM-&llvm-version;.so,
|
---|
[0f5ca44] | 336 | libLTO.so,<!-- libprofile_rt.so,--> LLVMHello.so and numerous
|
---|
[70251fc] | 337 | static libraries in /usr/lib
|
---|
[abdc2e6] | 338 | </seg>
|
---|
| 339 | <seg>
|
---|
[a6221fd] | 340 | /usr/include/{clang,clang-c,llvm,llvm-c},
|
---|
[3a9d001] | 341 | /usr/lib/{clang,clang-analyzer}, and
|
---|
| 342 | /usr/share/{doc/llvm-&llvm-version;,llvm}
|
---|
[abdc2e6] | 343 | </seg>
|
---|
[7b74537e] | 344 | </seglistitem>
|
---|
| 345 | </segmentedlist>
|
---|
[abdc2e6] | 346 |
|
---|
[7b74537e] | 347 | <variablelist>
|
---|
| 348 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 349 | <?dbfo list-presentation="list"?>
|
---|
| 350 | <?dbhtml list-presentation="table"?>
|
---|
| 351 |
|
---|
[abdc2e6] | 352 | <varlistentry id="bugpoint">
|
---|
| 353 | <term><command>bugpoint</command></term>
|
---|
| 354 | <listitem>
|
---|
| 355 | <para>
|
---|
| 356 | is the automatic test case reduction tool.
|
---|
| 357 | </para>
|
---|
| 358 | <indexterm zone="llvm bugpoint">
|
---|
| 359 | <primary sortas="b-bugpoint">bugpoint</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | <varlistentry id="clang">
|
---|
| 365 | <term><command>clang</command></term>
|
---|
[7b74537e] | 366 | <listitem>
|
---|
[abdc2e6] | 367 | <para>
|
---|
| 368 | is the <application>Clang</application> C, C++,
|
---|
| 369 | and Objective-C compiler.
|
---|
| 370 | </para>
|
---|
| 371 | <indexterm zone="llvm clang">
|
---|
| 372 | <primary sortas="b-clang">clang</primary>
|
---|
[7b74537e] | 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
[abdc2e6] | 377 | <varlistentry id="llc">
|
---|
| 378 | <term><command>llc</command></term>
|
---|
[7b74537e] | 379 | <listitem>
|
---|
[abdc2e6] | 380 | <para>
|
---|
| 381 | is the <application>LLVM</application> static compiler.
|
---|
| 382 | </para>
|
---|
| 383 | <indexterm zone="llvm llc">
|
---|
| 384 | <primary sortas="b-llc">llc</primary>
|
---|
| 385 | </indexterm>
|
---|
| 386 | </listitem>
|
---|
| 387 | </varlistentry>
|
---|
| 388 |
|
---|
| 389 | <varlistentry id="lli">
|
---|
| 390 | <term><command>lli</command></term>
|
---|
| 391 | <listitem>
|
---|
| 392 | <para>
|
---|
| 393 | is used to directly execute programs from
|
---|
| 394 | <application>LLVM</application> bitcode.
|
---|
| 395 | </para>
|
---|
| 396 | <indexterm zone="llvm lli">
|
---|
| 397 | <primary sortas="b-lli">lli</primary>
|
---|
| 398 | </indexterm>
|
---|
| 399 | </listitem>
|
---|
| 400 | </varlistentry>
|
---|
| 401 |
|
---|
| 402 | <varlistentry id="llvm-ar">
|
---|
| 403 | <term><command>llvm-ar</command></term>
|
---|
| 404 | <listitem>
|
---|
| 405 | <para>
|
---|
| 406 | is the <application>LLVM</application> archiver.
|
---|
| 407 | </para>
|
---|
| 408 | <indexterm zone="llvm llvm-ar">
|
---|
| 409 | <primary sortas="b-llvm-ar">llvm-ar</primary>
|
---|
| 410 | </indexterm>
|
---|
| 411 | </listitem>
|
---|
| 412 | </varlistentry>
|
---|
| 413 |
|
---|
| 414 | <varlistentry id="llvm-as">
|
---|
| 415 | <term><command>llvm-as</command></term>
|
---|
| 416 | <listitem>
|
---|
| 417 | <para>
|
---|
| 418 | is the <application>LLVM</application> assembler.
|
---|
| 419 | </para>
|
---|
| 420 | <indexterm zone="llvm llvm-as">
|
---|
| 421 | <primary sortas="b-llvm-as">llvm-as</primary>
|
---|
| 422 | </indexterm>
|
---|
| 423 | </listitem>
|
---|
| 424 | </varlistentry>
|
---|
| 425 |
|
---|
| 426 | <varlistentry id="llvm-bcanalyzer">
|
---|
| 427 | <term><command>llvm-bcanalyzer</command></term>
|
---|
| 428 | <listitem>
|
---|
| 429 | <para>
|
---|
| 430 | is the <application>LLVM</application> bitcode analyzer.
|
---|
| 431 | </para>
|
---|
| 432 | <indexterm zone="llvm llvm-bcanalyzer">
|
---|
| 433 | <primary sortas="b-llvm-bcanalyzer">llvm-bcanalyzer</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 | </listitem>
|
---|
| 436 | </varlistentry>
|
---|
| 437 |
|
---|
| 438 | <varlistentry id="llvm-config">
|
---|
| 439 | <term><command>llvm-config</command></term>
|
---|
| 440 | <listitem>
|
---|
| 441 | <para>
|
---|
| 442 | Prints <application>LLVM</application> compilation options.
|
---|
| 443 | </para>
|
---|
| 444 | <indexterm zone="llvm llvm-config">
|
---|
| 445 | <primary sortas="b-llvm-config">llvm-config</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 | </listitem>
|
---|
| 448 | </varlistentry>
|
---|
| 449 |
|
---|
| 450 | <varlistentry id="llvm-cov">
|
---|
| 451 | <term><command>llvm-cov</command></term>
|
---|
| 452 | <listitem>
|
---|
| 453 | <para>
|
---|
| 454 | is used to emit coverage information.
|
---|
| 455 | </para>
|
---|
| 456 | <indexterm zone="llvm llvm-cov">
|
---|
| 457 | <primary sortas="b-llvm-cov">llvm-cov</primary>
|
---|
| 458 | </indexterm>
|
---|
| 459 | </listitem>
|
---|
| 460 | </varlistentry>
|
---|
| 461 |
|
---|
[b3b7e36] | 462 | <varlistentry id="llvm-cxxdump">
|
---|
| 463 | <term><command>llvm-cxxdump</command></term>
|
---|
| 464 | <listitem>
|
---|
| 465 | <para>
|
---|
| 466 | is used for C++ ABI Data Dumper.
|
---|
| 467 | </para>
|
---|
| 468 | <indexterm zone="llvm llvm-cxxdump">
|
---|
| 469 | <primary sortas="b-llvm-cxxdump">llvm-cxxdump</primary>
|
---|
| 470 | </indexterm>
|
---|
| 471 | </listitem>
|
---|
| 472 | </varlistentry>
|
---|
| 473 |
|
---|
[abdc2e6] | 474 | <varlistentry id="llvm-diff">
|
---|
| 475 | <term><command>llvm-diff</command></term>
|
---|
| 476 | <listitem>
|
---|
| 477 | <para>
|
---|
| 478 | is the <application>LLVM</application> structural
|
---|
| 479 | '<command>diff</command>'.
|
---|
| 480 | </para>
|
---|
| 481 | <indexterm zone="llvm llvm-diff">
|
---|
| 482 | <primary sortas="b-llvm-diff">llvm-diff</primary>
|
---|
| 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 |
|
---|
| 487 | <varlistentry id="llvm-dis">
|
---|
| 488 | <term><command>llvm-dis</command></term>
|
---|
| 489 | <listitem>
|
---|
| 490 | <para>
|
---|
| 491 | is the <application>LLVM</application> disassembler.
|
---|
| 492 | </para>
|
---|
| 493 | <indexterm zone="llvm llvm-dis">
|
---|
| 494 | <primary sortas="b-llvm-dis">llvm-dis</primary>
|
---|
| 495 | </indexterm>
|
---|
| 496 | </listitem>
|
---|
| 497 | </varlistentry>
|
---|
| 498 |
|
---|
[3a9d001] | 499 | <varlistentry id="llvm-dsymutil">
|
---|
| 500 | <term><command>llvm-dsymutil</command></term>
|
---|
| 501 | <listitem>
|
---|
| 502 | <para>
|
---|
| 503 | tool used to manipulate archived DWARF debug symbol files,
|
---|
| 504 | compatible with the Darwin command <command>dsymutil</command>.
|
---|
| 505 | </para>
|
---|
| 506 | <indexterm zone="llvm llvm-dsymutil">
|
---|
| 507 | <primary sortas="b-llvm-dsymutil">llvm-dsymutil</primary>
|
---|
| 508 | </indexterm>
|
---|
| 509 | </listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
[abdc2e6] | 512 | <varlistentry id="llvm-extract">
|
---|
| 513 | <term><command>llvm-extract</command></term>
|
---|
| 514 | <listitem>
|
---|
| 515 | <para>
|
---|
| 516 | is used to extract a function from an
|
---|
| 517 | <application>LLVM</application> module.
|
---|
| 518 | </para>
|
---|
| 519 | <indexterm zone="llvm llvm-extract">
|
---|
| 520 | <primary sortas="b-llvm-extract">llvm-extract</primary>
|
---|
| 521 | </indexterm>
|
---|
| 522 | </listitem>
|
---|
| 523 | </varlistentry>
|
---|
| 524 |
|
---|
| 525 | <varlistentry id="llvm-link">
|
---|
| 526 | <term><command>llvm-link</command></term>
|
---|
| 527 | <listitem>
|
---|
| 528 | <para>
|
---|
| 529 | is the <application>LLVM</application> linker.
|
---|
| 530 | </para>
|
---|
| 531 | <indexterm zone="llvm llvm-link">
|
---|
| 532 | <primary sortas="b-llvm-link">llvm-link</primary>
|
---|
| 533 | </indexterm>
|
---|
| 534 | </listitem>
|
---|
| 535 | </varlistentry>
|
---|
| 536 |
|
---|
| 537 | <varlistentry id="llvm-nm">
|
---|
| 538 | <term><command>llvm-nm</command></term>
|
---|
| 539 | <listitem>
|
---|
| 540 | <para>
|
---|
| 541 | is used to list <application>LLVM</application> bitcode
|
---|
| 542 | and object file's symbol table.
|
---|
| 543 | </para>
|
---|
| 544 | <indexterm zone="llvm llvm-nm">
|
---|
| 545 | <primary sortas="b-llvm-nm">llvm-nm</primary>
|
---|
| 546 | </indexterm>
|
---|
| 547 | </listitem>
|
---|
| 548 | </varlistentry>
|
---|
[b3b7e36] | 549 |
|
---|
| 550 | <varlistentry id="llvm-pdbdump">
|
---|
| 551 | <term><command>llvm-pdbdump</command></term>
|
---|
| 552 | <listitem>
|
---|
| 553 | <para>
|
---|
| 554 | is used as PDB Dumper.
|
---|
| 555 | </para>
|
---|
| 556 | <indexterm zone="llvm llvm-pdbdump">
|
---|
| 557 | <primary sortas="b-llvm-pdbdump">llvm-pdbdump</primary>
|
---|
| 558 | </indexterm>
|
---|
| 559 | </listitem>
|
---|
| 560 | </varlistentry>
|
---|
[bb57c4f9] | 561 | <!--
|
---|
[abdc2e6] | 562 | <varlistentry id="llvm-prof">
|
---|
| 563 | <term><command>llvm-prof</command></term>
|
---|
| 564 | <listitem>
|
---|
| 565 | <para>
|
---|
| 566 | is used to print execution profile of
|
---|
| 567 | <application>LLVM</application> program.
|
---|
| 568 | </para>
|
---|
| 569 | <indexterm zone="llvm llvm-prof">
|
---|
| 570 | <primary sortas="b-llvm-prof">llvm-prof</primary>
|
---|
| 571 | </indexterm>
|
---|
| 572 | </listitem>
|
---|
[bb57c4f9] | 573 | </varlistentry>-->
|
---|
[abdc2e6] | 574 |
|
---|
| 575 | <varlistentry id="llvm-ranlib">
|
---|
| 576 | <term><command>llvm-ranlib</command></term>
|
---|
| 577 | <listitem>
|
---|
| 578 | <para>
|
---|
| 579 | is used to generate index for <application>LLVM</application>
|
---|
| 580 | archive.
|
---|
| 581 | </para>
|
---|
| 582 | <indexterm zone="llvm llvm-ranlib">
|
---|
| 583 | <primary sortas="b-llvm-ranlib">llvm-ranlib</primary>
|
---|
| 584 | </indexterm>
|
---|
| 585 | </listitem>
|
---|
| 586 | </varlistentry>
|
---|
| 587 |
|
---|
| 588 | <varlistentry id="llvm-stress">
|
---|
| 589 | <term><command>llvm-stress</command></term>
|
---|
| 590 | <listitem>
|
---|
| 591 | <para>
|
---|
| 592 | is used to generate random
|
---|
| 593 | <filename class="extension">.ll</filename> files.
|
---|
| 594 | </para>
|
---|
| 595 | <indexterm zone="llvm llvm-stress">
|
---|
| 596 | <primary sortas="b-llvm-stress">llvm-stress</primary>
|
---|
| 597 | </indexterm>
|
---|
| 598 | </listitem>
|
---|
| 599 | </varlistentry>
|
---|
| 600 |
|
---|
| 601 | <varlistentry id="llvm-tblgen">
|
---|
| 602 | <term><command>llvm-tblgen</command></term>
|
---|
| 603 | <listitem>
|
---|
| 604 | <para>
|
---|
| 605 | is the <application>LLVM</application> Target Description
|
---|
| 606 | To C++ Code Generator.
|
---|
| 607 | </para>
|
---|
| 608 | <indexterm zone="llvm llvm-tblgen">
|
---|
| 609 | <primary sortas="b-llvm-tblgen">llvm-tblgen</primary>
|
---|
| 610 | </indexterm>
|
---|
| 611 | </listitem>
|
---|
| 612 | </varlistentry>
|
---|
| 613 |
|
---|
[39dd48b] | 614 | <varlistentry id="obj2yaml">
|
---|
| 615 | <term><command>obj2yaml</command></term>
|
---|
| 616 | <listitem>
|
---|
| 617 | <para>
|
---|
| 618 | takes an object file,and produces a YAML representation of the
|
---|
| 619 | file.
|
---|
| 620 | </para>
|
---|
| 621 | <indexterm zone="llvm obj2yaml">
|
---|
| 622 | <primary sortas="b-obj2yaml">obj2yaml</primary>
|
---|
| 623 | </indexterm>
|
---|
| 624 | </listitem>
|
---|
| 625 | </varlistentry>
|
---|
| 626 |
|
---|
[abdc2e6] | 627 | <varlistentry id="opt">
|
---|
| 628 | <term><command>opt</command></term>
|
---|
| 629 | <listitem>
|
---|
| 630 | <para>
|
---|
| 631 | is the <application>LLVM</application> optimizer.
|
---|
| 632 | </para>
|
---|
| 633 | <indexterm zone="llvm opt">
|
---|
| 634 | <primary sortas="b-opt">opt</primary>
|
---|
| 635 | </indexterm>
|
---|
| 636 | </listitem>
|
---|
| 637 | </varlistentry>
|
---|
| 638 |
|
---|
[70251fc] | 639 | <varlistentry id="scan-build">
|
---|
| 640 | <term><command>scan-build</command></term>
|
---|
| 641 | <listitem>
|
---|
| 642 | <para>
|
---|
| 643 | is a <application>Perl</application> script that invokes the
|
---|
| 644 | <application>Clang</application> static analyzer.
|
---|
| 645 | </para>
|
---|
| 646 | <indexterm zone="llvm scan-build">
|
---|
| 647 | <primary sortas="b-scan-build">scan-build</primary>
|
---|
[39dd48b] | 648 | </indexterm>
|
---|
| 649 | </listitem>
|
---|
| 650 | </varlistentry>
|
---|
| 651 |
|
---|
| 652 | <varlistentry id="yaml2obj">
|
---|
| 653 | <term><command>yaml2obj</command></term>
|
---|
| 654 | <listitem>
|
---|
| 655 | <para>
|
---|
| 656 | takes a YAML representation of an object file and converts it
|
---|
| 657 | to an binary file.
|
---|
| 658 | </para>
|
---|
| 659 | <indexterm zone="llvm yaml2obj">
|
---|
| 660 | <primary sortas="b-yaml2obj">yaml2obj</primary>
|
---|
[70251fc] | 661 | </indexterm>
|
---|
| 662 | </listitem>
|
---|
| 663 | </varlistentry>
|
---|
| 664 |
|
---|
[abdc2e6] | 665 | <varlistentry id="libllvm">
|
---|
| 666 | <term><filename class="libraryfile">libLLVM-&llvm-version;.so</filename></term>
|
---|
| 667 | <listitem>
|
---|
| 668 | <para>
|
---|
| 669 | contains the <application>LLVM</application> API functions.
|
---|
| 670 | </para>
|
---|
| 671 | <indexterm zone="llvm libllvm">
|
---|
| 672 | <primary sortas="c-libllvm">libLLVM-&llvm-version;.so</primary>
|
---|
| 673 | </indexterm>
|
---|
| 674 | </listitem>
|
---|
| 675 | </varlistentry>
|
---|
[0f5ca44] | 676 | <!--
|
---|
[abdc2e6] | 677 | <varlistentry id="libprofile_rt">
|
---|
| 678 | <term><filename class="libraryfile">libprofile_rt.so</filename></term>
|
---|
| 679 | <listitem>
|
---|
| 680 | <para>
|
---|
| 681 | is the C, C++ and Objective-C runtime library for
|
---|
| 682 | <application>Clang</application>.
|
---|
| 683 | </para>
|
---|
| 684 | <indexterm zone="llvm libprofile_rt">
|
---|
| 685 | <primary sortas="c-libprofile_rt">libprofile_rt.so</primary>
|
---|
[7b74537e] | 686 | </indexterm>
|
---|
| 687 | </listitem>
|
---|
[0f5ca44] | 688 | </varlistentry>-->
|
---|
[7b74537e] | 689 |
|
---|
| 690 | </variablelist>
|
---|
[abdc2e6] | 691 |
|
---|
[7b74537e] | 692 | </sect2>
|
---|
| 693 |
|
---|
| 694 | </sect1>
|
---|