mlton and llvm 3.7

Chris Cannam <[email protected]> Sun, 06 Mar 2016 19:26:04 +0000
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <1457292364.2356579.541145802.4940C3CB@webmail.messagingengine.com>
The LLVM codegen looks to be broken with LLVM 3.7.

With 3.5:

$ mlton
MLton ga3331b7 (built Sun Mar  6 19:13:15 GMT 2016 on chorizo)
$ llvm-as --version
LLVM (http://llvm.org/):
  LLVM version 3.5.2
  Optimized build.
  Built Dec  5 2015 (17:41:16).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: core-avx2
$ mlton -codegen llvm hello.sml
$

but with 3.7:

$ mlton
MLton ga3331b7 (built Sun Mar  6 19:13:15 GMT 2016 on chorizo)
$ llvm-as --version
LLVM (http://llvm.org/):
  LLVM version 3.7.1
  Optimized build.
  Built Jan 15 2016 (15:55:32).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: haswell
$ mlton -codegen llvm hello.sml
llvm-as: /tmp/fileTrLUL2.1.ll:229:25: error: expected comma after load's
type
        %r0 = load %uintptr_t* @nextFun
                               ^
call to system failed with exit status 1:
llvm-as -o /tmp/fileUQH4yM.as.bc /tmp/fileTrLUL2.1.ll
$

I'm pretty ignorant about LLVM and can't tell whether this is a big
problem or not -- looks like a small syntax detail but that might mask
something. Is anyone working on the LLVM back end?


Chris

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].


------------------------------------------------------------------------------