2019-07-18 11:51:05 +00:00
|
|
|
=========================
|
2020-01-15 10:02:56 +01:00
|
|
|
LLVM 11.0.0 Release Notes
|
2019-07-18 11:51:05 +00:00
|
|
|
=========================
|
2012-12-09 23:14:26 +00:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
2013-01-20 03:29:50 +00:00
|
|
|
.. warning::
|
2020-01-15 10:02:56 +01:00
|
|
|
These are in-progress notes for the upcoming LLVM 11 release.
|
2017-02-09 23:03:34 +00:00
|
|
|
Release notes for previous releases can be found on
|
2018-09-10 08:50:31 +00:00
|
|
|
`the Download Page <https://releases.llvm.org/download.html>`_.
|
2012-12-09 23:14:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
|
|
|
This document contains the release notes for the LLVM Compiler Infrastructure,
|
2020-01-15 10:02:56 +01:00
|
|
|
release 11.0.0. Here we describe the status of LLVM, including major improvements
|
2012-12-09 23:14:26 +00:00
|
|
|
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
|
2018-09-10 08:50:31 +00:00
|
|
|
from the `LLVM releases web site <https://llvm.org/releases/>`_.
|
2012-12-09 23:14:26 +00:00
|
|
|
|
|
|
|
For more information about LLVM, including information about the latest
|
2018-09-10 08:50:31 +00:00
|
|
|
release, please check out the `main LLVM web site <https://llvm.org/>`_. If you
|
2012-12-09 23:14:26 +00:00
|
|
|
have questions or comments, the `LLVM Developer's Mailing List
|
2018-09-10 08:50:31 +00:00
|
|
|
<https://lists.llvm.org/mailman/listinfo/llvm-dev>`_ is a good place to send
|
2012-12-09 23:14:26 +00:00
|
|
|
them.
|
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
Note that if you are reading this file from a Git checkout or the main
|
2012-12-09 23:14:26 +00:00
|
|
|
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
|
2018-09-10 08:50:31 +00:00
|
|
|
page <https://llvm.org/releases/>`_.
|
2012-12-09 23:14:26 +00:00
|
|
|
|
2013-01-20 03:29:50 +00:00
|
|
|
Non-comprehensive list of changes in this release
|
|
|
|
=================================================
|
|
|
|
.. NOTE
|
|
|
|
For small 1-3 sentence descriptions, just add an entry at the end of
|
|
|
|
this list. If your description won't fit comfortably in one bullet
|
|
|
|
point (e.g. maybe you would like to give an example of the
|
|
|
|
functionality, or simply have a lot to talk about), see the `NOTE` below
|
|
|
|
for adding a new subsection.
|
2012-12-09 23:14:26 +00:00
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
* ...
|
2020-05-23 13:51:43 +02:00
|
|
|
|
2019-11-08 10:05:37 -08:00
|
|
|
|
2013-01-20 03:29:50 +00:00
|
|
|
.. NOTE
|
|
|
|
If you would like to document a larger change, then you can add a
|
|
|
|
subsection about it right here. You can copy the following boilerplate
|
|
|
|
and un-indent it (the indentation causes it to be inside this comment).
|
2012-12-09 23:14:26 +00:00
|
|
|
|
2013-01-20 03:29:50 +00:00
|
|
|
Special New Feature
|
|
|
|
-------------------
|
2012-12-09 23:14:26 +00:00
|
|
|
|
2013-01-20 03:29:50 +00:00
|
|
|
Makes programs 10x faster by doing Special New Thing.
|
2012-12-09 23:14:26 +00:00
|
|
|
|
2019-12-24 18:12:15 -08:00
|
|
|
|
2016-03-29 06:55:56 +00:00
|
|
|
Changes to the LLVM IR
|
|
|
|
----------------------
|
|
|
|
|
2020-02-21 16:15:09 +00:00
|
|
|
* The callsite attribute `vector-function-abi-variant
|
|
|
|
<https://llvm.org/docs/LangRef.html#call-site-attributes>`_ has been
|
|
|
|
added to describe the mapping between scalar functions and vector
|
|
|
|
functions, to enable vectorization of call sites. The information
|
|
|
|
provided by the attribute is interfaced via the API provided by the
|
|
|
|
``VFDatabase`` class.
|
2019-08-03 14:28:34 +00:00
|
|
|
|
2020-05-16 17:55:18 -07:00
|
|
|
* `dereferenceable` attributes and metadata on pointers no longer imply
|
|
|
|
anything about the alignment of the pointer in question. Previously, some
|
|
|
|
optimizations would make assumptions based on the type of the pointer. This
|
|
|
|
behavior was undocumented. To preserve optimizations, frontends may need to
|
|
|
|
be updated to generate appropriate `align` attributes and metadata.
|
|
|
|
|
2020-05-27 14:01:35 +05:30
|
|
|
* The DIModule metadata is extended to contain file and line number
|
|
|
|
information. This information is used to represent Fortran modules debug
|
|
|
|
info at IR level.
|
|
|
|
|
2019-07-09 10:10:48 +00:00
|
|
|
Changes to building LLVM
|
|
|
|
------------------------
|
|
|
|
|
2014-03-18 10:16:15 +00:00
|
|
|
Changes to the ARM Backend
|
|
|
|
--------------------------
|
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
During this release ...
|
2014-08-22 21:57:38 +00:00
|
|
|
|
2020-03-24 11:37:51 +00:00
|
|
|
* Implemented C-language intrinsics for the full Arm v8.1-M MVE instruction
|
|
|
|
set. ``<arm_mve.h>`` now supports the complete API defined in the Arm C
|
|
|
|
Language Extensions.
|
2014-03-18 10:16:15 +00:00
|
|
|
|
2020-04-22 16:34:19 +01:00
|
|
|
* Added support for assembly for the optional Custom Datapath Extension (CDE)
|
|
|
|
for Arm M-profile targets.
|
|
|
|
|
2020-04-22 18:25:22 +01:00
|
|
|
* Implemented C-language intrinsics ``<arm_cde.h>`` for the CDE instruction set.
|
2020-04-22 16:34:19 +01:00
|
|
|
|
[Clang][A32/T32][Linux] -O1 implies -fomit-frame-pointer
Summary:
An upgrade of LLVM for CrOS [0] containing [1] triggered a bunch of
errors related to writing to reserved registers for a Linux kernel's
arm64 compat vdso (which is a aarch32 image).
After a discussion on LKML [2], it was determined that
-f{no-}omit-frame-pointer was not being specified. Comparing GCC and
Clang [3], it becomes apparent that GCC defaults to omitting the frame
pointer implicitly when optimizations are enabled, and Clang does not.
ie. setting -O1 (or above) implies -fomit-frame-pointer. Clang was
defaulting to -fno-omit-frame-pointer implicitly unless -fomit-frame-pointer
was set explicitly.
Why this becomes a problem is that the Linux kernel's arm64 compat vdso
contains code that uses r7. r7 is used sometimes for the frame pointer
(for example, when targeting thumb (-mthumb)). See useR7AsFramePointer()
in llvm/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h. This is mostly
for legacy/compatibility reasons, and the 2019 Q4 revision of the ARM
AAPCS looks to standardize r11 as the frame pointer for aarch32, though
this is not yet implemented in LLVM.
Users that are reliant on the implicit value if unspecified when
optimizations are enabled should explicitly choose -fomit-frame-pointer
(new behavior) or -fno-omit-frame-pointer (old behavior).
[0] https://bugs.chromium.org/p/chromium/issues/detail?id=1084372
[1] https://reviews.llvm.org/D76848
[2] https://lore.kernel.org/lkml/20200526173117.155339-1-ndesaulniers@google.com/
[3] https://godbolt.org/z/0oY39t
Reviewers: kristof.beyls, psmith, danalbert, srhines, MaskRay, ostannard, efriedma
Reviewed By: psmith, danalbert, srhines, MaskRay, efriedma
Subscribers: efriedma, olista01, MaskRay, vhscampos, cfe-commits, llvm-commits, manojgupta, llozano, glider, hctim, eugenis, pcc, peter.smith, srhines
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D80828
2020-06-02 15:54:09 -07:00
|
|
|
* Clang now defaults to ``-fomit-frame-pointer`` when targeting non-Android
|
|
|
|
Linux for arm and thumb when optimizations are enabled. Users that were
|
|
|
|
previously not specifying a value and relying on the implicit compiler
|
|
|
|
default may wish to specify ``-fno-omit-frame-pointer`` to get the old
|
|
|
|
behavior. This improves compatibility with GCC.
|
|
|
|
|
2014-07-23 12:59:26 +00:00
|
|
|
Changes to the MIPS Target
|
|
|
|
--------------------------
|
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
During this release ...
|
2015-01-11 10:34:52 +00:00
|
|
|
|
2014-07-23 12:59:26 +00:00
|
|
|
|
2014-07-31 14:38:17 +00:00
|
|
|
Changes to the PowerPC Target
|
2014-07-31 15:20:30 +00:00
|
|
|
-----------------------------
|
2014-07-31 14:38:17 +00:00
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
During this release ...
|
2014-07-31 14:38:17 +00:00
|
|
|
|
2015-12-21 02:37:23 +00:00
|
|
|
Changes to the X86 Target
|
2016-03-29 06:55:56 +00:00
|
|
|
-------------------------
|
2015-12-21 02:37:23 +00:00
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
During this release ...
|
|
|
|
|
2019-08-28 17:18:56 +00:00
|
|
|
|
2019-09-09 16:59:34 +02:00
|
|
|
* Functions with the probe-stack attribute set to "inline-asm" are now protected
|
|
|
|
against stack clash without the need of a third-party probing function and
|
|
|
|
with limited impact on performance.
|
2020-04-15 12:03:39 -07:00
|
|
|
* -x86-enable-old-knl-abi command line switch has been removed. v32i16/v64i8
|
|
|
|
vectors are always passed in ZMM register when avx512f is enabled and avx512bw
|
|
|
|
is disabled.
|
|
|
|
* Vectors larger than 512 bits with i16 or i8 elements will be passed in
|
|
|
|
multiple ZMM registers when avx512f is enabled. Previously this required
|
|
|
|
avx512bw otherwise they would split into multiple YMM registers. This means
|
|
|
|
vXi16/vXi8 vectors are consistently treated the same as
|
|
|
|
vXi32/vXi64/vXf64/vXf32 vectors of the same total width.
|
2019-09-09 16:59:34 +02:00
|
|
|
|
2016-01-26 04:29:15 +00:00
|
|
|
Changes to the AMDGPU Target
|
|
|
|
-----------------------------
|
|
|
|
|
2019-10-31 23:32:31 -07:00
|
|
|
* The backend default denormal handling mode has been switched to on
|
|
|
|
for all targets for all compute function types. Frontends wishing to
|
|
|
|
retain the old behavior should explicitly request f32 denormal
|
|
|
|
flushing.
|
|
|
|
|
2016-11-17 22:26:09 +00:00
|
|
|
Changes to the AVR Target
|
|
|
|
-----------------------------
|
|
|
|
|
2020-03-16 20:07:59 +13:00
|
|
|
* Moved from an experimental backend to an official backend. AVR support is now
|
|
|
|
included by default in all LLVM builds and releases and is available under
|
|
|
|
the "avr-unknown-unknown" target triple.
|
2016-11-17 22:26:09 +00:00
|
|
|
|
2019-01-14 18:20:30 +00:00
|
|
|
Changes to the WebAssembly Target
|
|
|
|
---------------------------------
|
|
|
|
|
2020-06-09 17:34:55 -07:00
|
|
|
* Programs which don't have a "main" function, called "reactors" are now
|
|
|
|
properly supported, with a new `-mexec-model=reactor` flag. Programs which
|
|
|
|
previously used `-Wl,--no-entry` to avoid having a main function should
|
|
|
|
switch to this new flag, so that static initialization is properly
|
|
|
|
performed.
|
|
|
|
|
|
|
|
* `__attribute__((visibility("protected")))` now evokes a warning, as
|
|
|
|
WebAssembly does not support "protected" visibility.
|
2019-01-14 18:20:30 +00:00
|
|
|
|
2015-01-13 09:48:02 +00:00
|
|
|
Changes to the OCaml bindings
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
2016-02-17 19:35:47 +00:00
|
|
|
|
2017-06-30 01:17:45 +00:00
|
|
|
Changes to the C API
|
|
|
|
--------------------
|
2019-12-03 09:29:54 +05:30
|
|
|
|
|
|
|
|
|
|
|
Changes to the Go bindings
|
|
|
|
--------------------------
|
2017-06-30 01:17:45 +00:00
|
|
|
|
2017-06-30 07:09:08 +00:00
|
|
|
|
Set ADDE/ADDC/SUBE/SUBC to expand by default
Summary:
They've been deprecated in favor of UADDO/ADDCARRY or USUBO/SUBCARRY for a while.
Target that uses these opcodes are changed in order to ensure their behavior doesn't change.
Reviewers: efriedma, craig.topper, dblaikie, bkramer
Subscribers: jholewinski, arsenm, jyknight, sdardis, nemanjai, nhaehnle, kbarton, fedor.sergeev, asb, rbar, johnrusso, simoncook, jordy.potman.lists, apazos, sabuasal, niosHD, jrtc27, zzheng, edward-jones, mgrang, atanasyan, llvm-commits
Differential Revision: https://reviews.llvm.org/D47422
llvm-svn: 333748
2018-06-01 13:21:33 +00:00
|
|
|
Changes to the DAG infrastructure
|
|
|
|
---------------------------------
|
2018-06-04 18:36:22 +00:00
|
|
|
|
2020-04-07 12:05:22 +02:00
|
|
|
|
|
|
|
Changes to the Debug Info
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
* LLVM now supports the debug entry values (DW_OP_entry_value) production for
|
|
|
|
the x86, ARM, and AArch64 targets by default. Other targets can use
|
|
|
|
the utility by using the experimental option ("-debug-entry-values").
|
|
|
|
This is a debug info feature that allows debuggers to recover the value of
|
|
|
|
optimized-out parameters by going up a stack frame and interpreting the values
|
|
|
|
passed to the callee. The feature improves the debugging user experience when
|
|
|
|
debugging optimized code.
|
|
|
|
|
2020-04-10 10:33:33 +02:00
|
|
|
Changes to the LLVM tools
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
* Added an option (--show-section-sizes) to llvm-dwarfdump to show the sizes
|
|
|
|
of all debug sections within a file.
|
|
|
|
|
2019-07-05 17:58:30 +00:00
|
|
|
Changes to LLDB
|
|
|
|
===============
|
|
|
|
|
2020-01-15 10:02:56 +01:00
|
|
|
External Open Source Projects Using LLVM 11
|
2019-07-18 11:51:05 +00:00
|
|
|
===========================================
|
2015-01-13 09:48:02 +00:00
|
|
|
|
2016-07-18 18:02:23 +00:00
|
|
|
* A project...
|
2013-11-14 05:57:40 +00:00
|
|
|
|
|
|
|
|
2012-12-09 23:14:26 +00:00
|
|
|
Additional Information
|
|
|
|
======================
|
|
|
|
|
|
|
|
A wide variety of additional information is available on the `LLVM web page
|
2018-09-10 08:50:31 +00:00
|
|
|
<https://llvm.org/>`_, in particular in the `documentation
|
|
|
|
<https://llvm.org/docs/>`_ section. The web page also contains versions of the
|
2020-01-15 10:02:56 +01:00
|
|
|
API documentation which is up-to-date with the Git version of the source
|
2012-12-09 23:14:26 +00:00
|
|
|
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
|
2018-09-10 08:50:31 +00:00
|
|
|
us via the `mailing lists <https://llvm.org/docs/#mailing-lists>`_.
|