This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Place CppCodegen in a separate assembly - #3468
Merged
Merged
Conversation
This is useful for general code hygiene (maybe we should do the same with RyuJIT and UTC specific stuff), but what forced my hand to do this now is that we would like to use `ILImporter` for things other than importing for CppCodegen. `ILImporter` is a partial class and its reusability depends on users providing a different part file for the reusable portion. This makes the class essentially incompatible with any other IL importer implementation in the same assembly. I looked into making `ILImporter` reusable, while maintaining the same perf characteristics (no virtual calls on importing each instruction), but I couldn't find a scheme where it still made sense. Maybe we'll end up making the class reusable at some point and absorb the perf hit, but this pull request has a leg to stand on on it's own.
jkotas
reviewed
May 2, 2017
| <!-- IL.Compiler target files --> | ||
| <ILCompilerFiles Include="ilc.dll" /> | ||
| <ILCompilerFiles Include="ILCompiler.Compiler.dll" /> | ||
| <ILCompilerFiles Include="ILCompiler.Compiler.Cpp.dll" /> |
Member
There was a problem hiding this comment.
Nit: Having Compiler twice in the name looks odd. Would ILCompiler.Cpp.dll or ILCompiler.CppCodeGen.dll look better?
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is useful for general code hygiene (maybe we should do the same
with RyuJIT and UTC specific stuff), but what forced my hand to do this
now is that we would like to use
ILImporterfor things other thanimporting for CppCodegen.
ILImporteris a partial class and its reusability depends on usersproviding a different part file for the reusable portion. This makes the
class essentially incompatible with any other IL importer implementation
in the same assembly.
I looked into making
ILImporterreusable, while maintaining the sameperf characteristics (no virtual calls on importing each instruction),
but I couldn't find a scheme where it still made sense.
Maybe we'll end up making the class reusable at some point and absorb
the perf hit, but this pull request has a leg to stand on on it's own.