AnyDSL / thorin

The Higher-Order Intermediate Representation
https://anydsl.github.io
GNU Lesser General Public License v3.0
150 stars 15 forks source link

Unify Def and Type #136

Closed Hugobros3 closed 1 year ago

Hugobros3 commented 1 year ago

This (work-in-progress) PR makes Type a subtype of Def. This simplifies a fair bit and gets rid of some duplicated facilities in World and TypeTable. Additionally, the following adjustments were made:

Hugobros3 commented 1 year ago

Rodent works now, including on the GPU (modulo the existing RDNA2 issues). I think this means this branch is pretty close to regression-free...

The changes to get around structural params, warrant rewriting the free_defs() stuff too, as the old comment suggests.