Hardcode84 wrote: If we want to override llvm IR during linking/optimizations phases and/or device assembly, we will have to do it in those callbacks and we will have callbacks to return errors. https://github.com/llvm/llvm-project/pull/170134