Author: hev Date: 2024-01-22T09:35:21+08:00 New Revision: 890acf8d382d70c07a589d5ab9b83e64841b9e96
URL: https://github.com/llvm/llvm-project/commit/890acf8d382d70c07a589d5ab9b83e64841b9e96 DIFF: https://github.com/llvm/llvm-project/commit/890acf8d382d70c07a589d5ab9b83e64841b9e96.diff LOG: [docs] Add llvm and clang release notes for the global-var code model attribute (#78664) Added: Modified: clang/docs/ReleaseNotes.rst llvm/docs/ReleaseNotes.rst Removed: ################################################################################ diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index dc31594e4b040e..2c7c7b8a21b8e7 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -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 ^^^^^^^^^^^^^^ diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst index 82cf130ffd1866..c17c834c8081b8 100644 --- a/llvm/docs/ReleaseNotes.rst +++ b/llvm/docs/ReleaseNotes.rst @@ -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 ------------------------------ @@ -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 --------------------------- _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits