Does it sound a good idea to implement "backend plugins"?
Matthew Pickering
matthewtpickering at gmail.com
Thu Oct 4 14:01:59 UTC 2018
Sounds like a reasonable idea to me. However, you should take some
time to propose a concrete interface as this part was not obvious in
the design of source plugins.
Matt
On Thu, Oct 4, 2018 at 2:56 PM Shao, Cheng <cheng.shao at tweag.io> wrote:
>
> Hi all,
>
> I'm thinking of adding "backend plugins" in the current Plugins
> mechanism which allows one to inspect/modify the IRs post simplifier
> pass (STG/Cmm), similar to the recently added source plugins for HsSyn
> IRs. This can be useful for anyone creating a custom GHC backend to
> target an experimental platform (e.g. the Asterius compiler which
> targets WebAssembly), and previously in order to retrieve those IRs
> from the regular pipeline, we need to use Hooks which is somewhat
> hacky.
>
> Does this sound a good idea to you? If so, I can open a trac ticket
> and a Phab diff for this feature.
>
> Best,
> Shao Cheng
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
More information about the ghc-devs
mailing list