<div dir="ltr">(oh, and on the topic of Useful Work I've done but haven't had time to box up and ship, I backported the relevant ARM64 patches to GHC 7.8 here, in case it's useful to anyone: <a href="https://github.com/lukexi/ghc-7.8-arm64">https://github.com/lukexi/ghc-7.8-arm64</a> )</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 4:25 AM, Luke Iannini <span dir="ltr"><<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@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">Hi Erik!<div><br></div><div>Really glad you found it.</div><div><br></div><div>I did actually submit it to the LLVM team a couple months ago; the relevant email from Tim Northover is here:</div><div><a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141103/243180.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141103/243180.html</a><br></div><div><br></div><div>He had a few small questions/requests and I've just been too pulled under by other projects to address them. If you want to give it the last nudge into glory I'd be thrilled : )</div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Luke</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 2:33 AM, Erik de Castro Lopo <span dir="ltr"><<a href="mailto:mle+hs@mega-nerd.com" target="_blank">mle+hs@mega-nerd.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Luke,<br>
<br>
I found your llvm git tree which contains a patch [0] implementing the<br>
GHC calling convention for GHC. I also notice that:<br>
<br>
a) It has not been submitted upstream.<br>
b) It can be cherry picked and applied on top of current llvm HEAD.<br>
c) It can be applied to the llvm 3.5 tree<br>
<br>
and most importantly of all<br>
<br>
d) It actually works.<br>
<br>
With this patch applied to the llvm 3.5 tree, I was able to build an<br>
x86_64-linux to aarch64-linux cross-compiler which was able to build<br>
a simple "hello world" program that actually ran correctly.<br>
<br>
Are you in the process of trying to get this patch into LLVM? Do you need<br>
any help?<br>
<br>
Cheers,<br>
Erik<br>
<br>
[0] <a href="https://github.com/lukexi/llvm/commit/2d351c3d095e2fe42bc287947404d884841a1d01" target="_blank">https://github.com/lukexi/llvm/commit/2d351c3d095e2fe42bc287947404d884841a1d01</a><br>
<span><font color="#888888">--<br>
----------------------------------------------------------------------<br>
Erik de Castro Lopo<br>
<a href="http://www.mega-nerd.com/" target="_blank">http://www.mega-nerd.com/</a><br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>