Xiaochu Liu via llvm-dev
2016-Aug-08 22:57 UTC
[llvm-dev] Clang command line to invoke LLVM flags
Hi there, I was wondering if there is a way to set llc flags in clang? Like llc -mattr=+abc How to set this subtarget in clang? Thanks, Xiaochu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160808/d641eef1/attachment.html>
Mehdi Amini via llvm-dev
2016-Aug-08 23:08 UTC
[llvm-dev] Clang command line to invoke LLVM flags
(+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>
Xiaochu Liu via llvm-dev
2016-Aug-08 23:15 UTC
[llvm-dev] Clang command line to invoke LLVM flags
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>