[flang-commits] [PATCH] D133561: [flang] Add Sparc support to Optimizer/CodeGen/Target.cpp
Rainer Orth via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Sep 9 01:41:39 PDT 2022
ro created this revision.
ro added reviewers: rovka, schweitz, brad, LemonBoy, dcederman.
ro added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert, fedor.sergeev, jyknight.
Herald added a project: All.
ro requested review of this revision.
As described in Issue #57642, `flang` currently lacks SPARC support in `Optimizer/CodeGen/Target.cpp`, which causes a considerable number of tests to `FAIL` with
error: flang/lib/Optimizer/CodeGen/Target.cpp:310: not yet implemented: target not implemented
This patch fixes this by following GCC`s documentation of the ABI described in the Issue.
Tested on `sparcv9-sun-solaris2.11`.
I'm not fully certain I've done this correctly, so extra scrutiny would be most welcome. Besides, I wonder why `flang` has to do this at all (and for complex values only) since the SPARC backend knows how to handle complex args and return values just fine.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133561
Files:
flang/lib/Optimizer/CodeGen/Target.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133561.458983.patch
Type: text/x-patch
Size: 4435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220909/0d17d3e2/attachment-0001.bin>
More information about the flang-commits
mailing list