4 NOTE: If you are a user who is only interested in using an LLVM-based compiler,
\r
5 you should look into `Clang <https://clang.llvm.org>`_ instead. The
\r
6 documentation here is intended for users who have a need to work with the
\r
7 intermediate LLVM representation.
\r
16 AddingConstrainedIntrinsics
\r
22 BuildingADistribution
\r
30 CoverageMappingFormat
\r
39 GlobalISel/MIRPatterns
\r
42 HowToBuildWindowsItaniumPrograms
\r
43 HowToCrossCompileBuiltinsOnArm
\r
44 HowToCrossCompileLLVM
\r
45 HowToUpdateDebugInfo
\r
47 LinkTimeOptimization
\r
49 MarkdownQuickstartTemplate
\r
52 MCJITDesignAndImplementation
\r
65 SourceLevelDebugging
\r
70 TableGenFundamentals
\r
73 WritingAnLLVMNewPMPass
\r
74 WritingAnLLVMBackend
\r
80 :doc:`HowToBuildOnARM`
\r
81 Notes on building and testing LLVM/Clang on ARM.
\r
83 :doc:`HowToBuildWithPGO`
\r
84 Notes on building LLVM/Clang with PGO.
\r
86 :doc:`HowToCrossCompileLLVM`
\r
87 Notes on cross-building and testing LLVM/Clang.
\r
89 `How to build the C, C++, ObjC, and ObjC++ front end`__
\r
90 Instructions for building the clang front-end from source.
\r
92 .. __: https://clang.llvm.org/get_started.html
\r
94 :doc:`CoverageMappingFormat`
\r
95 This describes the format and encoding used for LLVM’s code coverage mapping.
\r
98 A description of the verification tool for Control Flow Integrity.
\r
100 LLVM Builds and Distributions
\r
101 -----------------------------
\r
103 :doc:`BuildingADistribution`
\r
104 A best-practices guide for using LLVM's CMake build system to package and
\r
105 distribute LLVM-based tools.
\r
108 An addendum to the main Getting Started guide for those using the `CMake
\r
109 build system <http://www.cmake.org>`_.
\r
112 A reference for using Dockerfiles provided with LLVM.
\r
114 :doc:`Support Library <SupportLibrary>`
\r
115 This document describes the LLVM Support Library (``lib/Support``) and
\r
116 how to keep LLVM source code portable.
\r
118 :doc:`AdvancedBuilds`
\r
119 This document describes more advanced build configurations.
\r
124 :doc:`WritingAnLLVMPass`
\r
125 Information on how to write LLVM transformations and analyses.
\r
127 :doc:`WritingAnLLVMNewPMPass`
\r
128 Information on how to write LLVM transformations under the new pass
\r
132 A list of optimizations and analyses implemented in LLVM.
\r
134 :doc:`StackSafetyAnalysis`
\r
135 This document describes the design of the stack safety analysis of local
\r
138 :doc:`MergeFunctions`
\r
139 Describes functions merging optimization.
\r
141 :doc:`AliasAnalysis`
\r
142 Information on how to write a new alias analysis implementation or how to
\r
143 use existing analyses.
\r
146 Information about the MemorySSA utility in LLVM, as well as how to use it.
\r
148 :doc:`LoopTerminology`
\r
149 A document describing Loops and associated terms as used in LLVM.
\r
151 :doc:`CycleTerminology`
\r
152 A document describing cycles as a generalization of loops.
\r
155 This document describes the current status of vectorization in LLVM.
\r
157 :doc:`LinkTimeOptimization`
\r
158 This document describes the interface between LLVM intermodular optimizer
\r
159 and the linker and its design
\r
162 How to build your programs with link-time optimization on Linux.
\r
165 A reference on the implementation of remarks in LLVM.
\r
167 :doc:`Source Level Debugging with LLVM <SourceLevelDebugging>`
\r
168 This document describes the design and philosophy behind the LLVM
\r
169 source-level debugger.
\r
171 :doc:`How to Update Debug Info <HowToUpdateDebugInfo>`
\r
172 This document specifies how to correctly update debug info in various kinds
\r
173 of code transformations.
\r
175 :doc:`InstrRefDebugInfo`
\r
176 This document explains how LLVM uses value tracking, or instruction
\r
177 referencing, to determine variable locations for debug info in the final
\r
178 stages of compilation.
\r
183 :doc:`WritingAnLLVMBackend`
\r
184 Information on how to write LLVM backends for machine targets.
\r
186 :doc:`CodeGenerator`
\r
187 The design and implementation of the LLVM code generator. Useful if you are
\r
188 working on retargetting LLVM to a new architecture, designing a new codegen
\r
189 pass, or enhancing existing components.
\r
191 :doc:`TableGen <TableGen/index>`
\r
192 Describes the TableGen tool, which is used heavily by the LLVM code
\r
199 :doc:`MIRPatterns <GlobalISel/MIRPatterns>`
\r
200 Describes the design of MIR Patterns and how to use them.
\r
206 :doc:`MCJITDesignAndImplementation`
\r
207 Describes the inner workings of MCJIT execution engine.
\r
210 Describes the design and implementation of the ORC APIs, including some
\r
211 usage examples, and a guide for users transitioning from ORCv1 to ORCv2.
\r
214 Describes the design and APIs for the JITLink library, ORC's new JIT
\r
217 :doc:`DebuggingJITedCode`
\r
218 How to debug JITed code with GDB.
\r
224 Provides information on using the command line parsing library.
\r
226 :doc:`ExtendingLLVM`
\r
227 Look here to see how to add instructions and intrinsics to LLVM.
\r
229 :doc:`AddingConstrainedIntrinsics`
\r
230 Gives the steps necessary when adding a new constrained math intrinsic
\r
233 :doc:`HowToBuildWindowsItaniumPrograms`
\r
234 Notes on assembling a Windows Itanium environment.
\r
236 :doc:`HowToCrossCompileBuiltinsOnArm`
\r
237 Notes on cross-building and testing the compiler-rt builtins for Arm.
\r
239 :doc:`BigEndianNEON`
\r
240 LLVM's support for generating NEON instructions on big endian ARM targets is
\r
241 somewhat nonintuitive. This document explains the implementation and rationale.
\r
244 LLVM's support for AArch64 SME ACLE and ABI.
\r
246 :doc:`CompileCudaWithLLVM`
\r
247 LLVM support for CUDA.
\r
250 This document describes using the NVPTX backend to compile GPU kernels.
\r
253 This document describes using the AMDGPU backend to compile GPU kernels.
\r
255 :doc:`AMDGPUDwarfExtensionsForHeterogeneousDebugging`
\r
256 This document describes DWARF extensions to support heterogeneous debugging
\r
257 for targets such as the AMDGPU backend.
\r
259 :doc:`AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack/AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack`
\r
260 This document describes a DWARF extension to allow location descriptions on
\r
261 the DWARF expression stack. It is part of
\r
262 :doc:`AMDGPUDwarfExtensionsForHeterogeneousDebugging`.
\r
265 This document describes using the SPIR-V target to compile GPU kernels.
\r
267 :doc:`DirectXUsage`
\r
268 This document describes using the DirectX target to compile GPU code for the
\r
272 This document describes using the RISCV-V target.
\r