Hacker News new | ask | show | jobs
by geoff-codes 3937 days ago
> There are LLVM targets with corresponding ABIs that are nonspecific to architectures like PNaCL but Apple is not using them

They do indeed support LLVM IR target(s) that are, in fact, much more architecturally-nonspecific than PNaCl, namely the spir[64]-unknown-unknown target. See https://github.com/KhronosGroup/SPIR and /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/openclc (on a Mac, since 10.7).

I don't know if bitcode with this target triple is necessarily suitable for the Apple Watch, however.

1 comments

SPIR is basically portable gpu assembly. I wouldn't count it as an architecturally-nonspecific target.
It's really not. It's barely an abstraction over LLVM IR