AntonLydike wrote: > Can this simply hook into the convert-to-llvm pass? Yes! I thought that that was what I was already doing. I got some advice on how to properly hook into that, will refactor this PR! https://github.com/llvm/llvm-project/pull/95524