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

Mehdi Amini via llvm-dev
Mon, 08 Aug 2016 23:08:32 -0000

(+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/361390c2/attachment.html>