<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">(+cfe-dev for clang question)<br class=""><div><blockquote type="cite" class=""><div class="">On Aug 8, 2016, at 3:57 PM, Xiaochu Liu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Hi there,</p><p dir="ltr" class="">I was wondering if there is a way to set llc flags in clang?<br class=""></p></div></blockquote><div>In general no, in practice most development flags (accessible from opt/llc) are available using -mllvm -flag=value</div><br class=""><blockquote type="cite" class=""><div class=""><p dir="ltr" class="">
 Like<br class="">
llc -mattr=+abc <br class="">
How to set this subtarget in clang?</p></div></blockquote><div><br class=""></div><div>Target attributes are accessible using the cc1 flag "-target-feature”, the equivalent to llc -mattr=“+abc” should be:</div><div><br class=""></div><div>clang  -Xclang -target-feature -Xclang +abc </div><div><br class=""></div></div>— <div class="">Mehdi</div><div class=""><br class=""></div></body></html>