@matthey, lol, I know it's not correct. It seems pretty complicated to get the LLVM backend to do what I want as I'm completely new to LLVM work. Trust me, this is a massive step in the right direction!
it's extremely flexible though, so I don't think anything should be a problem. My main interest in this compiler is Atari related work though, so the exact register usage and ABI work for the Amiga will be done by someone else.
@rlake work is being done in https://github.com/SamuraiCrow/llvm-m68k
. As soon as I have something useful, I will be committing.
Thanks for that source-forge link, though, that's slightly different to the above GitHub code -- although also very incomplete. I think I'm starting to understand LLVM a little more, and the source forge code is going about things in a better way than the existing code.