[llvm-dev] Clang command line to invoke LLVM flags

Xiaochu Liu via llvm-dev
Mon, 08 Aug 2016 23:15:53 -0000

Cool! Very helpful!

On Aug 8, 2016 4:08 PM, "Mehdi Amini" <mehdi.amini at apple.com>
wrote:

> (+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/llvm-dev/attachments/20160808/d0881f6d/attachment.html>