m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.34k stars 115 forks source link

[NativeAOT] Implement IRImporter API #1225

Closed IsaMorphic closed 3 months ago

IsaMorphic commented 3 months ago

This is a continuation of #1214. Changes include adding the IRImporter class (consumed internally by IRContext.Import(IRContainer.Exported)) and modifying the IRExporter and IRContainer classes to integrate properly with the entire export/import pipeline.

A potential memory leak issue has also been brought to light by the relative abuses of the ILGPU API delegated by this feature. I will investigate and open an issue if it does indeed come to fruition.

I will rebase this branch on top of master once #1214 gets merged.

IsaMorphic commented 3 months ago

Going to close this and open a new PR starting from scratch with this feature with the IRSerializer approach in mind. Importantly I will backlink to this PR for posterity.