[clang] [docs] Add clang release notes for LoongArch (PR #146481)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 01:37:45 PDT 2025


https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/146481

>From 0942e511d36bf593808a04e3c6629adc3c5e94dd Mon Sep 17 00:00:00 2001
From: Ami-zhang <zhanglimin at loongson.cn>
Date: Tue, 1 Jul 2025 15:16:58 +0800
Subject: [PATCH] [docs] Add clang release notes for LoongArch

---
 clang/docs/ReleaseNotes.rst | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index e6c8f9df22170..5590c7779b80d 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -985,6 +985,36 @@ Windows Support
 LoongArch Support
 ^^^^^^^^^^^^^^^^^
 
+- Add support for OHOS on loongarch64.
+
+- Add inline asm support for the `q` constraint.
+
+- Add `same-address` constraint to the description of `-m[no]ld-seq-sa`.
+
+- Add target attribute support for function. Supported formats include:
+  * `arch=<arch>` strings, that specify the architecture features for a
+    function as per the `-march=<arch>` option.
+  * `tune=<cpu>` strings, that specify the tune-cpu cpu for a function as
+    per `-mtune`.
+  * `<feature>`/`no-<feature>` enables/disables the specific feature.
+
+- Only report the first range error if there is actually more than one for
+  `__builtin_loongarch_cacop_[wd]`.
+
+- Add support for the `_Float16` type. And fix incorrect ABI lowering of `_Float16`
+  in the case of structs containing fp16 that are eligible for passing via `GPR+FPR`
+  or `FPR+FPR`. Also fix `int16` -> `__fp16` conversion code gen, which uses generic LLVM
+  IR rather than `llvm.convert.to.fp16` intrinsics.
+
+- Add support for the `__bf16` type.
+
+- Fix `-mno-lsx` option not disabling LASX feature. When `-march` with LASX feature and
+  `-mno-lsx` options are used together, `-mno-lsx` fails to disable LASX, leaving
+  `HasFeatureLASX=true` and causing incorrect `__loongarch_sx/asx=1` macro definition.
+
+- Fix incorrect _BitInt(N>64) alignment. Now consistently uses 16-byte alignment for all
+  `_BitInt(N)` where N > 64.
+
 RISC-V Support
 ^^^^^^^^^^^^^^
 



More information about the cfe-commits mailing list