Skip to content

[docs] Add llvm and clang release notes for the global-var code model attribute#78664

Merged
heiher merged 3 commits intollvm:mainfrom
heiher:rel-notes
Jan 22, 2024
Merged

[docs] Add llvm and clang release notes for the global-var code model attribute#78664
heiher merged 3 commits intollvm:mainfrom
heiher:rel-notes

Conversation

@heiher
Copy link
Copy Markdown
Member

@heiher heiher commented Jan 19, 2024

No description provided.

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Jan 19, 2024
@llvmbot
Copy link
Copy Markdown
Member

llvmbot commented Jan 19, 2024

@llvm/pr-subscribers-clang

Author: hev (heiher)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/78664.diff

2 Files Affected:

  • (modified) clang/docs/ReleaseNotes.rst (+8)
  • (modified) llvm/docs/ReleaseNotes.rst (+4)
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
 ---------------------------

Copy link
Copy Markdown
Contributor

@SixWeining SixWeining left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@heiher heiher added this to the LLVM 18.0.X Release milestone Jan 21, 2024
@heiher heiher merged commit 890acf8 into llvm:main Jan 22, 2024
@heiher heiher deleted the rel-notes branch January 22, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants