Hi all,
I am working on some compiler optimizations, and I was wondering whether it's possible to insert/create new functions at MIR level. I know this kind of thing is possible in LLVM because it has Module level passes, but MIR passes take a Body. If this is possible, I would appreciate any advice in the possible direction, and if not, any advice on any alternatives would be very much appreciated.
Thanks a lot in advance.