1========================= 2LLVM 13.0.0 Release Notes 3========================= 4 5.. contents:: 6 :local: 7 8.. warning:: 9 These are in-progress notes for the upcoming LLVM 13 release. 10 Release notes for previous releases can be found on 11 `the Download Page <https://releases.llvm.org/download.html>`_. 12 13 14Introduction 15============ 16 17This document contains the release notes for the LLVM Compiler Infrastructure, 18release 13.0.0. Here we describe the status of LLVM, including major improvements 19from the previous release, improvements in various subprojects of LLVM, and 20some of the current users of the code. All LLVM releases may be downloaded 21from the `LLVM releases web site <https://llvm.org/releases/>`_. 22 23For more information about LLVM, including information about the latest 24release, please check out the `main LLVM web site <https://llvm.org/>`_. If you 25have questions or comments, the `LLVM Developer's Mailing List 26<https://lists.llvm.org/mailman/listinfo/llvm-dev>`_ is a good place to send 27them. 28 29Note that if you are reading this file from a Git checkout or the main 30LLVM web page, this document applies to the *next* release, not the current 31one. To see the release notes for a specific release, please see the `releases 32page <https://llvm.org/releases/>`_. 33 34Non-comprehensive list of changes in this release 35================================================= 36.. NOTE 37 For small 1-3 sentence descriptions, just add an entry at the end of 38 this list. If your description won't fit comfortably in one bullet 39 point (e.g. maybe you would like to give an example of the 40 functionality, or simply have a lot to talk about), see the `NOTE` below 41 for adding a new subsection. 42 43 44.. NOTE 45 If you would like to document a larger change, then you can add a 46 subsection about it right here. You can copy the following boilerplate 47 and un-indent it (the indentation causes it to be inside this comment). 48 49 Special New Feature 50 ------------------- 51 52 Makes programs 10x faster by doing Special New Thing. 53 54* Windows Control-flow Enforcement Technology: the ``-ehcontguard`` option now 55 emits valid unwind entrypoints which are validated when the context is being 56 set during exception handling. 57 58Changes to the LLVM IR 59---------------------- 60 61* The ``inalloca`` attribute now has a mandatory type field, similar 62 to ``byval`` and ``sret``. 63 64* The opaque pointer type ``ptr`` has been introduced. It is still in the 65 process of being worked on and should not be used yet. 66 67Changes to building LLVM 68------------------------ 69 70* The build system now supports building multiple distributions, so that you can 71 e.g. have one distribution containing just tools and another for libraries (to 72 enable development). See :ref:`Multi-distribution configurations` for details. 73 74Changes to TableGen 75------------------- 76 77Changes to the AArch64 Backend 78------------------------------ 79 80* Introduced support for Armv9-A's Realm Management Extension. 81 82Changes to the ARM Backend 83-------------------------- 84 85During this release ... 86 87Changes to the MIPS Target 88-------------------------- 89 90During this release ... 91 92Changes to the Hexagon Target 93----------------------------- 94 95* The Hexagon target now supports V68/HVX ISA. 96 97Changes to the PowerPC Target 98----------------------------- 99 100During this release ... 101 102Changes to the X86 Target 103------------------------- 104 105During this release ... 106 107Changes to the AMDGPU Target 108----------------------------- 109 110During this release ... 111 112Changes to the AVR Target 113----------------------------- 114 115During this release ... 116 117Changes to the WebAssembly Target 118--------------------------------- 119 120During this release ... 121 122Changes to the OCaml bindings 123----------------------------- 124 125 126Changes to the C API 127-------------------- 128 129* The C API functions ``LLVMGetAlignment`` and ``LLVMSetAlignment`` now allow 130 changing alignment on atomicrmw and cmpxchg instructions 131 132* A new entry ``LLVMDIArgListMetadataKind`` was added to the 133 ``LLVMMetadataKind`` enum, representing DIArgLists 134 (`D88175 <https://reviews.llvm.org/D88175>`_) 135 136* Type attributes have been added to LLVM-C, introducing 137 LLVMCreateTypeAttribute, LLVMGetTypeAttributeValue and LLVMIsTypeAttribute. 138 (`D977763' <https://reviews.llvm.org/D97763>`_) 139 140* The ``LTO_API_VERSION`` was bumped to 28, introducing a new function 141 ``lto_set_debug_options`` for parsing LTO debug options 142 (`D92611 <https://reviews.llvm.org/D92611>`_) 143 144* ``LLVMJITTargetSymbolFlags`` was renamed to ``LLVMJITSymbolTargetFlags`` 145 (`rG8d718a0bff73af066675a6258c01307937c33cf9 146 <https://reviews.llvm.org/rG8d718a0bff73af066675a6258c01307937c33cf9>`_) 147 148* The C API received support for creating custom ORCv2 MaterializationUnits and 149 APIs to retrieve an LLJIT instance's linking layers. An ABI breaking change 150 for ``LLVMOrcAbsoluteSymbols`` was introduced to make it consistent with 151 ``LLVMOrcCreateCustomMaterializationUnit``. 152 (`rGc8fc5e3ba942057d6c4cdcd1faeae69a28e7b671 153 <https://reviews.llvm.org/rGc8fc5e3ba942057d6c4cdcd1faeae69a28e7b671>`_) 154 155* The C API received support for adding ORCv2 object buffers directly to an object 156 layer. (`rG7b73cd684a8d5fb44d34064200f10e2723085c33 157 <https://reviews.llvm.org/rG7b73cd684a8d5fb44d34064200f10e2723085c33>`_) 158 159* A breaking change to ``LLVMGetInlineAsm`` was introduced, adding a ninth 160 argument ``LLVMBool CanThrow`` (`D95745 <https://reviews.llvm.org/D95745>`_) 161 162* The C API received support for calling into the new pass manager. 163 (`D102136 <https://reviews.llvm.org/D102136>`_) 164 165* The C API function ``LLVMIntrinsicCopyOverloadedName`` has been deprecated. 166 Please migrate to ``LLVMIntrinsicCopyOverloadedName2`` which takes an extra 167 module argument and which also handles unnamed types. 168 (`D99173 <https://reviews.llvm.org/D99173>`_) 169 170* The C API received support for dumping objects from ORCv2 171 (`rGcec8e69f01c3374cb38c6683058381b96fab8f89 172 <https://reviews.llvm.org/rGcec8e69f01c3374cb38c6683058381b96fab8f89>`_) 173 174* A breaking change to ``LLVMOrcObjectTransformLayerTransformFunction`` was 175 introduced, changing the order of the function pointer's arguments. 176 (`rG8962c68ad007a525f9daa987c99eda57e0d0069a 177 <https://reviews.llvm.org/rG8962c68ad007a525f9daa987c99eda57e0d0069a>`_) 178 179* The C API received support for accessing utilities from the LLJIT 180 ``IRTransformLayer`` and ``ThreadSafeModule`` classes. (`D103855 181 <https://reviews.llvm.org/D103855>`_) 182 183* The C API received support for creating lazy-export MaterializationUnits 184 (`D104672 <https://reviews.llvm.org/D104672>`_) 185 186* The C API function ``LLVMPassBuilderOptionsSetCoroutines`` was removed because 187 couroutine passes have been enabled by default. (`D105877 188 <https://reviews.llvm.org/D105877>`_) 189 190* ``comdat noduplicates`` was renamed to ``comdat nodeduplicate`` and as a 191 result, ``LLVMNoDuplicatesComdatSelectionKind`` was renamed to 192 ``LLVMNoDeduplicateComdatSelectionKind``. (`D106319 193 <https://reviews.llvm.org/D106319>`_) 194 195Changes to the Go bindings 196-------------------------- 197 198 199Changes to the FastISel infrastructure 200-------------------------------------- 201 202* FastISel no longer tracks killed registers, and instead leaves this to the 203 register allocator. This means that ``hasTrivialKill()`` is removed, as well 204 as the ``OpNIsKill`` parameters to the ``fastEmit_*()`` family of functions. 205 206Changes to the DAG infrastructure 207--------------------------------- 208 209 210Changes to the Debug Info 211--------------------------------- 212 213During this release ... 214 215Changes to the LLVM tools 216--------------------------------- 217 218* The options ``--build-id-link-{dir,input,output}`` have been deleted. 219 (`D96310 <https://reviews.llvm.org/D96310>`_) 220 221* Support for in-order processors has been added to ``llvm-mca``. 222 (`D94928 <https://reviews.llvm.org/D94928>`_) 223 224* llvm-objdump supports ``-M {att,intel}`` now. 225 ``--x86-asm-syntax`` is a deprecated internal option which will be removed in LLVM 14.0.0. 226 (`D101695 <https://reviews.llvm.org/D101695>`_) 227 228* The llvm-readobj short aliases ``-s`` (previously ``--sections``) and ``-t`` 229 (previously ``--syms``) have been changed to ``--syms`` and 230 ``--section-details`` respectively, to match llvm-readelf. 231 (`D105055 <https://reviews.llvm.org/D105055>`_) 232 233* The llvm-nm short aliases ``-M`` (``--print-armap``), ``-U`` 234 (``--defined-only``), and ``-W`` (``--no-weak``) are now deprecated. 235 Use the long form versions instead. 236 The alias ``--just-symbol-name`` is now deprecated in favor of 237 ``--format=just-symbols`` and ``-j``. 238 (`D105330 <https://reviews.llvm.org/D105330>`_) 239 240* In lli the default JIT engine switched from MCJIT (``-jit-kind=mcjit``) to ORC (``-jit-kind=orc``). 241 (`D98931 <https://reviews.llvm.org/D98931>`_) 242 243Changes to LLDB 244--------------------------------- 245 246Changes to Sanitizers 247--------------------- 248 249External Open Source Projects Using LLVM 13 250=========================================== 251 252* A project... 253 254Additional Information 255====================== 256 257A wide variety of additional information is available on the `LLVM web page 258<https://llvm.org/>`_, in particular in the `documentation 259<https://llvm.org/docs/>`_ section. The web page also contains versions of the 260API documentation which is up-to-date with the Git version of the source 261code. You can access versions of these documents specific to this release by 262going into the ``llvm/docs/`` directory in the LLVM tree. 263 264If you have any questions or comments about LLVM, please feel free to contact 265us via the `mailing lists <https://llvm.org/docs/#mailing-lists>`_. 266