<div dir="ltr">global-isel for x86 is still very much a work in progress. What was the content for simple_foo.ll?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div>
<br><div class="gmail_quote">On Wed, Oct 11, 2017 at 5:39 PM, S. Bharadwaj Yadavalli via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</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"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Can someone please let me know if I can expect GlobalISel to be functional for x86/x86-64 targets?</div><div style="font-size:12.8px"><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">$ uname -a</span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">Darwin <Machine-Name> 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X<wbr>86_64 x86_64</span></p></div><div style="font-size:12.8px">Following is the command I used that resulted in an error :</div><div style="font-size:12.8px"><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">~/github/build/llvm/Debug/bin/<wbr>llc -global-isel -O0 simple_foo.ll<span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-Apple-converted-space"> </span></span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">LLVM ERROR: unable to legalize instruction (in function: foo)</span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">llc without the -global-isel option works fine.</span></p></div><div style="font-size:12.8px">I built clang/llc using the sources with the following tips:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">LLVM</div><div style="font-size:12.8px"><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">761e543ac73 (</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s2">HEAD -> </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s3">master</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">, </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s4">origin/master</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">, </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s4">orig<wbr>in/HEAD</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">)</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s5"> [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).</span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1">clang</p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">9563977e8b (</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s2">HEAD -> </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s3">master</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">, </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s4">origin/master</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">, </span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s4">orig<wbr>in/HEAD</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s1">)</span><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s5"> [X86] Add support for 'amdfam17h' to __builtin_cpu_is to match gcc.</span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s5">Thanks,</span></p><p class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-p1"><span class="m_4943174164200076565m_-1944124178244478270gmail-m_9063869700091709013m_-3236036515415256820gmail-s5">Bharadwaj</span></p></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">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/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>