the bug for this is https://gitlab.haskell.org/ghc/ghc/-/issues/22954

On Tue, Apr 25, 2023 at 10:54 AM George Colpitts <george.colpitts@gmail.com> wrote:
Thanks Moritz. I went ahead and tried it. On a very simple smoke test I observed that "-fllvm works" but "-O2 -fllvm" does not. It fails with "Cannot use -O# with legacy PM.". There is already a bug for changing ghc to work with the new pass manager. It wasn't clear to me that this would be needed for llvm 16. It seems that it is.

Cheers
George




On Mon, Apr 24, 2023 at 10:02 PM Moritz Angermann <moritz.angermann@gmail.com> wrote:
Hi George,

while I personally haven’t tried. I’d encourage you to just try. Unless they changed their textual IR (they don’t do that often anymore), it could just work.

Whether or not you run into bugs for the specific target you are looking at, is hard to say without knowing the target.

My suggestion would be to just try building your configuration with the llvm backend against llvm16, and run validate if you can.

Cheers,
  Moritz

On Tue, 25 Apr 2023 at 4:50 AM, George Colpitts <george.colpitts@gmail.com> wrote:
Hi 

Does anybody know if  llvm 16 works with ghc 9.6.1 ?

Thanks
George

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs