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.
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.
This is a continuation of #1214. Changes include adding the
IRImporter
class (consumed internally byIRContext.Import(IRContainer.Exported)
) and modifying theIRExporter
andIRContainer
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.