<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Why is llc relevant to this thread, is this just an aside?  Target-independent tests for LV are formulated with opt.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 30, 2016, at 11:53 AM, Michael Kuperstein 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=""><div dir="ltr" class="">Yeah, this makes a lot of sense, -mcpu=generic (as opposed to -mcpu=native) is the sane default.<div class="">I guess I was just expecting an x86 host to get a "generic x86 TTI" (whatever that means), not a "generic TTI".</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 30, 2016 at 11:49 AM, Matthew Simpson <span dir="ltr" class=""><<a href="mailto:mssimpso@codeaurora.org" target="_blank" class="">mssimpso@codeaurora.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="">That's right. In your example, if the target isn't specified anywhere, an llc invocation would be equivalent to "llc -mtriple=x86_64-unknown-linux-<wbr class="">gnu -mcpu=generic". TTI queries (in e.g., CodeGenPrepare) would be based on this. From opt, if the target triple is left unspecified, we will use the "base" TTI implementation (not x86).</div><div class=""><br class=""></div><div class=""><div class="">-- Matt</div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Wed, Nov 30, 2016 at 2:07 PM, Michael Kuperstein via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">Right, let's say what we get from llc --version is:<div class=""><br class=""></div><div class=""><div class="">  Default target: x86_64-unknown-linux-gnu</div><div class="">  Host CPU: haswell</div></div><div class=""><br class=""></div><div class="">So, what we currently do is use the default target (which is normally the host target), but ignore the host cpu?</div><div class=""><br class=""></div><div class="">Michael</div></div><div class="m_4436523534404455307HOEnZb"><div class="m_4436523534404455307h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 30, 2016 at 10:58 AM, Matthew Simpson <span dir="ltr" class=""><<a href="mailto:mssimpso@codeaurora.org" target="_blank" class="">mssimpso@codeaurora.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_extra"><span class=""><br class=""><div class="gmail_quote">On Wed, Nov 30, 2016 at 1:04 PM, Michael Kuperstein via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, just to make sure I understand, what is getting a specific TTI in llc triggered off? -mcpu?</blockquote></div><br class=""></span>Right, TTI would be determined by the target specified in the IR or set explicitly with the -m flags. My understanding is that if the target is left unspecified in the IR and not set with the -m flags, llc will generate code for the default target listed in the output of "llc --version".</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">-- Matt</div></div>
</blockquote></div><br class=""></div>
</div></div><br class=""></div></div><span class="">______________________________<wbr class="">_________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a><br class="">
<br class=""></span></blockquote></div><br class=""></div>
</blockquote></div><br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>