
Hi Luke, I found your llvm git tree which contains a patch [0] implementing the GHC calling convention for GHC. I also notice that: a) It has not been submitted upstream. b) It can be cherry picked and applied on top of current llvm HEAD. c) It can be applied to the llvm 3.5 tree and most importantly of all d) It actually works. With this patch applied to the llvm 3.5 tree, I was able to build an x86_64-linux to aarch64-linux cross-compiler which was able to build a simple "hello world" program that actually ran correctly. Are you in the process of trying to get this patch into LLVM? Do you need any help? Cheers, Erik [0] https://github.com/lukexi/llvm/commit/2d351c3d095e2fe42bc287947404d884841a1d... -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

Hi Erik!
Really glad you found it.
I did actually submit it to the LLVM team a couple months ago; the relevant
email from Tim Northover is here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141103/243180....
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 : )
Cheers
Luke
On Sun, Dec 28, 2014 at 2:33 AM, Erik de Castro Lopo
Hi Luke,
I found your llvm git tree which contains a patch [0] implementing the GHC calling convention for GHC. I also notice that:
a) It has not been submitted upstream. b) It can be cherry picked and applied on top of current llvm HEAD. c) It can be applied to the llvm 3.5 tree
and most importantly of all
d) It actually works.
With this patch applied to the llvm 3.5 tree, I was able to build an x86_64-linux to aarch64-linux cross-compiler which was able to build a simple "hello world" program that actually ran correctly.
Are you in the process of trying to get this patch into LLVM? Do you need any help?
Cheers, Erik
[0] https://github.com/lukexi/llvm/commit/2d351c3d095e2fe42bc287947404d884841a1d... -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

(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: https://github.com/lukexi/ghc-7.8-arm64 )
On Sun, Dec 28, 2014 at 4:25 AM, Luke Iannini
Hi Erik!
Really glad you found it.
I did actually submit it to the LLVM team a couple months ago; the relevant email from Tim Northover is here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141103/243180....
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 : )
Cheers Luke
On Sun, Dec 28, 2014 at 2:33 AM, Erik de Castro Lopo
wrote:
Hi Luke,
I found your llvm git tree which contains a patch [0] implementing the GHC calling convention for GHC. I also notice that:
a) It has not been submitted upstream. b) It can be cherry picked and applied on top of current llvm HEAD. c) It can be applied to the llvm 3.5 tree
and most importantly of all
d) It actually works.
With this patch applied to the llvm 3.5 tree, I was able to build an x86_64-linux to aarch64-linux cross-compiler which was able to build a simple "hello world" program that actually ran correctly.
Are you in the process of trying to get this patch into LLVM? Do you need any help?
Cheers, Erik
[0] https://github.com/lukexi/llvm/commit/2d351c3d095e2fe42bc287947404d884841a1d... -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (2)
-
Erik de Castro Lopo
-
Luke Iannini