[docs] Add llvm and clang release notes for the global-var code model attribute#78664
Conversation
Member
|
@llvm/pr-subscribers-clang Author: hev (heiher) ChangesFull diff: https://github.com/llvm/llvm-project/pull/78664.diff 2 Files Affected:
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index b400d75095421c..25f9f9577834b3 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -1119,6 +1119,14 @@ Windows Support
LoongArch Support
^^^^^^^^^^^^^^^^^
+- Added a code model attribute for the global variable. 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 4345d01021f17d..e45744ffb02f6d 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
--------------------------------
+* Respect the code model attribute of global variables when different from
+ their default values.
Changes to the MIPS Backend
---------------------------
|
arsenm
reviewed
Jan 19, 2024
xen0n
reviewed
Jan 19, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.