Hi, Clang for AArch64 currently accepts an -mfpu option to specify the FPU/NEON unit. This behaviour, while consistent with the ARM target and ARM gcc, will no longer be supported in AArch64 gcc. The preferred CLI for specifying FPU/NEON units will be the use of the -march option with feature modifiers (+[no]feature). The feature modifiers according to the GCC manual are: * crypto * fp * simd (implies fp) For example, "clang -march=cortex-a57+crypto" or "clang -march=generic+nosimd". Whether or not simd (neon) is enabled by default is an orthogonal issue. We plan on implementing this interface for AArch64 Clang in future, and completely dropping the current support for -mfpu. This means that -march will become the preferred way to specify the target CPU/architecture. -mgeneral-regs-only: This is an option currently supported by AArch64 GCC, which we would also like to implement. Passing this option to the compiler should ensure that it generates code which only uses the general purpose registers. Otherwise, the compiler should throw an error. Is this proposal reasonable? Thanks, Amara
On 7 January 2014 17:05, Amara Emerson <amara.emerson at arm.com> wrote:> We plan on implementing this interface for AArch64 Clang in future, and > completely dropping the current support for -mfpu. This means that -march > will become the preferred way to specify the target CPU/architecture. >Hi Amara, This is something we were converging on the ARM32 world, too, and I believe other targets would probably do the same, if not before us. Hopefully, that'd also help clean up the driver's code in the process. cheers, --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140107/65b43f60/attachment.html>
Parsing the arch string is a bit icky, but I don't really have too much of a problem with it - and it's better than -mcpu so... -eric On Tue Jan 07 2014 at 9:23:43 AM, Renato Golin <renato.golin at linaro.org> wrote:> On 7 January 2014 17:05, Amara Emerson <amara.emerson at arm.com> wrote: > > We plan on implementing this interface for AArch64 Clang in future, and > completely dropping the current support for -mfpu. This means that -march > will become the preferred way to specify the target CPU/architecture. > > > Hi Amara, > > This is something we were converging on the ARM32 world, too, and I > believe other targets would probably do the same, if not before us. > Hopefully, that'd also help clean up the driver's code in the process. > > cheers, > --renato >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140107/8372367f/attachment.html>
Apparently Analagous Threads
- [LLVMdev] AArch64 Clang CLI interface proposal
- [LLVMdev] [cfe-dev] AArch64 Clang CLI interface proposal
- [LLVMdev] [cfe-dev] AArch64 Clang CLI interface proposal
- [RFC] New Clang target selection options for ARM/AArch64
- [LLVMdev] [cfe-dev] AArch64 Clang CLI interface proposal