CINXE.COM

LLVM Command Guide — LLVM 21.0.0git documentation

<!DOCTYPE html> <html lang="en" data-content_root="../"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <title>LLVM Command Guide &#8212; LLVM 21.0.0git documentation</title> <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=649a27d8" /> <link rel="stylesheet" type="text/css" href="../_static/llvm-theme.css?v=96924833" /> <script src="../_static/documentation_options.js?v=20720d87"></script> <script src="../_static/doctools.js?v=888ff710"></script> <script src="../_static/sphinx_highlight.js?v=dc90522c"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="dsymutil - manipulate archived DWARF debug symbol files" href="dsymutil.html" /> <link rel="prev" title="LLVM CI Best Practices" href="../CIBestPractices.html" /> <style type="text/css"> table.right { float: right; margin-left: 20px; } table.right td { border: 1px solid #ccc; } </style> </head><body> <div class="logo"> <a href="../index.html"> <img src="../_static/logo.png" alt="LLVM Logo" width="250" height="88"/></a> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="dsymutil.html" title="dsymutil - manipulate archived DWARF debug symbol files" accesskey="N">next</a> |</li> <li class="right" > <a href="../CIBestPractices.html" title="LLVM CI Best Practices" accesskey="P">previous</a> |</li> <li><a href="https://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li> <li><a href="../index.html">Documentation</a>&raquo;</li> <li class="nav-item nav-item-1"><a href="../Reference.html" accesskey="U">Reference</a> &#187;</li> <li class="nav-item nav-item-this"><a href="">LLVM Command Guide</a></li> </ul> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h3>Documentation</h3> <ul class="want-points"> <li><a href="https://llvm.org/docs/GettingStartedTutorials.html">Getting Started/Tutorials</a></li> <li><a href="https://llvm.org/docs/UserGuides.html">User Guides</a></li> <li><a href="https://llvm.org/docs/Reference.html">Reference</a></li> </ul> <h3>Getting Involved</h3> <ul class="want-points"> <li><a href="https://llvm.org/docs/Contributing.html">Contributing to LLVM</a></li> <li><a href="https://llvm.org/docs/HowToSubmitABug.html">Submitting Bug Reports</a></li> <li><a href="https://llvm.org/docs/GettingInvolved.html#mailing-lists">Mailing Lists</a></li> <li><a href="https://llvm.org/docs/GettingInvolved.html#discord">Discord</a></li> <li><a href="https://llvm.org/docs/GettingInvolved.html#meetups-and-social-events">Meetups and Social Events</a></li> </ul> <h3>Additional Links</h3> <ul class="want-points"> <li><a href="https://llvm.org/docs/FAQ.html">FAQ</a></li> <li><a href="https://llvm.org/docs/Lexicon.html">Glossary</a></li> <li><a href="https://llvm.org/pubs">Publications</a></li> <li><a href="https://github.com/llvm/llvm-project/">Github Repository</a></li> </ul> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/CommandGuide/index.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> <input type="submit" value="Go" /> </form> </div> </div> <script>document.getElementById('searchbox').style.display = "block"</script> </div> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="llvm-command-guide"> <h1>LLVM Command Guide<a class="headerlink" href="#llvm-command-guide" title="Link to this heading">¶</a></h1> <p>The following documents are command descriptions for all of the LLVM tools. These pages describe how to use the LLVM commands and what their options are. Note that these pages do not describe all of the options available for all tools. To get a complete listing, pass the <code class="docutils literal notranslate"><span class="pre">--help</span></code> (general options) or <code class="docutils literal notranslate"><span class="pre">--help-hidden</span></code> (general and debugging options) arguments to the tool you are interested in.</p> <section id="basic-commands"> <h2>Basic Commands<a class="headerlink" href="#basic-commands" title="Link to this heading">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="dsymutil.html">dsymutil - manipulate archived DWARF debug symbol files</a></li> <li class="toctree-l1"><a class="reference internal" href="llc.html">llc - LLVM static compiler</a></li> <li class="toctree-l1"><a class="reference internal" href="lli.html">lli - directly execute programs from LLVM bitcode</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-as.html">llvm-as - LLVM assembler</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-cgdata.html">llvm-cgdata - LLVM CodeGen Data Tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-config.html">llvm-config - Print LLVM compilation options</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-cov.html">llvm-cov - emit coverage information</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-cxxmap.html">llvm-cxxmap - Mangled name remapping tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-debuginfo-analyzer.html">llvm-debuginfo-analyzer - Print a logical representation of low-level debug information.</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-diff.html">llvm-diff - LLVM structural ‘diff’</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-dis.html">llvm-dis - LLVM disassembler</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-dwarfdump.html">llvm-dwarfdump - dump and verify DWARF debug information</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-dwarfutil.html">llvm-dwarfutil - A tool to copy and manipulate debug info</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-lib.html">llvm-lib - LLVM lib.exe compatible library tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-libtool-darwin.html">llvm-libtool-darwin - LLVM tool for creating libraries for Darwin</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-link.html">llvm-link - LLVM bitcode linker</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-lipo.html">llvm-lipo - LLVM tool for manipulating universal binaries</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-mc.html">llvm-mc - LLVM Machine Code Playground</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-mca.html">llvm-mca - LLVM Machine Code Analyzer</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-opt-report.html">llvm-opt-report - generate optimization report from YAML</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-otool.html">llvm-otool - Mach-O dumping tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-profdata.html">llvm-profdata - Profile data tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-readobj.html">llvm-readobj - LLVM Object Reader</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-reduce.html">llvm-reduce - LLVM automatic testcase reducer.</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-stress.html">llvm-stress - generate random .ll files</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-symbolizer.html">llvm-symbolizer - convert addresses into source code locations</a></li> <li class="toctree-l1"><a class="reference internal" href="opt.html">opt - LLVM optimizer</a></li> </ul> </div> </section> <section id="gnu-binutils-replacements"> <h2>GNU binutils replacements<a class="headerlink" href="#gnu-binutils-replacements" title="Link to this heading">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="llvm-addr2line.html">llvm-addr2line - a drop-in replacement for addr2line</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-ar.html">llvm-ar - LLVM archiver</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-cxxfilt.html">llvm-cxxfilt - LLVM symbol name demangler</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-install-name-tool.html">llvm-install-name-tool - LLVM tool for manipulating install-names and rpaths</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-nm.html">llvm-nm - list LLVM bitcode and object file’s symbol table</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-objcopy.html">llvm-objcopy - object copying and editing tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-objdump.html">llvm-objdump - LLVM’s object file dumper</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-ranlib.html">llvm-ranlib - generates an archive index</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-readelf.html">llvm-readelf - GNU-style LLVM Object Reader</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-size.html">llvm-size - print size information</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-strings.html">llvm-strings - print strings</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-strip.html">llvm-strip - object stripping tool</a></li> </ul> </div> </section> <section id="debugging-tools"> <h2>Debugging Tools<a class="headerlink" href="#debugging-tools" title="Link to this heading">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="bugpoint.html">bugpoint - automatic test case reduction tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-extract.html">llvm-extract - extract a function from an LLVM module</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-bcanalyzer.html">llvm-bcanalyzer - LLVM bitcode analyzer</a></li> </ul> </div> </section> <section id="developer-tools"> <h2>Developer Tools<a class="headerlink" href="#developer-tools" title="Link to this heading">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="FileCheck.html">FileCheck - Flexible pattern matching file verifier</a></li> <li class="toctree-l1"><a class="reference internal" href="tblgen.html">tblgen - Description to C++ Code</a></li> <li class="toctree-l1"><a class="reference internal" href="clang-tblgen.html">clang-tblgen - Description to C++ Code for Clang</a></li> <li class="toctree-l1"><a class="reference internal" href="lldb-tblgen.html">lldb-tblgen - Description to C++ Code for LLDB</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-tblgen.html">llvm-tblgen - Target Description to C++ Code for LLVM</a></li> <li class="toctree-l1"><a class="reference internal" href="mlir-tblgen.html">mlir-tblgen - Description to C++ Code for MLIR</a></li> <li class="toctree-l1"><a class="reference internal" href="lit.html">lit - LLVM Integrated Tester</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-exegesis.html">llvm-exegesis - LLVM Machine Instruction Benchmark</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-ifs.html">llvm-ifs - shared object stubbing tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-locstats.html">llvm-locstats - calculate statistics on DWARF debug location</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-pdbutil.html">llvm-pdbutil - PDB File forensics and diagnostics</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-profgen.html">llvm-profgen - LLVM SPGO profile generation tool</a></li> <li class="toctree-l1"><a class="reference internal" href="llvm-tli-checker.html">llvm-tli-checker - TargetLibraryInfo vs library checker</a></li> </ul> </div> </section> <section id="remarks-tools"> <h2>Remarks Tools<a class="headerlink" href="#remarks-tools" title="Link to this heading">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="llvm-remarkutil.html">llvm-remarkutil - Remark utility</a></li> </ul> </div> </section> </section> <div class="clearer"></div> </div> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="dsymutil.html" title="dsymutil - manipulate archived DWARF debug symbol files" >next</a> |</li> <li class="right" > <a href="../CIBestPractices.html" title="LLVM CI Best Practices" >previous</a> |</li> <li><a href="https://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li> <li><a href="../index.html">Documentation</a>&raquo;</li> <li class="nav-item nav-item-1"><a href="../Reference.html" >Reference</a> &#187;</li> <li class="nav-item nav-item-this"><a href="">LLVM Command Guide</a></li> </ul> </div> <div class="footer" role="contentinfo"> &#169; Copyright 2003-2025, LLVM Project. Last updated on 2025-04-09. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6. </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10