[llvm-dev] Clang for the PlayStation 2

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 6 10:08:09 PDT 2018


On Thu, 6 Sep 2018 at 17:55, Dan Ravensloft <dan.ravensloft at gmail.com> wrote:
> So I was rereading this; do you think the lowering function should instead emit a library call instead, then?

I suspect so, though I'm not familiar enough with MIPS or the PS2 to
be 100% sure -- checking what GCC does in this case would be good
confirmation.

> If so, would you mind pointing me to a function which performs this, or otherwise give a high-level description of how this is done?

I *think* you should be able to just tell the lower function to ignore
this case (maybe based on the types, maybe just because we're in
SingleFloat mode, I'll need to read more code to be sure). Then the
generic handling should get involved and expand it to a libcall if the
operation isn't natively supported.

Cheers.

Tim.


More information about the llvm-dev mailing list