LLVM 14 Release Notes

Introduction

This document contains the release notes for the LLVM Compiler Infrastructure, release 14. Here we describe the status of LLVM, including major improvements from the previous release, improvements in various subprojects of LLVM, and some of the current users of the code. All LLVM releases may be downloaded from the LLVM releases web site.

For more information about LLVM, including information about the latest release, please check out the main LLVM web site. If you have questions or comments, the LLVM Developer’s Mailing List is a good place to send them.

Note that if you are reading this file from a Git checkout or the main LLVM web page, this document applies to the next release, not the current one. To see the release notes for a specific release, please see the releases page.

Non-comprehensive list of changes in this release

Changes to the LLVM IR

  • Using the legacy pass manager for the optimization pipeline is deprecated and will be removed after LLVM 14. In the meantime, only minimal effort will be made to maintain the legacy pass manager for the optimization pipeline.
  • Max allowed integer type was reduced from 2^24-1 bits to 2^23 bits.
  • Max allowed alignment was increased from 2^29 to 2^32.

Changes to building LLVM

  • Building LLVM with Visual Studio now requires version 2019 or later.

Changes to the AArch64 Backend

  • Added support for the Armv9-A, Armv9.1-A and Armv9.2-A architectures.
  • The compiler now recognises the “tune-cpu” function attribute to support the use of the -mtune frontend flag. This allows certain scheduling features and optimisations to be enabled independently of the architecture. If the “tune-cpu” attribute is absent it tunes according to the “target-cpu”.
  • Fixed relocations against temporary symbols (e.g. in jump tables and constant pools) in large COFF object files.

Changes to the ARM Backend

  • Added support for the Armv9-A, Armv9.1-A and Armv9.2-A architectures.
  • Added support for the Armv8.1-M PACBTI-M extension.
  • Changed the assembly comment string for MSVC targets to @ (consistent with the MinGW and ELF targets), freeing up ; to be used as statement separator.

Changes to the MIPS Target

During this release …

Changes to the PowerPC Target

During this release …

Changes to the X86 Target

During this release …

  • Support for AVX512-FP16 instructions has been added.

Changes to the AMDGPU Target

During this release …

Changes to the AVR Target

During this release …

Changes to the WebAssembly Target

During this release …

Changes to the Windows Target

  • Changed how the .pdata sections refer to the code they’re describing, to avoid conflicting unwind info if weak symbols are overridden.
  • Fixed code generation for calling support routines for converting 128 bit integers from/to floats on x86_64.
  • The preferred path separator form (backslashes or forward slashes) can be configured in Windows builds of LLVM now, with the LLVM_WINDOWS_PREFER_FORWARD_SLASH CMake option. This defaults to true in MinGW builds of LLVM.
  • Set proper COFF symbol types for function aliases (e.g. for Itanium C++ constructors), making sure that GNU ld exports all of them correctly as functions, not data, when linking a DLL.
  • Handling of temporary files on more uncommon file systems (network mounts, ramdisks) on Windows is fixed now (which previously either errored out or left stray files behind).

Changes to the C API

  • LLVMSetInstDebugLocation has been deprecated in favor of the more general LLVMAddMetadataToInst.
  • Fixed building LLVM-C.dll for i386 targets with MSVC, which had been broken since the LLVM 8.0.0 release.

Changes to the Debug Info

During this release …

Changes to the LLVM tools

  • llvm-cov: -name-allowlist is now accepted in addition to -name-whitelist. -name-whitelist is marked as deprecated and to be removed in future releases.
  • llvm-readobj: Improved printing of symbols in Windows unwind data.

Changes to LLDB

  • A change in Clang’s type printing has changed the way LLDB names array types (from int [N] to int[N]) - LLDB pretty printer type name matching code may need to be updated to handle this.
  • The following commands now ignore non-address bits (e.g. AArch64 pointer signatures) in address arguments. In addition, non-address bits will not be shown in the output of the commands.
    • memory find
    • memory read
    • memory tag read
    • memory tag write
  • The memory read command has a new option --show-tags. Use this option to show memory tags beside the contents of tagged memory ranges.
  • Fixed continuing from breakpoints and singlestepping on Windows on ARM/ARM64.

Additional Information

A wide variety of additional information is available on the LLVM web page, in particular in the documentation section. The web page also contains versions of the API documentation which is up-to-date with the Git version of the source code. You can access versions of these documents specific to this release by going into the llvm/docs/ directory in the LLVM tree.

If you have any questions or comments about LLVM, please feel free to contact us via the mailing lists.