Skip to content

Commit

Permalink
[docs] Add llvm and clang release notes for the global-var code model…
Browse files Browse the repository at this point in the history
… attribute (#78664)
  • Loading branch information
heiher committed Jan 22, 2024
1 parent 1d9a65b commit 890acf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,15 @@ Windows Support

LoongArch Support
^^^^^^^^^^^^^^^^^
- The ``model`` attribute is now supported for overriding the default code
model used to access global variables. The following values are supported:
``normal``, ``medium`` and ``extreme``.

*Example Code*:

.. code-block:: c
int var __attribute((model("extreme")));
RISC-V Support
^^^^^^^^^^^^^^
Expand Down
4 changes: 4 additions & 0 deletions llvm/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Changes to the LLVM IR

* Added `llvm.exp10` intrinsic.

* Added a ``code_model`` attribute for the `global variable <LangRef.html#global-variables>`_.

Changes to LLVM infrastructure
------------------------------

Expand Down Expand Up @@ -130,6 +132,8 @@ Changes to the Hexagon Backend

Changes to the LoongArch Backend
--------------------------------
* The code model of global variables can now be overridden by means of
the newly added LLVM IR attribute, ``code_model``.

Changes to the MIPS Backend
---------------------------
Expand Down

0 comments on commit 890acf8

Please sign in to comment.