[llvm-dev] Generating object files more efficiently

J S via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 26 16:42:04 PDT 2019


Thanks, Paul.
How do I generate the 'as'? When I look at the bin directory , there is an llvm-as that takes llvm assembly as input but no 'as'.
________________________________
From: paul.robinson at sony.com <paul.robinson at sony.com>
Sent: Tuesday, March 26, 2019 1:58 PM
To: mm92126 at hotmail.com; craig.topper at gmail.com
Cc: llvm-dev at lists.llvm.org
Subject: RE: [llvm-dev] Generating object files more efficiently


There isn't an option to specify a particular assembler. You can use `-fno-integrated-as` to tell Clang to run the `as` tool instead of trying to generate the object file itself.  If you can't arrange for your target's assembler to be in the right place and named `as` then you have two choices: (1) have Clang emit assembler source with the `-S` option and run the correct assembler directly; (2) support your target more thoroughly in Clang's 'Driver' component, so that Clang knows what to do when you specify `-fno-integrated-as`.

--paulr



From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of J S via llvm-dev
Sent: Tuesday, March 26, 2019 4:39 PM
To: Craig Topper
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Generating object files more efficiently



How do I tell clang to use my target CPU's assembler instead of my host's assembler? I found the -fuse-ld option to tell it to use my linker but didn't find an option for the assembler.

Thanks.

________________________________

From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Craig Topper via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Monday, March 25, 2019 11:37 AM
To: Alec Ari
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Generating object files more efficiently



There's a function in lib/Driver/ToolChains/CommonArgs.cpp called tools::getCPUName that needs to be implemented for each target to determine how to process -mcpu/-march



You might be able to bypass that for testing purposes by adding "-Xclang -target-cpu -Xclang mycpu" to your driver command line.


~Craig





On Mon, Mar 25, 2019 at 11:24 AM Alec Ari via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:

Hi,

XYZ is your actual architecture? Are you trolling?

Alec
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190326/564197d7/attachment.html>


More information about the llvm-dev mailing list