diff options
author | Zhaoxin Yang <yangzhaoxin@loongson.cn> | 2024-11-13 16:13:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 16:13:37 +0800 |
commit | 20b442a25d86c35556cfc1bba4356f8ee75987bd (patch) | |
tree | 625ae0208344ba1af7ef8adbd5cd36ca65564eea /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | d56f5171af96501d26723c4daed4d4a3b7c1f94b (diff) | |
download | llvm-20b442a25d86c35556cfc1bba4356f8ee75987bd.zip llvm-20b442a25d86c35556cfc1bba4356f8ee75987bd.tar.gz llvm-20b442a25d86c35556cfc1bba4356f8ee75987bd.tar.bz2 |
[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
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions