[all-commits] [llvm/llvm-project] dab9fa: [Flang] LoongArch64 support for BIND(C) derived ty...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Thu Nov 28 19:50:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dab9fa2d7f3b3092d4ab0c815868ec68a968a31a
      https://github.com/llvm/llvm-project/commit/dab9fa2d7f3b3092d4ab0c815868ec68a968a31a
  Author: Zhaoxin Yang <yangzhaoxin at loongson.cn>
  Date:   2024-11-29 (Fri, 29 Nov 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Flang.cpp
    M clang/lib/Driver/ToolChains/Flang.h
    M flang/lib/Optimizer/CodeGen/Target.cpp
    A flang/test/Driver/mabi-loongarch.f90
    A flang/test/Fir/struct-passing-loongarch64-byreg.fir
    A flang/test/Fir/struct-passing-return-loongarch64-bystack.fir
    A flang/test/Fir/struct-return-loongarch64-byreg.fir

  Log Message:
  -----------
  [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (#117108)

This patch:
- Supports both the passing and returning of BIND(C) type parameters.
- Adds `mabi` check for LoongArch64. Currently, flang only supports
`mabi=` option
set to `lp64d` in LoongArch64, other ABIs will report an error and may
be supported
  in the future.

Reference ABI:

https://github.com/loongson/la-abi-specs/blob/release/lapcs.adoc#subroutine-calling-sequence



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