Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Make CodeGen a DI'able "plugin" (a.k.a make ILImporter an interface) #2062

Open

Description

@mjsabby

Currently the CPP writer and IL importer are quite coupled in code, so making a "plugin" codegen that writes something other than cpp is going to lots of duplicated code.

I think the TypeSystem ILImporter is conceptually a reasonable interface and the first step may just be making CPP code gen the single codegen plugin in the system.

This'll be a stepping stone required I think to introduce new codegen, I'm particularly stoked about using https://github.com/Microsoft/LLVMSharp and getting a codegen going using that.

Activity

  1. jkotas commented on Oct 21, 2016

    @jkotas
    Member

    @mjsabby Take a look at #2045 ... it is refactoring towards addressing this problem.

  2. MichalStrehovsky commented on May 5, 2017

    @MichalStrehovsky
    Member

    Related: #3468, #3503.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions