Re: Frontend access to target-related options

2020-01-08 Thread The Other
I'm just working from the somewhat incomplete Rust spec at this point - intrinsics and other complicated target-dependent stuff don't seem to be part of it. Rust seems to provide vector intrinsics through libraries with inline assembly. For the frontend, I just need a list of strings describing th

Re: Frontend access to target-related options

2020-01-08 Thread Andrew Pinski
On Wed, Jan 8, 2020 at 1:16 AM The Other wrote: > > I've found the code for the target hooks for both the C-family and D > frontends (or at least their implementation for the i386 platform). The > C-family ones seem like they probably are too tied to the preprocessor to > be usable for other langu

Re: Frontend access to target-related options

2020-01-08 Thread The Other
I've found the code for the target hooks for both the C-family and D frontends (or at least their implementation for the i386 platform). The C-family ones seem like they probably are too tied to the preprocessor to be usable for other languages (which I assume is the reason that the D frontend crea

Re: Frontend access to target-related options

2020-01-07 Thread Richard Biener
On Thu, Jan 2, 2020 at 5:54 PM Nathan Sidwell wrote: > > On 1/1/20 4:31 AM, The Other wrote: > > Hi, > > I'm currently working on a Rust frontend for GCC. Rust has some > > language-level conditional compilation features based on the presence or > > lack of features in the target architecture (e.g

Re: Frontend access to target-related options

2020-01-02 Thread Nathan Sidwell
On 1/1/20 4:31 AM, The Other wrote: Hi, I'm currently working on a Rust frontend for GCC. Rust has some language-level conditional compilation features based on the presence or lack of features in the target architecture (e.g. SSE, AVX, a static C runtime) as well as the target CPU architecture i

Frontend access to target-related options

2020-01-01 Thread The Other
Hi, I'm currently working on a Rust frontend for GCC. Rust has some language-level conditional compilation features based on the presence or lack of features in the target architecture (e.g. SSE, AVX, a static C runtime) as well as the target CPU architecture itself, target OS, and various other ta