<div dir="ltr">I'm pretty sure I've answered you on this before, but basically look at how the x86 target handles sse, or avx. Or how ppc handles vsx.<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 3, 2016 at 2:27 PM Rail Shafigulin <<a href="mailto:rail@esenciatech.com">rail@esenciatech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 3, 2016 at 1:47 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You should pipe through command line options that you want via the driver.</div></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I'm not sure what you mean by "pipe through". Do you mind explaining it? </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Take a look at pretty much every other target for a guideline on how to do this.<div><br></div><div>-mllvm -mattr=... is not for production use and you shouldn't do this.</div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888">-eric<br><br></font></span><div class="gmail_quote"><div><div><div dir="ltr">On Mon, May 2, 2016 at 10:32 AM Rail Shafigulin via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Is there a way to enable/disable target features through clang?<div><br></div><div>I found this, <a href="https://github.com/avr-llvm/llvm/issues/9" target="_blank">https://github.com/avr-llvm/llvm/issues/9</a>, but this seems to be talking about llc -mattr=+feature1,-feature2...</div><div><br></div><div>Is there something equivalent for clang?<br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div></div></div><span>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</span></blockquote></div></div></div></div>
</blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div></blockquote></div>