https://github.com/Moxinilian commented: Thanks! Other than the comments below this looks good to me, with the caveat that I have never touched the Python bindings so I don't know if this is the right way to do it. https://github.com/llvm/llvm-project/pull/158488