[cfe-dev] [llvm-dev] Clang command line to invoke LLVM flags
Mehdi Amini via cfe-dev
cfe-dev at lists.llvm.org
Mon Aug 8 16:08:32 PDT 2016
(+cfe-dev for clang question)
> On Aug 8, 2016, at 3:57 PM, Xiaochu Liu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi there,
>
> I was wondering if there is a way to set llc flags in clang?
>
In general no, in practice most development flags (accessible from opt/llc) are available using -mllvm -flag=value
> Like
> llc -mattr=+abc
> How to set this subtarget in clang?
>
Target attributes are accessible using the cc1 flag "-target-feature”, the equivalent to llc -mattr=“+abc” should be:
clang -Xclang -target-feature -Xclang +abc
—
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160808/361390c2/attachment.html>
More information about the cfe-dev
mailing list