Skip to content

Latest commit

 

History

History
305 lines (225 loc) · 11.7 KB

ReleaseNotes.rst

File metadata and controls

305 lines (225 loc) · 11.7 KB

LLVM |release| Release Notes

.. only:: PreRelease

  .. warning::
     These are in-progress notes for the upcoming LLVM |version| release.
     Release notes for previous releases can be found on
     `the Download Page <https://releases.llvm.org/download.html>`_.


This document contains the release notes for the LLVM Compiler Infrastructure, release |release|. 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 Discourse forums is a good place to ask 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.

  • ...
  • The minimum Python version has been raised from 3.6 to 3.8 across all of LLVM. This enables the use of many new Python features, aligning more closely with modern Python best practices, and improves CI maintainability See #78828 for more info.
  • Added Memory Model Relaxation Annotations (MMRAs).
  • Added nusw and nuw flags to getelementptr instruction.
  • Renamed llvm.experimental.vector.reverse intrinsic to llvm.vector.reverse.
  • Renamed llvm.experimental.vector.splice intrinsic to llvm.vector.splice.
  • Renamed llvm.experimental.vector.interleave2 intrinsic to llvm.vector.interleave2.
  • Renamed llvm.experimental.vector.deinterleave2 intrinsic to llvm.vector.deinterleave2.
  • The constant expression variants of the following instructions have been removed:
    • icmp
    • fcmp
  • The LLVM_ENABLE_TERMINFO flag has been removed. LLVM no longer depends on terminfo and now always uses the TERM environment variable for color support autodetection.
  • We can define type aliases via new keyword deftype.
  • Added support for Cortex-A78AE, Cortex-A520AE, Cortex-A720AE, Cortex-R82AE, Neoverse-N3, Neoverse-V3 and Neoverse-V3AE CPUs.
  • -mbranch-protection=standard now enables FEAT_PAuth_LR by default when the feature is enabled. The new behaviour results in standard being equal to bti+pac-ret+pc when +pauth-lr is passed as part of -mcpu= options.
  • Added support for Cortex-R52+ CPU.
  • FEAT_F32MM is no longer activated by default when using +sve on v8.6-A or greater. The feature is still available and can be used by adding +f32mm to the command line options.
  • armv8-r now implies only fp-armv8d16sp, rather than neon and full fp-armv8. These features are still included by default for cortex-r52. The default cpu for armv8-r is now "generic", for compatibility with variants that do not include neon, fp64, and d32.
  • i32 is now a native type in the datalayout string. This enables LoopStrengthReduce for loops with i32 induction variables, among other optimizations.
  • Added full support for the experimental Zabha (Byte and Halfword Atomic Memory Operations) extension.
  • Added assembler/disassembler support for the experimenatl Zalasr (Load-Acquire and Store-Release) extension.
  • The names of the majority of the S-prefixed (supervisor-level) extension names in the RISC-V profiles specification are now recognised.
  • Codegen support was added for the Zimop (May-Be-Operations) extension.
  • The experimental Ssnpm, Smnpm, Smmpm, Sspm, and Supm 0.8.1 Pointer Masking extensions are supported.
  • The experimental Ssqosid extension is supported.
  • Zacas is no longer experimental.
  • Added the CSR names from the Resumable Non-Maskable Interrupts (Smrnmi) extension.
  • llvm-objdump now prints disassembled opcode bytes in groups of 2 or 4 bytes to match GNU objdump. The bytes within the groups are in big endian order.
  • Added smstateen extension to -march. CSR names for smstateen were already supported.
  • Zaamo and Zalrsc are no longer experimental.
  • Processors that enable post reg-alloc scheduling (PostMachineScheduler) by default should use the UsePostRAScheduler subtarget feature. Setting PostRAScheduler = 1 in the scheduler model will have no effect on the enabling of the PostMachineScheduler.
  • Zabha is no longer experimental.
  • Removed knl/knm specific ISA intrinsics: AVX512PF, AVX512ER, PREFETCHWT1, while assembly encoding/decoding supports are kept.
  • Added LLVMGetBlockAddressFunction and LLVMGetBlockAddressBasicBlock functions for accessing the values in a blockaddress constant.
  • Added LLVMConstStringInContext2 function, which better matches the C++ API by using size_t for string length. Deprecated LLVMConstStringInContext.
  • Added the following functions for accessing a function's prefix data:
    • LLVMHasPrefixData
    • LLVMGetPrefixData
    • LLVMSetPrefixData
  • Added the following functions for accessing a function's prologue data:
    • LLVMHasPrologueData
    • LLVMGetPrologueData
    • LLVMSetPrologueData
  • Deprecated LLVMConstNUWNeg and LLVMBuildNUWNeg.
  • Added LLVMAtomicRMWBinOpUIncWrap and LLVMAtomicRMWBinOpUDecWrap to LLVMAtomicRMWBinOp enum for AtomicRMW instructions.
  • Added LLVMCreateConstantRangeAttribute function for creating ConstantRange Attributes.
  • Added the following functions for creating and accessing data for CallBr instructions:
    • LLVMBuildCallBr
    • LLVMGetCallBrDefaultDest
    • LLVMGetCallBrNumIndirectDests
    • LLVMGetCallBrIndirectDest
  • The following functions for creating constant expressions have been removed, because the underlying constant expressions are no longer supported. Instead, an instruction should be created using the LLVMBuildXYZ APIs, which will constant fold the operands if possible and create an instruction otherwise:
    • LLVMConstICmp
    • LLVMConstFCmp
  • llvm-nm and llvm-objdump can now print symbol information from linked WebAssembly binaries, using information from exports or the "name" section for functions, globals and data segments. Symbol addresses and sizes are printed as offsets in the file, allowing for binary size analysis. Wasm files using reference types and GC are also supported (but also only for functions, globals, and data, and only for listing symbols and names).
  • llvm-ar now utilizes LLVM_DEFAULT_TARGET_TRIPLE to determine the archive format if it's not specified with the --format argument and cannot be inferred from input files.
  • llvm-ar now allows specifying COFF archive format with --format argument and uses it by default for COFF targets.
  • llvm-ranlib now supports -V as an alias for --version. -v (--verbose in llvm-ar) has been removed. (#87661)
  • llvm-objcopy now supports --set-symbol-visibility and --set-symbols-visibility options for ELF input to change the visibility of symbols.
  • llvm-objcopy now supports --skip-symbol and --skip-symbols options for ELF input to skip the specified symbols when executing other options that can change a symbol's name, binding or visibility.
  • llvm-objcopy now supports --compress-sections to compress or decompress arbitrary sections not within a segment. (#85036.)
  • llvm-profgen now supports COFF+DWARF binaries. This enables Sample-based PGO on Windows using Intel VTune's SEP. For details on usage, see the end-user documentation for SPGO.
  • llvm-readelf's -r output for RELR has been improved. (#89162) --raw-relr has been removed.
  • llvm-mca now aborts by default if it is given bad input where previously it would continue. Additionally, it can now continue when it encounters instructions which lack scheduling information. The behaviour can be controlled by the newly introduced --skip-unsupported-instructions=<none|lack-sched|parse-failure|any>, as documented in --help output and the command guide. (#90474 <#90474>)
  • llvm-readobj's LLVM output format for ELF core files has been changed. Similarly, the JSON format has been fixed for this case. The NT_FILE note now has a map for the mapped files. (#92835 <#92835>).
  • A project...

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 Discourse forums.