[all-commits] [llvm/llvm-project] 20b442: [Flang][LoongArch] Add support for complex16 param...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Wed Nov 13 00:13:58 PST 2024


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

  Changed paths:
    M flang/lib/Optimizer/CodeGen/Target.cpp
    M flang/test/Fir/target-rewrite-complex16.fir

  Log Message:
  -----------
  [Flang][LoongArch] Add support for complex16 params/returns. (#114732)

In LoongArch64, the passing and returning of type `complex16` is similar
to that of structure type like `struct {fp128, fp128}`, meaning they are
passed and returned by reference. This behavior is similar to clang, so
it can implement conveniently `iso_c_binding`.

Additionally, this patch fixes the failure in flang test
Integration/debug-complex-1.f90:
```
llvm-project/flang/lib/Optimizer/codeGen/Target.cpp:56:
not yet implemented: complex for this precision for return type



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