r233594 - Add driver support for Native Client SDK

Derek Schuff dschuff at google.com
Mon Jul 27 15:49:27 PDT 2015


Hi Hans,
It probably shouldn't be in the release notes.
Unfortunately not all of the backend changes for NaCl codegen are upstream
yet, so if you were to try to use upstream clang with a nacl target, it
wouldn't produce something you could use.

More generally, this clang frontend support is used to allow clang to
directly create architecture-specific Native Client modules (as opposed to
generating portable PNaCl modules and then translating them). We released
this support in our SDK earlier this year (
https://developer.chrome.com/native-client/sdk/release-notes) and it allows
users to replace our old gcc compiler (
https://groups.google.com/forum/#!topic/native-client-discuss/J0-QDFZe3XE/discussion
).

Our branch with full NaCl support can be found at
https://chromium.googlesource.com/native_client/pnacl-llvm with build
instructions at https://www.chromium.org/nativeclient/pnacl/developing-pnacl

So the situation isn't significantly different from the way it was before
(NaCl support is partially but not fully upstream), but since clang now
recognizes the target I can see how it would appear different.
I'm hoping to do some more upstreaming soon for backend stuff, probably
starting with x86-32.
Do you think it's worth documenting this more fully somewhere on LLVM's
site? where would be a good place?


On Mon, Jul 27, 2015 at 3:25 PM Hans Wennborg <hans at chromium.org> wrote:

> Hi Derek,
>
> Should this be mentioned in the 3.7 release notes?
>
> I'm getting "does 3.7 support NaCl"-style questions. It would be great
> if the docs could clarify what this means.
>
> Cheers,
> Hans
>
> On Mon, Mar 30, 2015 at 1:31 PM, Derek Schuff <dschuff at google.com> wrote:
> > Author: dschuff
> > Date: Mon Mar 30 15:31:33 2015
> > New Revision: 233594
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=233594&view=rev
> > Log:
> > Add driver support for Native Client SDK
> >
> > Add Tool and ToolChain support for clang to target the NaCl OS using the
> NaCl
> > SDK for x86-32, x86-64 and ARM.
> >
> > Includes nacltools::Assemble and Link which are derived from gnutools.
> They
> > are similar to Linux but different enought that they warrant their own
> class.
> > Also includes a NaCl_TC in ToolChains derived from Generic_ELF with
> library
> > and include paths suitable for an SDK and independent of the system
> tools.
> >
> > Differential Revision: http://reviews.llvm.org/D8590
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150727/0e379f59/attachment.html>


More information about the cfe-commits mailing list