diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index dc31594e4b040..2c7c7b8a21b8e 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 82cf130ffd186..c17c834c8081b 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 `_. + 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 ---------------------------