[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 " ">
|
---|
[3a9d001] | 9 | <!ENTITY llvm-md5sum "ebf9e97be405ae126e134d3a357cd58a">
|
---|
| 10 | <!ENTITY llvm-size "13 MB">
|
---|
| 11 | <!ENTITY llvm-buildsize "1.6 GB (with Clang and tests)">
|
---|
| 12 | <!ENTITY llvm-time "13 SBU (using -j4, with Clang and tests)">
|
---|
[a6221fd] | 13 |
|
---|
| 14 | <!ENTITY clang-download-http "http://llvm.org/releases/&llvm-version;/cfe-&llvm-version;.src.tar.xz">
|
---|
[3a9d001] | 15 | <!ENTITY clang-md5sum "9ff6811757735051f8651833b22ae014">
|
---|
| 16 | <!ENTITY clang-size "8.3 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">
|
---|
[3a9d001] | 20 | <!ENTITY compiler-rt-md5sum "6f204b1feb324b1672ac907b32d927c0">
|
---|
[a6221fd] | 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>
|
---|
[a85c6ce] | 60 | This package hits a bug in GCC-4.9.0 or an unpatched GCC-4.9.1.
|
---|
| 61 | To build this package, GCC needs to be updated if you have one of
|
---|
[efe8031e] | 62 | these versions. See <xref linkend="gcc"/>
|
---|
| 63 | for <application>gcc</application> installation instructions.
|
---|
| 64 | </para>
|
---|
| 65 | </note>
|
---|
| 66 |
|
---|
[07ad28a] | 67 | &lfs77_checked; &gcc5_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 |
|
---|
[abdc2e6] | 183 | <para>
|
---|
| 184 | Install <application>LLVM</application> by running the following
|
---|
| 185 | commands:
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
[5d4a086a] | 188 | <screen><userinput>sed -e "s:/docs/llvm:/share/doc/llvm-&llvm-version;:" \
|
---|
[70251fc] | 189 | -i Makefile.config.in &&
|
---|
[7e16699b] | 190 |
|
---|
[a85c6ce] | 191 | CC=gcc CXX=g++ \
|
---|
| 192 | ./configure --prefix=/usr \
|
---|
| 193 | --sysconfdir=/etc \
|
---|
| 194 | --enable-libffi \
|
---|
| 195 | --enable-optimized \
|
---|
| 196 | --enable-shared \
|
---|
| 197 | --disable-assertions &&
|
---|
[7b74537e] | 198 | make</userinput></screen>
|
---|
| 199 |
|
---|
[abdc2e6] | 200 | <para>
|
---|
| 201 | If you have installed <application>Sphinx</application> and wish
|
---|
| 202 | to generate manual pages, issue the following command:
|
---|
| 203 | </para>
|
---|
[7b74537e] | 204 |
|
---|
[abdc2e6] | 205 | <screen><userinput>make -C docs -f Makefile.sphinx man</userinput></screen>
|
---|
[7b74537e] | 206 |
|
---|
[abdc2e6] | 207 | <para>
|
---|
[3a9d001] | 208 | To test the results, issue: <command>make -k check-all</command>.
|
---|
| 209 | Some tests fail for unknown reasons.
|
---|
[abdc2e6] | 210 | </para>
|
---|
[7b74537e] | 211 |
|
---|
[abdc2e6] | 212 | <para>
|
---|
| 213 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 214 | </para>
|
---|
[7b74537e] | 215 |
|
---|
[abdc2e6] | 216 | <screen role="root"><userinput>make install &&
|
---|
[7e16699b] | 217 |
|
---|
[62c6b643] | 218 | for file in /usr/lib/lib{clang,LLVM,LTO}*.a
|
---|
[70251fc] | 219 | do
|
---|
| 220 | test -f $file && chmod -v 644 $file
|
---|
[39dd48b] | 221 | done &&
|
---|
| 222 | unset file</userinput></screen>
|
---|
[70251fc] | 223 |
|
---|
| 224 | <para>
|
---|
| 225 | If you had <xref linkend="python2"/> installed and you have
|
---|
| 226 | built <application>Clang</application>, install the
|
---|
| 227 | <application>Clang Analyzer</application> by running the
|
---|
| 228 | following command as the
|
---|
| 229 | <systemitem class="username">root</systemitem> user:
|
---|
| 230 | </para>
|
---|
| 231 |
|
---|
| 232 | <screen role="root"><userinput>install -v -dm755 /usr/lib/clang-analyzer &&
|
---|
[863f350] | 233 |
|
---|
[70251fc] | 234 | for prog in scan-build scan-view
|
---|
| 235 | do
|
---|
| 236 | cp -rfv tools/clang/tools/$prog /usr/lib/clang-analyzer/
|
---|
| 237 | ln -sfv ../lib/clang-analyzer/$prog/$prog /usr/bin/
|
---|
| 238 | done &&
|
---|
[863f350] | 239 |
|
---|
[70251fc] | 240 | ln -sfv /usr/bin/clang /usr/lib/clang-analyzer/scan-build/ &&
|
---|
[39dd48b] | 241 | mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 /usr/share/man/man1/ &&
|
---|
| 242 | unset prog</userinput></screen>
|
---|
[7b74537e] | 243 |
|
---|
[abdc2e6] | 244 | <para>
|
---|
| 245 | If you have built manual pages, install them by running the
|
---|
| 246 | following command as the
|
---|
| 247 | <systemitem class="username">root</systemitem> user:
|
---|
| 248 | </para>
|
---|
| 249 |
|
---|
[70251fc] | 250 | <screen role="root"><userinput>install -v -m644 docs/_build/man/* /usr/share/man/man1/</userinput></screen>
|
---|
[7b74537e] | 251 |
|
---|
| 252 | </sect2>
|
---|
[abdc2e6] | 253 |
|
---|
[5889b252] | 254 | <sect2 role="commands">
|
---|
| 255 | <title>Command Explanations</title>
|
---|
| 256 |
|
---|
[70251fc] | 257 | <para>
|
---|
[a6221fd] | 258 | <command>sed -e ... Makefile.config.in</command>: This sed fixes
|
---|
| 259 | location of the installed documentation.
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
[5889b252] | 262 | <para>
|
---|
| 263 | <parameter>--enable-libffi</parameter>: This switch enables
|
---|
| 264 | <application>LLVM</application> to use
|
---|
| 265 | <application>libffi</application>. Remove if you did not
|
---|
| 266 | install <application>libffi</application>.
|
---|
| 267 | </para>
|
---|
| 268 |
|
---|
| 269 | <para>
|
---|
| 270 | <parameter>--enable-optimized</parameter>: This switch enables
|
---|
| 271 | compiler optimizations in order to speed up the code and reduce
|
---|
| 272 | its size.
|
---|
| 273 | </para>
|
---|
| 274 |
|
---|
| 275 | <para>
|
---|
| 276 | <parameter>--enable-shared</parameter>: This switch enables
|
---|
| 277 | building of the <application>LLVM</application> shared
|
---|
| 278 | library which contains all of static libraries linked into
|
---|
| 279 | single library.
|
---|
| 280 | </para>
|
---|
| 281 |
|
---|
| 282 | <para>
|
---|
[62c6b643] | 283 | <parameter>--disable-assertions</parameter>: Disable some compile checks,
|
---|
| 284 | not necessary on a production system.
|
---|
[5889b252] | 285 | </para>
|
---|
| 286 |
|
---|
| 287 | </sect2>
|
---|
| 288 |
|
---|
[7b74537e] | 289 | <sect2 role="content">
|
---|
| 290 | <title>Contents</title>
|
---|
| 291 |
|
---|
| 292 | <segmentedlist>
|
---|
| 293 | <segtitle>Installed Programs</segtitle>
|
---|
| 294 | <segtitle>Installed Libraries</segtitle>
|
---|
| 295 | <segtitle>Installed Directories</segtitle>
|
---|
| 296 |
|
---|
| 297 | <seglistitem>
|
---|
[abdc2e6] | 298 | <seg>
|
---|
[a6221fd] | 299 | bugpoint, c-index-test, clang, clang++ (symlink), count, FileCheck,
|
---|
| 300 | clang-check, clang-format, clang-tblgen, llc, lli, lli-child-target,
|
---|
| 301 | llvm-ar, llvm-as, llvm-bcanalyzer, llvm-config, llvm-cov, llvm-diff,
|
---|
[3a9d001] | 302 | llvm-dis, llvm-dsymutil, llvm-dwarfdump, llvm-extract, llvm-link,
|
---|
| 303 | llvm-mc, llvm-mcmarkup, llvm-nm, llvm-objdump, llvm-profdata,
|
---|
| 304 | llvm-ranlib (symlink), llvm-readobj, llvm-rtdyld, llvm-size,
|
---|
| 305 | llvm-stress, llvm-symbolizer, llvm-tblgen, llvm-vtabledump,
|
---|
| 306 | macho-dump, not, obj2yaml, opt, scan-build (symlink), scan-view
|
---|
| 307 | (symlink), verify-uselistorder, and yaml2obj
|
---|
[abdc2e6] | 308 | </seg>
|
---|
| 309 | <seg>
|
---|
[70251fc] | 310 | BugpointPasses.so, libclang.so, libLLVM-&llvm-version;.so,
|
---|
[0f5ca44] | 311 | libLTO.so,<!-- libprofile_rt.so,--> LLVMHello.so and numerous
|
---|
[70251fc] | 312 | static libraries in /usr/lib
|
---|
[abdc2e6] | 313 | </seg>
|
---|
| 314 | <seg>
|
---|
[a6221fd] | 315 | /usr/include/{clang,clang-c,llvm,llvm-c},
|
---|
[3a9d001] | 316 | /usr/lib/{clang,clang-analyzer}, and
|
---|
| 317 | /usr/share/{doc/llvm-&llvm-version;,llvm}
|
---|
[abdc2e6] | 318 | </seg>
|
---|
[7b74537e] | 319 | </seglistitem>
|
---|
| 320 | </segmentedlist>
|
---|
[abdc2e6] | 321 |
|
---|
[7b74537e] | 322 | <variablelist>
|
---|
| 323 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 324 | <?dbfo list-presentation="list"?>
|
---|
| 325 | <?dbhtml list-presentation="table"?>
|
---|
| 326 |
|
---|
[abdc2e6] | 327 | <varlistentry id="bugpoint">
|
---|
| 328 | <term><command>bugpoint</command></term>
|
---|
| 329 | <listitem>
|
---|
| 330 | <para>
|
---|
| 331 | is the automatic test case reduction tool.
|
---|
| 332 | </para>
|
---|
| 333 | <indexterm zone="llvm bugpoint">
|
---|
| 334 | <primary sortas="b-bugpoint">bugpoint</primary>
|
---|
| 335 | </indexterm>
|
---|
| 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
| 338 |
|
---|
| 339 | <varlistentry id="clang">
|
---|
| 340 | <term><command>clang</command></term>
|
---|
[7b74537e] | 341 | <listitem>
|
---|
[abdc2e6] | 342 | <para>
|
---|
| 343 | is the <application>Clang</application> C, C++,
|
---|
| 344 | and Objective-C compiler.
|
---|
| 345 | </para>
|
---|
| 346 | <indexterm zone="llvm clang">
|
---|
| 347 | <primary sortas="b-clang">clang</primary>
|
---|
[7b74537e] | 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
[abdc2e6] | 352 | <varlistentry id="llc">
|
---|
| 353 | <term><command>llc</command></term>
|
---|
[7b74537e] | 354 | <listitem>
|
---|
[abdc2e6] | 355 | <para>
|
---|
| 356 | is the <application>LLVM</application> static compiler.
|
---|
| 357 | </para>
|
---|
| 358 | <indexterm zone="llvm llc">
|
---|
| 359 | <primary sortas="b-llc">llc</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | <varlistentry id="lli">
|
---|
| 365 | <term><command>lli</command></term>
|
---|
| 366 | <listitem>
|
---|
| 367 | <para>
|
---|
| 368 | is used to directly execute programs from
|
---|
| 369 | <application>LLVM</application> bitcode.
|
---|
| 370 | </para>
|
---|
| 371 | <indexterm zone="llvm lli">
|
---|
| 372 | <primary sortas="b-lli">lli</primary>
|
---|
| 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | <varlistentry id="llvm-ar">
|
---|
| 378 | <term><command>llvm-ar</command></term>
|
---|
| 379 | <listitem>
|
---|
| 380 | <para>
|
---|
| 381 | is the <application>LLVM</application> archiver.
|
---|
| 382 | </para>
|
---|
| 383 | <indexterm zone="llvm llvm-ar">
|
---|
| 384 | <primary sortas="b-llvm-ar">llvm-ar</primary>
|
---|
| 385 | </indexterm>
|
---|
| 386 | </listitem>
|
---|
| 387 | </varlistentry>
|
---|
| 388 |
|
---|
| 389 | <varlistentry id="llvm-as">
|
---|
| 390 | <term><command>llvm-as</command></term>
|
---|
| 391 | <listitem>
|
---|
| 392 | <para>
|
---|
| 393 | is the <application>LLVM</application> assembler.
|
---|
| 394 | </para>
|
---|
| 395 | <indexterm zone="llvm llvm-as">
|
---|
| 396 | <primary sortas="b-llvm-as">llvm-as</primary>
|
---|
| 397 | </indexterm>
|
---|
| 398 | </listitem>
|
---|
| 399 | </varlistentry>
|
---|
| 400 |
|
---|
| 401 | <varlistentry id="llvm-bcanalyzer">
|
---|
| 402 | <term><command>llvm-bcanalyzer</command></term>
|
---|
| 403 | <listitem>
|
---|
| 404 | <para>
|
---|
| 405 | is the <application>LLVM</application> bitcode analyzer.
|
---|
| 406 | </para>
|
---|
| 407 | <indexterm zone="llvm llvm-bcanalyzer">
|
---|
| 408 | <primary sortas="b-llvm-bcanalyzer">llvm-bcanalyzer</primary>
|
---|
| 409 | </indexterm>
|
---|
| 410 | </listitem>
|
---|
| 411 | </varlistentry>
|
---|
| 412 |
|
---|
| 413 | <varlistentry id="llvm-config">
|
---|
| 414 | <term><command>llvm-config</command></term>
|
---|
| 415 | <listitem>
|
---|
| 416 | <para>
|
---|
| 417 | Prints <application>LLVM</application> compilation options.
|
---|
| 418 | </para>
|
---|
| 419 | <indexterm zone="llvm llvm-config">
|
---|
| 420 | <primary sortas="b-llvm-config">llvm-config</primary>
|
---|
| 421 | </indexterm>
|
---|
| 422 | </listitem>
|
---|
| 423 | </varlistentry>
|
---|
| 424 |
|
---|
| 425 | <varlistentry id="llvm-cov">
|
---|
| 426 | <term><command>llvm-cov</command></term>
|
---|
| 427 | <listitem>
|
---|
| 428 | <para>
|
---|
| 429 | is used to emit coverage information.
|
---|
| 430 | </para>
|
---|
| 431 | <indexterm zone="llvm llvm-cov">
|
---|
| 432 | <primary sortas="b-llvm-cov">llvm-cov</primary>
|
---|
| 433 | </indexterm>
|
---|
| 434 | </listitem>
|
---|
| 435 | </varlistentry>
|
---|
| 436 |
|
---|
| 437 | <varlistentry id="llvm-diff">
|
---|
| 438 | <term><command>llvm-diff</command></term>
|
---|
| 439 | <listitem>
|
---|
| 440 | <para>
|
---|
| 441 | is the <application>LLVM</application> structural
|
---|
| 442 | '<command>diff</command>'.
|
---|
| 443 | </para>
|
---|
| 444 | <indexterm zone="llvm llvm-diff">
|
---|
| 445 | <primary sortas="b-llvm-diff">llvm-diff</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 | </listitem>
|
---|
| 448 | </varlistentry>
|
---|
| 449 |
|
---|
| 450 | <varlistentry id="llvm-dis">
|
---|
| 451 | <term><command>llvm-dis</command></term>
|
---|
| 452 | <listitem>
|
---|
| 453 | <para>
|
---|
| 454 | is the <application>LLVM</application> disassembler.
|
---|
| 455 | </para>
|
---|
| 456 | <indexterm zone="llvm llvm-dis">
|
---|
| 457 | <primary sortas="b-llvm-dis">llvm-dis</primary>
|
---|
| 458 | </indexterm>
|
---|
| 459 | </listitem>
|
---|
| 460 | </varlistentry>
|
---|
| 461 |
|
---|
[3a9d001] | 462 | <varlistentry id="llvm-dsymutil">
|
---|
| 463 | <term><command>llvm-dsymutil</command></term>
|
---|
| 464 | <listitem>
|
---|
| 465 | <para>
|
---|
| 466 | tool used to manipulate archived DWARF debug symbol files,
|
---|
| 467 | compatible with the Darwin command <command>dsymutil</command>.
|
---|
| 468 | </para>
|
---|
| 469 | <indexterm zone="llvm llvm-dsymutil">
|
---|
| 470 | <primary sortas="b-llvm-dsymutil">llvm-dsymutil</primary>
|
---|
| 471 | </indexterm>
|
---|
| 472 | </listitem>
|
---|
| 473 | </varlistentry>
|
---|
| 474 |
|
---|
[abdc2e6] | 475 | <varlistentry id="llvm-extract">
|
---|
| 476 | <term><command>llvm-extract</command></term>
|
---|
| 477 | <listitem>
|
---|
| 478 | <para>
|
---|
| 479 | is used to extract a function from an
|
---|
| 480 | <application>LLVM</application> module.
|
---|
| 481 | </para>
|
---|
| 482 | <indexterm zone="llvm llvm-extract">
|
---|
| 483 | <primary sortas="b-llvm-extract">llvm-extract</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
| 488 | <varlistentry id="llvm-link">
|
---|
| 489 | <term><command>llvm-link</command></term>
|
---|
| 490 | <listitem>
|
---|
| 491 | <para>
|
---|
| 492 | is the <application>LLVM</application> linker.
|
---|
| 493 | </para>
|
---|
| 494 | <indexterm zone="llvm llvm-link">
|
---|
| 495 | <primary sortas="b-llvm-link">llvm-link</primary>
|
---|
| 496 | </indexterm>
|
---|
| 497 | </listitem>
|
---|
| 498 | </varlistentry>
|
---|
| 499 |
|
---|
| 500 | <varlistentry id="llvm-nm">
|
---|
| 501 | <term><command>llvm-nm</command></term>
|
---|
| 502 | <listitem>
|
---|
| 503 | <para>
|
---|
| 504 | is used to list <application>LLVM</application> bitcode
|
---|
| 505 | and object file's symbol table.
|
---|
| 506 | </para>
|
---|
| 507 | <indexterm zone="llvm llvm-nm">
|
---|
| 508 | <primary sortas="b-llvm-nm">llvm-nm</primary>
|
---|
| 509 | </indexterm>
|
---|
| 510 | </listitem>
|
---|
| 511 | </varlistentry>
|
---|
[bb57c4f9] | 512 | <!--
|
---|
[abdc2e6] | 513 | <varlistentry id="llvm-prof">
|
---|
| 514 | <term><command>llvm-prof</command></term>
|
---|
| 515 | <listitem>
|
---|
| 516 | <para>
|
---|
| 517 | is used to print execution profile of
|
---|
| 518 | <application>LLVM</application> program.
|
---|
| 519 | </para>
|
---|
| 520 | <indexterm zone="llvm llvm-prof">
|
---|
| 521 | <primary sortas="b-llvm-prof">llvm-prof</primary>
|
---|
| 522 | </indexterm>
|
---|
| 523 | </listitem>
|
---|
[bb57c4f9] | 524 | </varlistentry>-->
|
---|
[abdc2e6] | 525 |
|
---|
| 526 | <varlistentry id="llvm-ranlib">
|
---|
| 527 | <term><command>llvm-ranlib</command></term>
|
---|
| 528 | <listitem>
|
---|
| 529 | <para>
|
---|
| 530 | is used to generate index for <application>LLVM</application>
|
---|
| 531 | archive.
|
---|
| 532 | </para>
|
---|
| 533 | <indexterm zone="llvm llvm-ranlib">
|
---|
| 534 | <primary sortas="b-llvm-ranlib">llvm-ranlib</primary>
|
---|
| 535 | </indexterm>
|
---|
| 536 | </listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
| 539 | <varlistentry id="llvm-stress">
|
---|
| 540 | <term><command>llvm-stress</command></term>
|
---|
| 541 | <listitem>
|
---|
| 542 | <para>
|
---|
| 543 | is used to generate random
|
---|
| 544 | <filename class="extension">.ll</filename> files.
|
---|
| 545 | </para>
|
---|
| 546 | <indexterm zone="llvm llvm-stress">
|
---|
| 547 | <primary sortas="b-llvm-stress">llvm-stress</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
| 552 | <varlistentry id="llvm-tblgen">
|
---|
| 553 | <term><command>llvm-tblgen</command></term>
|
---|
| 554 | <listitem>
|
---|
| 555 | <para>
|
---|
| 556 | is the <application>LLVM</application> Target Description
|
---|
| 557 | To C++ Code Generator.
|
---|
| 558 | </para>
|
---|
| 559 | <indexterm zone="llvm llvm-tblgen">
|
---|
| 560 | <primary sortas="b-llvm-tblgen">llvm-tblgen</primary>
|
---|
| 561 | </indexterm>
|
---|
| 562 | </listitem>
|
---|
| 563 | </varlistentry>
|
---|
| 564 |
|
---|
[39dd48b] | 565 | <varlistentry id="obj2yaml">
|
---|
| 566 | <term><command>obj2yaml</command></term>
|
---|
| 567 | <listitem>
|
---|
| 568 | <para>
|
---|
| 569 | takes an object file,and produces a YAML representation of the
|
---|
| 570 | file.
|
---|
| 571 | </para>
|
---|
| 572 | <indexterm zone="llvm obj2yaml">
|
---|
| 573 | <primary sortas="b-obj2yaml">obj2yaml</primary>
|
---|
| 574 | </indexterm>
|
---|
| 575 | </listitem>
|
---|
| 576 | </varlistentry>
|
---|
| 577 |
|
---|
[abdc2e6] | 578 | <varlistentry id="opt">
|
---|
| 579 | <term><command>opt</command></term>
|
---|
| 580 | <listitem>
|
---|
| 581 | <para>
|
---|
| 582 | is the <application>LLVM</application> optimizer.
|
---|
| 583 | </para>
|
---|
| 584 | <indexterm zone="llvm opt">
|
---|
| 585 | <primary sortas="b-opt">opt</primary>
|
---|
| 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
| 589 |
|
---|
[70251fc] | 590 | <varlistentry id="scan-build">
|
---|
| 591 | <term><command>scan-build</command></term>
|
---|
| 592 | <listitem>
|
---|
| 593 | <para>
|
---|
| 594 | is a <application>Perl</application> script that invokes the
|
---|
| 595 | <application>Clang</application> static analyzer.
|
---|
| 596 | </para>
|
---|
| 597 | <indexterm zone="llvm scan-build">
|
---|
| 598 | <primary sortas="b-scan-build">scan-build</primary>
|
---|
[39dd48b] | 599 | </indexterm>
|
---|
| 600 | </listitem>
|
---|
| 601 | </varlistentry>
|
---|
| 602 |
|
---|
| 603 | <varlistentry id="yaml2obj">
|
---|
| 604 | <term><command>yaml2obj</command></term>
|
---|
| 605 | <listitem>
|
---|
| 606 | <para>
|
---|
| 607 | takes a YAML representation of an object file and converts it
|
---|
| 608 | to an binary file.
|
---|
| 609 | </para>
|
---|
| 610 | <indexterm zone="llvm yaml2obj">
|
---|
| 611 | <primary sortas="b-yaml2obj">yaml2obj</primary>
|
---|
[70251fc] | 612 | </indexterm>
|
---|
| 613 | </listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
[abdc2e6] | 616 | <varlistentry id="libllvm">
|
---|
| 617 | <term><filename class="libraryfile">libLLVM-&llvm-version;.so</filename></term>
|
---|
| 618 | <listitem>
|
---|
| 619 | <para>
|
---|
| 620 | contains the <application>LLVM</application> API functions.
|
---|
| 621 | </para>
|
---|
| 622 | <indexterm zone="llvm libllvm">
|
---|
| 623 | <primary sortas="c-libllvm">libLLVM-&llvm-version;.so</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
[0f5ca44] | 627 | <!--
|
---|
[abdc2e6] | 628 | <varlistentry id="libprofile_rt">
|
---|
| 629 | <term><filename class="libraryfile">libprofile_rt.so</filename></term>
|
---|
| 630 | <listitem>
|
---|
| 631 | <para>
|
---|
| 632 | is the C, C++ and Objective-C runtime library for
|
---|
| 633 | <application>Clang</application>.
|
---|
| 634 | </para>
|
---|
| 635 | <indexterm zone="llvm libprofile_rt">
|
---|
| 636 | <primary sortas="c-libprofile_rt">libprofile_rt.so</primary>
|
---|
[7b74537e] | 637 | </indexterm>
|
---|
| 638 | </listitem>
|
---|
[0f5ca44] | 639 | </varlistentry>-->
|
---|
[7b74537e] | 640 |
|
---|
| 641 | </variablelist>
|
---|
[abdc2e6] | 642 |
|
---|
[7b74537e] | 643 | </sect2>
|
---|
| 644 |
|
---|
| 645 | </sect1>
|
---|