Skip to content

[docs] Add llvm & clang release notes for LoongArch #79097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1189,8 +1189,14 @@ 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:
- Added builtins support for all LSX (128-bits SIMD) and LASX (256-bits SIMD)
instructions.
- Added builtins support for approximate calculation instructions that were
introduced in LoongArch Reference Manual V1.10.
- Made ``-mcmodel=`` compatible with LoongArch gcc that accepted ``normal``,
``medium`` and ``extreme``.
- The ``model`` attribute was now supported for overriding the default code
model used to access global variables. The following values were supported:
``normal``, ``medium`` and ``extreme``.

*Example Code*:
Expand All @@ -1199,6 +1205,10 @@ LoongArch Support

int var __attribute((model("extreme")));

- Default to ``-fno-direct-access-external-data`` for non-PIC.
- An ABI mismatch with gcc/g++ about empty structs/unions passing was fixed.
- ``_mcount`` was generated instead of ``mcount``.

RISC-V Support
^^^^^^^^^^^^^^
- Unaligned memory accesses can be toggled by ``-m[no-]unaligned-access`` or the
Expand Down
17 changes: 15 additions & 2 deletions llvm/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,21 @@ 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``.

* Added intrinsics support for all LSX (128-bits SIMD) and LASX (256-bits SIMD)
instructions.
* Added definition and intrinsics support for new instructions that were
introduced in LoongArch Reference Manual V1.10.
* Emitted adjacent ``pcaddu18i+jirl`` instrunction sequence with one relocation
``R_LARCH_CALL36`` instead of ``pcalau12i+jirl`` with two relocations
``R_LARCH_PCALA_{HI20,LO12}`` for function call in medium code model.
* The code model of global variables can now be overridden by means of the newly
added LLVM IR attribute, ``code_model``.
* Added support for the ``llvm.is.fpclass`` intrinsic.
* ``mulodi4`` and ``muloti4`` libcalls were disabled due to absence in libgcc.
* Added initial support for auto vectorization.
* Added initial support for linker relaxation.
* Assorted codegen improvements.

Changes to the MIPS Backend
---------------------------
Expand Down