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

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 19:17:21 PST 2024


https://github.com/heiher created https://github.com/llvm/llvm-project/pull/78664

None

>From ccb95a2f466660e94ab773dd8897dd287dba7a38 Mon Sep 17 00:00:00 2001
From: WANG Rui <wangrui at loongson.cn>
Date: Fri, 19 Jan 2024 11:13:39 +0800
Subject: [PATCH] [docs] Add llvm and clang release notes for the global-var
 code model attribute

---
 clang/docs/ReleaseNotes.rst | 8 ++++++++
 llvm/docs/ReleaseNotes.rst  | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index b400d75095421c7..25f9f9577834b3f 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 4345d01021f17da..e45744ffb02f6d4 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
 ---------------------------



More information about the cfe-commits mailing list