https://github.com/tblah approved this pull request. LGTM, the approach seems sensible and it is okay with me. Do you plan to follow up with the lowering changes required to clean this up? https://github.com/llvm/llvm-project/pull/142154