Lines Matching +full:llvm +full:- +full:project
2 Getting Started with the LLVM System using Microsoft Visual Studio
12 Welcome to LLVM on Windows! This document only covers LLVM on Windows using
16 There are many different projects that compose LLVM. The first piece is the
17 LLVM suite. This contains all of the tools, libraries, and header files needed
18 to use LLVM. It contains an assembler, disassembler, bitcode analyzer and
20 test the LLVM tools and the Clang front end.
22 The second piece is the `Clang <https://clang.llvm.org/>`_ front end. This
23 component compiles C, C++, Objective C, and Objective C++ code into LLVM
24 bitcode. Clang typically uses LLVM libraries to optimize the bitcode and emit
25 machine code. LLVM fully supports the COFF object file format, which is
28 There are more LLVM projects which this document does not discuss.
33 Before you begin to use the LLVM system, review the requirements given
38 --------
39 Any system that can adequately run Visual Studio 2019 is fine. The LLVM
47 --------
53 generates the project files you will use to build with. CMake is bundled with
57 If you would like to run the LLVM tests you will need `Python
63 You will need `Git for Windows <https://git-scm.com/>`_ with bash tools, too.
69 Here's the short story for getting up and running quickly with LLVM.
83 if you want to develop `lldb <https://lldb.llvm.org/>`_, selecting
91 .. code-block:: bat
96 You may install the llvm sources in other location than ``c:\llvm`` but do not
102 .. code-block:: bat
107 The DIA library is required for LLVM PDB tests and
108 `LLDB development <https://lldb.llvm.org/resources/build.html>`_.
110 11. Install psutil and obtain LLVM source code:
112 .. code-block:: bat
115 git clone https://github.com/llvm/llvm-project.git llvm
118 from the `releases page <https://github.com/llvm/llvm-project/releases>`_.
120 Windows Explorer built-in zip support or any other unzip tool.
122 12. Finally, configure LLVM using CMake:
124 .. code-block:: bat
126 … cmake -S llvm\llvm -B build -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64
129 ``LLVM_ENABLE_PROJECTS`` specifies any additional LLVM projects you want to
133 See the :doc:`LLVM CMake guide <CMake>` for detailed information about
134 how to configure the LLVM build.
141 CMake GUI, select the directory where you have LLVM extracted to, and
146 using LLVM. Another important option is ``LLVM_TARGETS_TO_BUILD``,
147 which controls the LLVM target architectures that are included on the
149 * CMake generates project files for all build types. To select a specific
152 * By default, the Visual Studio project files generated by CMake use the
153 32-bit toolset. If you are developing on a 64-bit version of Windows and
154 want to use the 64-bit toolset, pass the ``-Thost=x64`` flag when
159 In the directory you created the project files will have an ``llvm.sln``
160 file, just double-click on that to open Visual Studio. The default Visual
163 configuration for the LLVM project which will build the fastest or
165 Another technique is to build all of LLVM in Release mode and change
169 14. Test LLVM in Visual Studio:
171 You can run LLVM tests by merely building the project "check-all". The test
173 have verified a working LLVM development environment!
185 ========== Build: 114 succeeded, 0 failed, 321 up-to-date, 0 skipped ==========``
194 .. code-block:: bat
196 choco install -y git cmake python3
200 `Dockerfile <https://github.com/llvm/llvm-zorg/blob/main/buildbot/google/docker/windows-base-vscode…
210 Test LLVM on the command line:
211 ------------------------------
212 The LLVM tests can be run by changing directory to the llvm source
215 .. code-block:: bat
217 c:\llvm> python ..\build\Release\bin\llvm-lit.py llvm\test
226 .. code-block:: bat
228 c:\llvm> python ..\build\Release\bin\llvm-lit.py llvm\test\Transforms\Util
230 Build the LLVM Suite:
231 ---------------------
235 ``ALL_BUILD`` project to build everything, or the ``INSTALL`` project,
236 which first builds the ``ALL_BUILD`` project, then installs the LLVM
239 * The Fibonacci project is a sample program that uses the JIT. Modify the
240 project's debugging properties to provide a numeric command line argument
247 This document is just an **introduction** to how to use LLVM to do some simple
250 write something up!). For more information about LLVM, check out:
252 * `LLVM homepage <https://llvm.org/>`_
253 * `LLVM doxygen tree <https://llvm.org/doxygen/>`_
254 * Additional information about the LLVM directory structure and tool chain
256 * If you are having problems building or using LLVM, or if you have any other
257 general questions about LLVM, please consult the