I'm working on a same-source MIR to "HSA IR" for Rust, allowing full use of generics and closures. The first target will be for SPIR-V, but it'll be easy enough to leave the door open for other targets, including FPGAs, so I'll be writing code to allow that.
This project is in it's early stages; I've finished the research in the Rustc compiler and figured out how I'm going to provide new "primitive" (ie a 4 by 4 matrix, a 16bit float type, etc) types to the framework (and work closures in), and have started writing code, but I have nothing working as of yet.
This project is in it's early stages; I've finished the research in the Rustc compiler and figured out how I'm going to provide new "primitive" (ie a 4 by 4 matrix, a 16bit float type, etc) types to the framework (and work closures in), and have started writing code, but I have nothing working as of yet.