[all-commits] [llvm/llvm-project] 8c65f6: [clang][LoongArch] Add support for the _Float16 ty...

Ami-zhang via All-commits all-commits at lists.llvm.org
Mon Jun 2 23:26:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c65f68330c77c27aae2ff58e883802760891cbb
      https://github.com/llvm/llvm-project/commit/8c65f68330c77c27aae2ff58e883802760891cbb
  Author: Ami-zhang <zhanglimin at loongson.cn>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/lib/Basic/Targets/LoongArch.h
    M clang/lib/CodeGen/Targets/LoongArch.cpp
    A clang/test/CodeGen/LoongArch/__fp16-convert.c
    M clang/test/CodeGen/LoongArch/abi-lp64d.c

  Log Message:
  -----------
  [clang][LoongArch] Add support for the _Float16 type (#141703)

Enable _Float16 for LoongArch target. Additionally, this change fixes
incorrect ABI lowering of _Float16 in the case of structs containing
fp16 that are eligible for passing via GPR+FPR or FPR+FPR. Finally, it
also fixes int16 -> __fp16 conversion code gen, which uses generic LLVM
IR rather than llvm.convert.to.fp16 intrinsics.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list